|
|
@ -153,8 +153,11 @@ class IslandoraBook { |
|
|
|
} |
|
|
|
} |
|
|
|
$new_item->add_relationship('hasModel', $form_values['content_model_pid'], FEDORA_MODEL_URI); |
|
|
|
$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']); |
|
|
|
$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()) { |
|
|
|
public function buildAddPagesForm($form = array()) { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|