|
|
@ -21,23 +21,21 @@ |
|
|
|
* An array whose values are markup. |
|
|
|
* An array whose values are markup. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function hook_islandora_view_object($object, $user, $page_number, $page_size) { |
|
|
|
function hook_islandora_view_object($object, $user, $page_number, $page_size) { |
|
|
|
// Example Implementation |
|
|
|
$output = array(); |
|
|
|
// $islandora_object = islandora_object_load($object->id); |
|
|
|
if (in_array('islandora:sp_basic_image', $object->models)) { |
|
|
|
// $output = array(); |
|
|
|
$resource_url = url("islandora/object/{$object->id}/datastream/OBJ/view"); |
|
|
|
// if (in_array('islandora:sp_basic_image', $islandora_object->models)) { |
|
|
|
$params = array( |
|
|
|
// $resource_url = url("islandora/object/{$object->id}/datastream/OBJ/view"); |
|
|
|
'title' => $object->label, |
|
|
|
// $params = array( |
|
|
|
'path' => $resource_url, |
|
|
|
// 'title' => $islandora_object->label, |
|
|
|
); |
|
|
|
// 'path' => $resource_url, |
|
|
|
|
|
|
|
// ); |
|
|
|
// Theme the image seperatly. |
|
|
|
|
|
|
|
$variables['islandora_img'] = theme('image', $params); |
|
|
|
// // Theme the image seperatly. |
|
|
|
$output = theme('islandora_default_print', array( |
|
|
|
// $variables['islandora_img'] = theme('image', $params); |
|
|
|
'islandora_content' => $variables['islandora_img'])); |
|
|
|
// $output = theme('islandora_default_print', array( |
|
|
|
} |
|
|
|
// 'islandora_content' => $variables['islandora_img'])); |
|
|
|
|
|
|
|
// } |
|
|
|
return $output; |
|
|
|
|
|
|
|
|
|
|
|
// return $output; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Generate a print friendly page for the given object. |
|
|
|
* Generate a print friendly page for the given object. |
|
|
|