|
|
@ -20,6 +20,8 @@ function islandora_retrieve_metadata_markup(AbstractObject $object, $print = FAL |
|
|
|
$viewer = variable_get('islandora_metadata_display', 'dublin_core'); |
|
|
|
$viewer = variable_get('islandora_metadata_display', 'dublin_core'); |
|
|
|
$markup = ''; |
|
|
|
$markup = ''; |
|
|
|
if (isset($viewers[$viewer]['metadata callback'])) { |
|
|
|
if (isset($viewers[$viewer]['metadata callback'])) { |
|
|
|
|
|
|
|
$hooks = islandora_build_hook_list(ISLANDORA_METADATA_OBJECT_ALTER, $object->models); |
|
|
|
|
|
|
|
drupal_alter($hooks, $object); |
|
|
|
$markup = call_user_func($viewers[$viewer]['metadata callback'], $object, $print); |
|
|
|
$markup = call_user_func($viewers[$viewer]['metadata callback'], $object, $print); |
|
|
|
// The callback doesn't have any markup provided for this particular object, |
|
|
|
// The callback doesn't have any markup provided for this particular object, |
|
|
|
// default back to the dublin_core display. |
|
|
|
// default back to the dublin_core display. |
|
|
@ -44,6 +46,8 @@ function islandora_retrieve_description_markup(AbstractObject $object) { |
|
|
|
$viewer = variable_get('islandora_metadata_display', 'dublin_core'); |
|
|
|
$viewer = variable_get('islandora_metadata_display', 'dublin_core'); |
|
|
|
$markup = ''; |
|
|
|
$markup = ''; |
|
|
|
if (isset($viewers[$viewer]['description callback'])) { |
|
|
|
if (isset($viewers[$viewer]['description callback'])) { |
|
|
|
|
|
|
|
$hooks = islandora_build_hook_list(ISLANDORA_METADATA_OBJECT_DESCRIPTION_ALTER, $object->models); |
|
|
|
|
|
|
|
drupal_alter($hooks, $object); |
|
|
|
$markup = call_user_func($viewers[$viewer]['description callback'], $object); |
|
|
|
$markup = call_user_func($viewers[$viewer]['description callback'], $object); |
|
|
|
// The callback doesn't have any markup provided for this particular object, |
|
|
|
// The callback doesn't have any markup provided for this particular object, |
|
|
|
// default back to the dublin_core display. |
|
|
|
// default back to the dublin_core display. |
|
|
|