|
|
@ -1839,6 +1839,7 @@ function islandora_guarantee_root_collection($pid) { |
|
|
|
} |
|
|
|
} |
|
|
|
$item = new Fedora_Item($pid); |
|
|
|
$item = new Fedora_Item($pid); |
|
|
|
if ($item->exists()) { |
|
|
|
if ($item->exists()) { |
|
|
|
|
|
|
|
drupal_set_message(t('Fedora is not available')); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
$item = Fedora_item::ingest_new_item($pid, 'A', 'Islandora Root Collection', 'admin'); |
|
|
|
$item = Fedora_item::ingest_new_item($pid, 'A', 'Islandora Root Collection', 'admin'); |
|
|
|