|
|
|
@ -378,6 +378,7 @@ class ObjectHelper {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function getFormattedDatastreamList($object_pid, $contentModels, &$fedoraItem) { |
|
|
|
|
if (user_access(ObjectHelper :: $VIEW_DETAILED_CONTENT_LIST)) { |
|
|
|
|
$availableDataStreamsText = 'Detailed List of Content'; |
|
|
|
|
//$metaDataText='Description'; |
|
|
|
|
$mainStreamLabel = NULL; |
|
|
|
@ -429,6 +430,8 @@ class ObjectHelper {
|
|
|
|
|
$dataStreamBody = '<div class = "fedora_detailed_list">' . $dataStreamBody . '</div>'; |
|
|
|
|
return $dataStreamBody; |
|
|
|
|
} |
|
|
|
|
return ''; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Gets a list of datastreams from an object using its pid |
|
|
|
@ -454,9 +457,8 @@ class ObjectHelper {
|
|
|
|
|
$dataStreamBody = ''; |
|
|
|
|
$fedoraItem = new Fedora_Item($object_pid); |
|
|
|
|
|
|
|
|
|
if (user_access(ObjectHelper :: $VIEW_DETAILED_CONTENT_LIST)) { |
|
|
|
|
|
|
|
|
|
$dataStreamBody = $this->getFormattedDatastreamList($object_pid, $contentModels, $fedoraItem); |
|
|
|
|
} |
|
|
|
|
$content = ''; |
|
|
|
|
|
|
|
|
|
if (empty($contentModels)) { |
|
|
|
|