Browse Source

Torching DC xml field since we're mapping that to RDF in the migration.

7.x-2.x
Daniel Lamb 10 years ago
parent
commit
497df74f6a
  1. 7
      islandora/islandora.install
  2. 1
      islandora/islandora.module
  3. 14
      islandora_basic_image/islandora_basic_image.install

7
islandora/islandora.install

@ -17,12 +17,6 @@ function islandora_install() {
);
field_create_field($tn_field);
$dc_field = array(
'field_name' => ISLANDORA_DC_FIELD,
'type' => 'xml_field_xml',
);
field_create_field($dc_field);
$mods_field = array(
'field_name' => ISLANDORA_MODS_FIELD,
'type' => 'xml_field_xml',
@ -37,6 +31,5 @@ function islandora_install() {
*/
function islandora_uninstall() {
field_delete_field(ISLANDORA_TN_FIELD);
field_delete_field(ISLANDORA_DC_FIELD);
field_delete_field(ISLANDORA_MODS_FIELD);
}

1
islandora/islandora.module

@ -6,7 +6,6 @@
*/
define('ISLANDORA_TN_FIELD', 'field_tn');
define('ISLANDORA_DC_FIELD', 'field_dc');
define('ISLANDORA_MODS_FIELD', 'field_mods');
/**

14
islandora_basic_image/islandora_basic_image.install

@ -48,19 +48,6 @@ function islandora_basic_image_install() {
drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_TN_FIELD)));
}
if (field_info_field(ISLANDORA_DC_FIELD)) {
$dc_field_instance = array(
'field_name' => ISLANDORA_DC_FIELD,
'entity_type' => 'node',
'bundle' => ISLANDORA_BASIC_IMAGE_BUNDLE,
'label' => $t("DC"),
'description' => $t("A Dublin Core record for the Fedora resource"),
'required' => FALSE,
);
field_create_instance($dc_field_instance);
drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DC_FIELD)));
}
if (field_info_field(ISLANDORA_MODS_FIELD)) {
$mods_field_instance = array(
'field_name' => ISLANDORA_MODS_FIELD,
@ -80,7 +67,6 @@ function islandora_basic_image_install() {
*/
function islandora_basic_image_uninstall() {
field_delete_instance(field_info_instance('node_content', ISLANDORA_TN_FIELD, ISLANDORA_BASIC_IMAGE_BUNDLE));
field_delete_instance(field_info_instance('node_content', ISLANDORA_DC_FIELD, ISLANDORA_BASIC_IMAGE_BUNDLE));
field_delete_instance(field_info_instance('node_content', ISLANDORA_MODS_FIELD, ISLANDORA_BASIC_IMAGE_BUNDLE));
node_type_delete(ISLANDORA_BASIC_IMAGE_BUNDLE);
}

Loading…
Cancel
Save