|
|
|
@ -1117,19 +1117,20 @@ function islandora_printer_object(AbstractObject $object) {
|
|
|
|
|
* Title callback for drupal title. |
|
|
|
|
* |
|
|
|
|
* Changes the drupal title to be the objects label. |
|
|
|
|
* models that their modules want to provide a view for. |
|
|
|
|
* |
|
|
|
|
* @param AbstractObject $object |
|
|
|
|
* The object to view. |
|
|
|
|
* |
|
|
|
|
* @return string |
|
|
|
|
* The objects label. |
|
|
|
|
* The objects label. Note that we return the raw value to prevent |
|
|
|
|
* double encoding, as we expect drupal_set_title() to check_plain() down |
|
|
|
|
* the road. |
|
|
|
|
*/ |
|
|
|
|
function islandora_drupal_title(AbstractObject $object) { |
|
|
|
|
module_load_include('inc', 'islandora', 'includes/breadcrumb'); |
|
|
|
|
drupal_set_breadcrumb(islandora_get_breadcrumbs($object)); |
|
|
|
|
|
|
|
|
|
return filter_xss($object->label); |
|
|
|
|
return $object->label; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|