diff --git a/ilives/book.inc b/ilives/book.inc index 76bbe836..f44bacd5 100644 --- a/ilives/book.inc +++ b/ilives/book.inc @@ -136,7 +136,7 @@ class IslandoraBook { $new_item = Fedora_Item::ingest_new_item(!empty($form_values['custom_pid']) ? $form_values['custom_pid'] : $form_values['pid'], 'A', $title, $user->name); - + $new_item->add_datastream_from_string($mods_text, 'MODS', 'MODS Metadata', 'text/xml', 'X'); @@ -153,8 +153,11 @@ class IslandoraBook { } $new_item->add_relationship('hasModel', $form_values['content_model_pid'], FEDORA_MODEL_URI); $new_item->add_relationship(!empty($form_values['relationship']) ? $form_values['relationship'] : 'isMemberOfCollection', $form_values['collection_pid']); + drupal_set_message(t("Item !pid created successfully.", array('!pid' => l($new_item->pid, 'fedora/repository/'. $new_item->pid))), "status"); + } + public function buildAddPagesForm($form = array()) { }