From 0e0aaec229d3f82b54a3f133f3b1b8086d7c36b0 Mon Sep 17 00:00:00 2001 From: Mitch MacKenzie Date: Wed, 17 Oct 2012 19:18:14 -0300 Subject: [PATCH] Make titles consistent between table and XSLT views --- ObjectDetails.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ObjectDetails.inc b/ObjectDetails.inc index 4bd46790..30121080 100644 --- a/ObjectDetails.inc +++ b/ObjectDetails.inc @@ -139,7 +139,8 @@ function fedora_repository_object_details_table($item) { $xmlstr = $item->get_datastream_dissemination($dsid); if (empty($xmlstr) && variable_get('islandora_object_details_table_default_dc', FALSE) && $dsid != 'DC' && $dsid != 'QDC') { - $xmlstr = $item->get_datastream_dissemination('DC'); + $dsid = 'DC'; + $xmlstr = $item->get_datastream_dissemination($dsid); } if (empty($xmlstr)) { return t('Error - could not find datastream @dsid on object @pid
Please contact the site administrator.', @@ -150,7 +151,7 @@ function fedora_repository_object_details_table($item) { $headers = array( array( - 'data' => t('@dsid Metadata', array('@dsid' => $dsid)), + 'data' => t('Metadata (@dsid)', array('@dsid' => $dsid)), 'colspan' => 2, ), );