From 8698a473fa94762df2654937a3dce8290065749b Mon Sep 17 00:00:00 2001 From: Daniel Lamb Date: Tue, 12 May 2015 13:44:15 -0300 Subject: [PATCH] Rdfx and field_permissions et al. Reworked dependencies. --- islandora/islandora.info | 11 ++++++--- islandora/islandora.install | 18 +++++++++++++++ .../islandora_collection.module | 23 +++++++++++++++++++ 3 files changed, 49 insertions(+), 3 deletions(-) diff --git a/islandora/islandora.info b/islandora/islandora.info index b01bb45d..302f33e3 100644 --- a/islandora/islandora.info +++ b/islandora/islandora.info @@ -4,6 +4,11 @@ package = Islandora version = 7.x-dev core = 7.x dependencies[] = rest_server -dependencies[] = xml_field -dependencies[] = xpath_field -dependencies[] = islandora_dcterms +dependencies[] = field_permissions +dependencies[] = field_readonly +dependencies[] = uuid_services +dependencies[] = views_ui +dependencies[] = rdfui +dependencies[] = xml_field +dependencies[] = xpath_field +dependencies[] = islandora_dcterms diff --git a/islandora/islandora.install b/islandora/islandora.install index 0cb5e40b..4741c421 100644 --- a/islandora/islandora.install +++ b/islandora/islandora.install @@ -22,4 +22,22 @@ function islandora_install() { 'type' => 'xml_field_xml', ); field_create_field($mods_field); + + $fedora_path_field = array( + 'field_name' => ISLANDORA_FEDORA_PATH_FIELD, + 'type' => 'text', + ); + field_create_field($fedora_path_field); + + $fedora_has_parent_field = array( + 'field_name' => ISLANDORA_FEDORA_HAS_PARENT_FIELD, + 'type' => 'text', + ); + field_create_field($fedora_has_parent_field); + + $pcdm_has_member_field = array( + 'field_name' => ISLANDORA_PCDM_HAS_MEMBER_FIELD, + 'type' => 'text', + ); + field_create_field($pcdm_has_member_field); } diff --git a/islandora_collection/islandora_collection.module b/islandora_collection/islandora_collection.module index 4194d61f..72bdcfc9 100644 --- a/islandora_collection/islandora_collection.module +++ b/islandora_collection/islandora_collection.module @@ -42,3 +42,26 @@ function islandora_collection_node_info() { function islandora_collection_form($node, array &$form_state) { return node_content_form($node, $form_state); } + +/** + * Implements hook_insert(). + */ +function islandora_collection_insert($node) { + /* + if (isset($_SERVER['HTTP_IGNORE_HOOKS']) && strcmp(strtolower($_SERVER['HTTP_IGNORE_HOOKS']), "true") == 0) { + dd("IGNORING SAVING THE COLLECTION"); + } + dd("SAVING A COLLECTION"); + dd($node); + */ +} + +function islandora_collection_update($node) { + /* + if (isset($_SERVER['HTTP_IGNORE_HOOKS']) && strcmp(strtolower($_SERVER['HTTP_IGNORE_HOOKS']), "true") == 0) { + dd("IGNORING UPDATING THE COLLECTION"); + } + dd("UPDATING A COLLECTION"); + dd($node); + */ +}