|
|
@ -519,6 +519,7 @@ class CollectionClass { |
|
|
|
|
|
|
|
|
|
|
|
$show_batch_tab = FALSE; |
|
|
|
$show_batch_tab = FALSE; |
|
|
|
$policy = CollectionPolicy::loadFromCollection($this->pid, TRUE); |
|
|
|
$policy = CollectionPolicy::loadFromCollection($this->pid, TRUE); |
|
|
|
|
|
|
|
|
|
|
|
if(!empty($policy)){ |
|
|
|
if(!empty($policy)){ |
|
|
|
$content_models = $policy->getContentModels(); |
|
|
|
$content_models = $policy->getContentModels(); |
|
|
|
} |
|
|
|
} |
|
|
@ -528,7 +529,7 @@ class CollectionClass { |
|
|
|
if (!$show_ingest_tab) { |
|
|
|
if (!$show_ingest_tab) { |
|
|
|
$view_selected = TRUE; |
|
|
|
$view_selected = TRUE; |
|
|
|
} |
|
|
|
} |
|
|
|
if(!$collection_items){ |
|
|
|
if (!$collection_items) { |
|
|
|
$view_selected = FALSE; |
|
|
|
$view_selected = FALSE; |
|
|
|
$add_selected = TRUE; |
|
|
|
$add_selected = TRUE; |
|
|
|
} |
|
|
|
} |
|
|
@ -540,7 +541,6 @@ class CollectionClass { |
|
|
|
'#title' => 'View', |
|
|
|
'#title' => 'View', |
|
|
|
'#selected' => $view_selected, |
|
|
|
'#selected' => $view_selected, |
|
|
|
'#content' => $collection_items, |
|
|
|
'#content' => $collection_items, |
|
|
|
|
|
|
|
|
|
|
|
); |
|
|
|
); |
|
|
|
$tabset['add_tab'] = array( |
|
|
|
$tabset['add_tab'] = array( |
|
|
|
'#type' => 'tabpage', |
|
|
|
'#type' => 'tabpage', |
|
|
@ -616,7 +616,7 @@ class CollectionClass { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$collectionName = $collection; |
|
|
|
$collectionName = $collection; |
|
|
|
|
|
|
|
|
|
|
|
if (!$pageNumber) { |
|
|
|
if (!$pageNumber) { |
|
|
|
$pageNumber = 1; |
|
|
|
$pageNumber = 1; |
|
|
|
} |
|
|
|
} |
|
|
|