From 750727d267922ad81e146eaddca7048fd933dff6 Mon Sep 17 00:00:00 2001 From: Daniel Lamb Date: Thu, 23 Apr 2015 19:41:45 +0000 Subject: [PATCH] DC is now DCTERMS and it has its own module. --- islandora/islandora.info | 1 + islandora/islandora.install | 104 --------- islandora/islandora.module | 16 -- .../islandora_basic_image.install | 197 +--------------- islandora_dcterms/.islandora_dc.install.swp | Bin 0 -> 16384 bytes islandora_dcterms/.islandora_dc.module.swp | Bin 0 -> 12288 bytes .../.islandora_dcterms.install.swp | Bin 0 -> 12288 bytes .../.islandora_dcterms.module.swp | Bin 0 -> 12288 bytes islandora_dcterms/include/.fields.inc.swp | Bin 0 -> 28672 bytes islandora_dcterms/include/fields.inc | 211 ++++++++++++++++++ islandora_dcterms/islandora_dcterms.info | 5 + islandora_dcterms/islandora_dcterms.install | 40 ++++ islandora_dcterms/islandora_dcterms.module | 22 ++ 13 files changed, 282 insertions(+), 314 deletions(-) create mode 100644 islandora_dcterms/.islandora_dc.install.swp create mode 100644 islandora_dcterms/.islandora_dc.module.swp create mode 100644 islandora_dcterms/.islandora_dcterms.install.swp create mode 100644 islandora_dcterms/.islandora_dcterms.module.swp create mode 100644 islandora_dcterms/include/.fields.inc.swp create mode 100644 islandora_dcterms/include/fields.inc create mode 100644 islandora_dcterms/islandora_dcterms.info create mode 100644 islandora_dcterms/islandora_dcterms.install create mode 100644 islandora_dcterms/islandora_dcterms.module diff --git a/islandora/islandora.info b/islandora/islandora.info index 25abf43a..b01bb45d 100644 --- a/islandora/islandora.info +++ b/islandora/islandora.info @@ -6,3 +6,4 @@ core = 7.x dependencies[] = rest_server dependencies[] = xml_field dependencies[] = xpath_field +dependencies[] = islandora_dcterms diff --git a/islandora/islandora.install b/islandora/islandora.install index f78b2c78..af5a5798 100644 --- a/islandora/islandora.install +++ b/islandora/islandora.install @@ -23,110 +23,6 @@ function islandora_install() { ); field_create_field($mods_field); - $dc_contributor_field = array( - 'field_name' => ISLANDORA_DC_CONTRIBUTOR_FIELD, - 'type' => 'text_long', - 'cardinality' => FIELD_CARDINALITY_UNLIMITED, - ); - field_create_field($dc_contributor_field); - - $dc_coverage_field = array( - 'field_name' => ISLANDORA_DC_COVERAGE_FIELD, - 'type' => 'text_long', - 'cardinality' => FIELD_CARDINALITY_UNLIMITED, - ); - field_create_field($dc_coverage_field); - - $dc_creator_field = array( - 'field_name' => ISLANDORA_DC_CREATOR_FIELD, - 'type' => 'text_long', - 'cardinality' => FIELD_CARDINALITY_UNLIMITED, - ); - field_create_field($dc_creator_field); - - $dc_date_field = array( - 'field_name' => ISLANDORA_DC_DATE_FIELD, - 'type' => 'text_long', - 'cardinality' => FIELD_CARDINALITY_UNLIMITED, - ); - field_create_field($dc_date_field); - - $dc_description_field = array( - 'field_name' => ISLANDORA_DC_DESCRIPTION_FIELD, - 'type' => 'text_long', - 'cardinality' => FIELD_CARDINALITY_UNLIMITED, - ); - field_create_field($dc_description_field); - - $dc_format_field = array( - 'field_name' => ISLANDORA_DC_FORMAT_FIELD, - 'type' => 'text_long', - 'cardinality' => FIELD_CARDINALITY_UNLIMITED, - ); - field_create_field($dc_format_field); - - $dc_identifier_field = array( - 'field_name' => ISLANDORA_DC_IDENTIFIER_FIELD, - 'type' => 'text_long', - 'cardinality' => FIELD_CARDINALITY_UNLIMITED, - ); - field_create_field($dc_identifier_field); - - $dc_language_field = array( - 'field_name' => ISLANDORA_DC_LANGUAGE_FIELD, - 'type' => 'text_long', - 'cardinality' => FIELD_CARDINALITY_UNLIMITED, - ); - field_create_field($dc_language_field); - - $dc_publisher_field = array( - 'field_name' => ISLANDORA_DC_PUBLISHER_FIELD, - 'type' => 'text_long', - 'cardinality' => FIELD_CARDINALITY_UNLIMITED, - ); - field_create_field($dc_publisher_field); - - $dc_relation_field = array( - 'field_name' => ISLANDORA_DC_RELATION_FIELD, - 'type' => 'text_long', - 'cardinality' => FIELD_CARDINALITY_UNLIMITED, - ); - field_create_field($dc_relation_field); - - $dc_rights_field = array( - 'field_name' => ISLANDORA_DC_RIGHTS_FIELD, - 'type' => 'text_long', - 'cardinality' => FIELD_CARDINALITY_UNLIMITED, - ); - field_create_field($dc_rights_field); - - $dc_source_field = array( - 'field_name' => ISLANDORA_DC_SOURCE_FIELD, - 'type' => 'text_long', - 'cardinality' => FIELD_CARDINALITY_UNLIMITED, - ); - field_create_field($dc_source_field); - - $dc_subject_field = array( - 'field_name' => ISLANDORA_DC_SUBJECT_FIELD, - 'type' => 'text_long', - 'cardinality' => FIELD_CARDINALITY_UNLIMITED, - ); - field_create_field($dc_subject_field); - - $dc_title_field = array( - 'field_name' => ISLANDORA_DC_TITLE_FIELD, - 'type' => 'text_long', - 'cardinality' => FIELD_CARDINALITY_UNLIMITED, - ); - field_create_field($dc_title_field); - - $dc_type_field = array( - 'field_name' => ISLANDORA_DC_TYPE_FIELD, - 'type' => 'text_long', - 'cardinality' => FIELD_CARDINALITY_UNLIMITED, - ); - field_create_field($dc_type_field); } /** diff --git a/islandora/islandora.module b/islandora/islandora.module index 3d314cd8..849f48f0 100644 --- a/islandora/islandora.module +++ b/islandora/islandora.module @@ -8,22 +8,6 @@ define('ISLANDORA_TN_FIELD', 'field_tn'); define('ISLANDORA_MODS_FIELD', 'field_mods'); -define('ISLANDORA_DC_CONTRIBUTOR_FIELD', 'field_dc_contributor'); -define('ISLANDORA_DC_COVERAGE_FIELD', 'field_dc_coverage'); -define('ISLANDORA_DC_CREATOR_FIELD', 'field_dc_creator'); -define('ISLANDORA_DC_DATE_FIELD', 'field_dc_date'); -define('ISLANDORA_DC_DESCRIPTION_FIELD', 'field_dc_description'); -define('ISLANDORA_DC_FORMAT_FIELD', 'field_dc_format'); -define('ISLANDORA_DC_IDENTIFIER_FIELD', 'field_dc_identifier'); -define('ISLANDORA_DC_LANGUAGE_FIELD', 'field_dc_language'); -define('ISLANDORA_DC_PUBLISHER_FIELD', 'field_dc_publisher'); -define('ISLANDORA_DC_RELATION_FIELD', 'field_dc_relation'); -define('ISLANDORA_DC_RIGHTS_FIELD', 'field_dc_rights'); -define('ISLANDORA_DC_SOURCE_FIELD', 'field_dc_source'); -define('ISLANDORA_DC_SUBJECT_FIELD', 'field_dc_subject'); -define('ISLANDORA_DC_TITLE_FIELD', 'field_dc_title'); -define('ISLANDORA_DC_TYPE_FIELD', 'field_dc_type'); - /** * Implements hook_ctools_plugin_api(). */ diff --git a/islandora_basic_image/islandora_basic_image.install b/islandora_basic_image/islandora_basic_image.install index b6ced94c..de5b4489 100644 --- a/islandora_basic_image/islandora_basic_image.install +++ b/islandora_basic_image/islandora_basic_image.install @@ -9,6 +9,8 @@ * Implements hook_install(). */ function islandora_basic_image_install() { + module_load_include('inc', 'islandora_dcterms', 'include/fields'); + $t = get_t(); // Create basic_image bundle. @@ -83,200 +85,7 @@ function islandora_basic_image_install() { drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_MODS_FIELD))); } - if (field_info_field(ISLANDORA_DC_CONTRIBUTOR_FIELD)) { - $dc_contributor_field_instance = array( - 'field_name' => ISLANDORA_DC_CONTRIBUTOR_FIELD, - 'entity_type' => 'node', - 'bundle' => ISLANDORA_BASIC_IMAGE_BUNDLE, - 'label' => $t("DC Contributor"), - 'description' => $t("Dublin Core Contributor Metadata"), - 'required' => FALSE, - ); - field_create_instance($dc_contributor_field_instance); - drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DC_CONTRIBUTOR_FIELD))); - } - - if (field_info_field(ISLANDORA_DC_COVERAGE_FIELD)) { - $dc_coverage_field_instance = array( - 'field_name' => ISLANDORA_DC_COVERAGE_FIELD, - 'entity_type' => 'node', - 'bundle' => ISLANDORA_BASIC_IMAGE_BUNDLE, - 'label' => $t("DC Coverage"), - 'description' => $t("Dublin Core Coverage Metadata"), - 'required' => FALSE, - ); - field_create_instance($dc_coverage_field_instance); - drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DC_COVERAGE_FIELD))); - } - - if (field_info_field(ISLANDORA_DC_CREATOR_FIELD)) { - $dc_creator_field_instance = array( - 'field_name' => ISLANDORA_DC_CREATOR_FIELD, - 'entity_type' => 'node', - 'bundle' => ISLANDORA_BASIC_IMAGE_BUNDLE, - 'label' => $t("DC Creator"), - 'description' => $t("Dublin Core Creator Metadata"), - 'required' => FALSE, - ); - field_create_instance($dc_creator_field_instance); - drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DC_CREATOR_FIELD))); - } - - if (field_info_field(ISLANDORA_DC_DATE_FIELD)) { - $dc_date_field_instance = array( - 'field_name' => ISLANDORA_DC_DATE_FIELD, - 'entity_type' => 'node', - 'bundle' => ISLANDORA_BASIC_IMAGE_BUNDLE, - 'label' => $t("DC Date"), - 'description' => $t("Dublin Core Date Metadata"), - 'required' => FALSE, - ); - field_create_instance($dc_date_field_instance); - drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DC_DATE_FIELD))); - } - - if (field_info_field(ISLANDORA_DC_DESCRIPTION_FIELD)) { - $dc_description_field_instance = array( - 'field_name' => ISLANDORA_DC_DESCRIPTION_FIELD, - 'entity_type' => 'node', - 'bundle' => ISLANDORA_BASIC_IMAGE_BUNDLE, - 'label' => $t("DC Description"), - 'description' => $t("Dublin Core Description Metadata"), - 'required' => FALSE, - ); - field_create_instance($dc_description_field_instance); - drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DC_DESCRIPTION_FIELD))); - } - - if (field_info_field(ISLANDORA_DC_FORMAT_FIELD)) { - $dc_format_field_instance = array( - 'field_name' => ISLANDORA_DC_FORMAT_FIELD, - 'entity_type' => 'node', - 'bundle' => ISLANDORA_BASIC_IMAGE_BUNDLE, - 'label' => $t("DC Format"), - 'description' => $t("Dublin Core Format Metadata"), - 'required' => FALSE, - ); - field_create_instance($dc_format_field_instance); - drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DC_FORMAT_FIELD))); - } - - if (field_info_field(ISLANDORA_DC_IDENTIFIER_FIELD)) { - $dc_identifier_field_instance = array( - 'field_name' => ISLANDORA_DC_IDENTIFIER_FIELD, - 'entity_type' => 'node', - 'bundle' => ISLANDORA_BASIC_IMAGE_BUNDLE, - 'label' => $t("DC Identfier"), - 'description' => $t("Dublin Core Identifier Metadata"), - 'required' => FALSE, - ); - field_create_instance($dc_identifier_field_instance); - drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DC_IDENTIFIER_FIELD))); - } - - if (field_info_field(ISLANDORA_DC_LANGUAGE_FIELD)) { - $dc_language_field_instance = array( - 'field_name' => ISLANDORA_DC_LANGUAGE_FIELD, - 'entity_type' => 'node', - 'bundle' => ISLANDORA_BASIC_IMAGE_BUNDLE, - 'label' => $t("DC Language"), - 'description' => $t("Dublin Core Language Metadata"), - 'required' => FALSE, - ); - field_create_instance($dc_language_field_instance); - drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DC_LANGUAGE_FIELD))); - } - - if (field_info_field(ISLANDORA_DC_PUBLISHER_FIELD)) { - $dc_publisher_field_instance = array( - 'field_name' => ISLANDORA_DC_PUBLISHER_FIELD, - 'entity_type' => 'node', - 'bundle' => ISLANDORA_BASIC_IMAGE_BUNDLE, - 'label' => $t("DC Publisher"), - 'description' => $t("Dublin Core Publisher Metadata"), - 'required' => FALSE, - ); - field_create_instance($dc_publisher_field_instance); - drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DC_PUBLISHER_FIELD))); - } - - if (field_info_field(ISLANDORA_DC_RELATION_FIELD)) { - $dc_relation_field_instance = array( - 'field_name' => ISLANDORA_DC_RELATION_FIELD, - 'entity_type' => 'node', - 'bundle' => ISLANDORA_BASIC_IMAGE_BUNDLE, - 'label' => $t("DC Relation"), - 'description' => $t("Dublin Core Relation Metadata"), - 'required' => FALSE, - ); - field_create_instance($dc_relation_field_instance); - drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DC_RELATION_FIELD))); - } - - if (field_info_field(ISLANDORA_DC_RIGHTS_FIELD)) { - $dc_rights_field_instance = array( - 'field_name' => ISLANDORA_DC_RIGHTS_FIELD, - 'entity_type' => 'node', - 'bundle' => ISLANDORA_BASIC_IMAGE_BUNDLE, - 'label' => $t("DC Rights"), - 'description' => $t("Dublin Core Rights Metadata"), - 'required' => FALSE, - ); - field_create_instance($dc_rights_field_instance); - drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DC_RIGHTS_FIELD))); - } - - if (field_info_field(ISLANDORA_DC_SOURCE_FIELD)) { - $dc_source_field_instance = array( - 'field_name' => ISLANDORA_DC_SOURCE_FIELD, - 'entity_type' => 'node', - 'bundle' => ISLANDORA_BASIC_IMAGE_BUNDLE, - 'label' => $t("DC Source"), - 'description' => $t("Dublin Core Source Metadata"), - 'required' => FALSE, - ); - field_create_instance($dc_source_field_instance); - drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DC_SOURCE_FIELD))); - } - - if (field_info_field(ISLANDORA_DC_SUBJECT_FIELD)) { - $dc_subject_field_instance = array( - 'field_name' => ISLANDORA_DC_SUBJECT_FIELD, - 'entity_type' => 'node', - 'bundle' => ISLANDORA_BASIC_IMAGE_BUNDLE, - 'label' => $t("DC Subject"), - 'description' => $t("Dublin Core Subject Metadata"), - 'required' => FALSE, - ); - field_create_instance($dc_subject_field_instance); - drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DC_SUBJECT_FIELD))); - } - - if (field_info_field(ISLANDORA_DC_TITLE_FIELD)) { - $dc_title_field_instance = array( - 'field_name' => ISLANDORA_DC_TITLE_FIELD, - 'entity_type' => 'node', - 'bundle' => ISLANDORA_BASIC_IMAGE_BUNDLE, - 'label' => $t("DC Title"), - 'description' => $t("Dublin Core Title Metadata"), - 'required' => FALSE, - ); - field_create_instance($dc_title_field_instance); - drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DC_TITLE_FIELD))); - } - - if (field_info_field(ISLANDORA_DC_TYPE_FIELD)) { - $dc_type_field_instance = array( - 'field_name' => ISLANDORA_DC_TYPE_FIELD, - 'entity_type' => 'node', - 'bundle' => ISLANDORA_BASIC_IMAGE_BUNDLE, - 'label' => $t("DC Type"), - 'description' => $t("Dublin Core Type Metadata"), - 'required' => FALSE, - ); - field_create_instance($dc_type_field_instance); - drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DC_TYPE_FIELD))); - } + islandora_dcterms_attach_fields_to_bundle(ISLANDORA_BASIC_IMAGE_BUNDLE); } /** diff --git a/islandora_dcterms/.islandora_dc.install.swp b/islandora_dcterms/.islandora_dc.install.swp new file mode 100644 index 0000000000000000000000000000000000000000..dda83b8be1ca18c03f098a5babbd59833c2dc928 GIT binary patch literal 16384 zcmeI&TZ|J`7zgkpC^xwn2qB2#QHfm|vPIN@7r<^?mced!>17j?*vz)G+kxpNGgEK_ ztBHw%fM_Jqs3b;wF&bXf7exb#c#98S@J0gB7kS|JV2DZx_@8zbI@7afr|iahIVC^3 zGv}L`^L^8H&Y8AnVYk#l7q{L?@VJhUPyKhNCfqQA%%OyAko$DGU|KEQhiYhYAzRdC zZWJMb4YD5CxN&13XXdp)Rxg)iEnujoVgzJO3*?L0vWCAe?Jk|oI2Kyff?* zQ2|i_W(B5@I~Lu(&}zE%mYeB}=_zKESSczXDj+H#Dj+H#Dj+H#Dj+H#D)8T|fLR(t z9z$wl?DTy0^Hr|rv99IWu4Q{sJc$a33Wy4b3Wy4b3Wy4b3Wy4b3Wy4b3Wy4b3j6~r zAZH0#d@Uho!214waQ=U88XQd;qV&Zb-pu@WUkdWhx>2;CV3N0r0`a zDTMq4Z@~`8K^Sg=^OFfV0^h-5*aJIZJ;dO8m;t}p{alH^=fZ3_j&)zc%P;_&VHM1o zM9Arhgq(t}VGnG96m&rg_+UI7oOQ~fyr?6YSbB?h3$}m9*Dq9IENcCpTR+R z30{Opp$qPUv2X!5bAEvD;eB`pOlX6pFbihFkdFaEX|Jki*>px%WK&637FyLW)Gg=}<5pmSVxElw6Ze#iCM&l#GNIU^8rC z?Whv!GnGfov{o$i`Ru0Zp$l@p8XzU2!C1I69!!Tr>ExQONV>9jE7;j1x|GVgF88+( zG!4~%)zq4sfRv27Gq~I*FDV%1o^?vbte%wSoP|WHZB-QjJYy#^vp{x zrE-s^8aYL8W-?u=wy2a?8HqcyarMnhI{0y2Us>*J>Kg^0!0oAEyX&pu?3tHb)T~l4 zReUx#_1s9|NGvJgD&jgh?%sLHsJE!+<)(cY+ZVdO<7voiD!YNXwti*(8VozEkp`=Q zwayA=uV=5FH@JH6xqgh3DQ-}7yx~|8&UJ*={Bt(3wsuFjma89Em0_0E1%9j5LD%OS zXM@2eO0BUSdvsJ8G1&t;`{_zXcHFTY8eOBid6$=~!@uf^%Wpk&wun(^CP%Hxn2Mga zFScoGglJINpf&rLPd8bkKfC|6L&sz!-jQ&PA1P%-I0tB~khA*9wM$e?9IE%Z_QwN3MiDQ9IBd?luG9M=Bm{k^KDRJXftc_~*S*8Kk%=Is~2n*R@e z?{6*t2;ai1@Fc8(<**E9!F2c;bNfT^0&Ip&5Qh$!0|dUp9RF>w=KkB@2}r;am6#3kTtKFd+ePSO7jai#h)h*bBShIZz=B zi(nQU$9(?__#C#wJ#Z0o{JpRh9tQCc75Mj7!269PPm!L28oDDgf<2C4Q}#`=k?nAR zyE(U!aYv66&uJRs=3r$D&zo@)@w^Xf{KpCAG>tq3PXFz@r;Q&zBXhRlG>tqP`z9|p zsRld13FkD8Mk?GatQ*^nA3wv{gwr${*;uojVKQpC2b>K!O{0^|Fu5pK*a7zU7+1Kn z1~wZeod)(~y$7ok_v&1^?n{}5_vNc>;e9i1F5Y)jxioXaIZdPS68j%y(cfqZIq{sP h(Ks8FcRCt7HYb|XGzv*@QfTPFoM2AV$P*YKe*r`#pX&es literal 0 HcmV?d00001 diff --git a/islandora_dcterms/.islandora_dc.module.swp b/islandora_dcterms/.islandora_dc.module.swp new file mode 100644 index 0000000000000000000000000000000000000000..926efeb0aeb1b471234718a5d2dca370dd55fcb1 GIT binary patch literal 12288 zcmeI&&yJHo90%~#{gbn=KufyeEY%6s9ZZHTR z?>K`^*Xh`;%d8bkkwo~BtQKlo4D^03T5I>9=4dzUR39#N(r|px-+1I$VO0S|Iea2U zy1s_M>-$z^5k*$2Q9~8JyR{t#RYfQ{p6H^!2H)wJq3iW3#}EnEGE3`6+39a|++f@B ztA@$TVIqr(Q1#>B9B=i_tx6O8wt8Ihaf6C$JH61wTcffZ8HrR&yk{Ef+4TIbSvkpZ zrl!1Mj%_Efe0QggI1*C|6#;7-7-nTjf{zv6k1UJX!82bl{NA3GS|(EOv$#wTnhS=L n!)BR!D$_BWNj+h<#kxXsgyQRLKG?%pCIXCh8{qzfe3HX=aCN1@ literal 0 HcmV?d00001 diff --git a/islandora_dcterms/.islandora_dcterms.install.swp b/islandora_dcterms/.islandora_dcterms.install.swp new file mode 100644 index 0000000000000000000000000000000000000000..88e9882a634cf0d60bdaeb9d28344a790f7f36a4 GIT binary patch literal 12288 zcmeI2Pixdb6u_sRidq$W6Twl7yIo|{svu&krb*h4?q+K?DfAS^O?Edln=Hv}YZ37a zh(}L?;79N(9`vAJKo5HJUhyCv6hUA9SgWp^v+@EzCds^c^XA9ouCcl?&GR(Qz_&ijWQ7iFhEAo{^Uq`#f;Mh>wgSMB3nyw7Iz{bw$sYoM_PJz7%`H zjV12;QZIA{KHTr5vz?Z3qu!7=RWFDIj47B9yU_p|*kxdXoINu;le{>2;y9f=Z0+j9 zTQq}!2P(i` z;N1a2o&fg&0bB!0z_$rP-T;q*yFeFEfn&he{e-*)UIVXyN5DN`9ngUzz$EYyYW$Gb zx}DUE7aBkVXaEhM0W^RH&;S}h1AjMgn^2lSY1?ys$8JR~7p|Q?l&8{W`eNFjH5S;R=<8ZW?UC`X$}a?X|NH+k>DbyfC1DoKLs&)9B@7^U;a~P$m7eVj6dO z2& literal 0 HcmV?d00001 diff --git a/islandora_dcterms/.islandora_dcterms.module.swp b/islandora_dcterms/.islandora_dcterms.module.swp new file mode 100644 index 0000000000000000000000000000000000000000..b3ae59c6d60c33ca9d4c0cc03f6efe70d762b159 GIT binary patch literal 12288 zcmeI&&uY{_90%}UJxD>TQo)mlQNh(k8vlW)1x=H*jqGkp{uDedvzyu7(b*&w6YEc+mDPx+( zrNZ^2;rj7Vi+uW*Eo;B`Z8#rwlK=@E7g&Kiw{P8?Z@F^$5<9;d9q*)d5+DH*AOR8} z0TLhq5+H&9TtH__@B**##Ns+HES5`uEEhj%K>{Q|0wh2JBtQZrKmsH{0wh2JB=8Rk z@ECxd0(gy?|NnpZ{{QnVzz@tf%va2N%sb3mOb@e+`FIB4CFTL<`wGAZ%ml+QUrqzO z!R%sIF`pObcr`x{H4-2J5+DH*AOR8}0TLjABY{|qWFoG$+@NFjY|l6QwiP;lH|U2? zcbxvF>vZha4b~b-q2j}jWczwQ6RqnHq2_2e>{K5vwQ4v%h&G-$R#;U)Q4XGop{}nX z@FL%;ETTxueArNh?`~~}K~)jC98YvnUxV*-%+U3Em179SwM>)xQFfw@jvH({e$_Bp zIZ(2gh`fFroa3#?+^RIeZ>z^8A2+DDw$lq;yfrGzk+Dd$#CxWpo=wm1nw670O7kgi zm}A=sEZ^O!BaTHe%w^WBY@1=FOw4tIisd_I=v9&obHR1m;9+^Yj$boB!*oyNjq_u9 zz0h|zqPl9*MCWo)E-C`nHZaUemBPmg??;x7*ugVjF#O)0m0BvP_t~gS4!R45lf!0d k{#+(wHj{e7Y>Rb;<_N{t*nF_ZBdG)!?KZ&rqimAFFC96k^8f$< literal 0 HcmV?d00001 diff --git a/islandora_dcterms/include/.fields.inc.swp b/islandora_dcterms/include/.fields.inc.swp new file mode 100644 index 0000000000000000000000000000000000000000..26c79095966b585c43e0bc4cb0fe372999c0a06b GIT binary patch literal 28672 zcmeI4eT*Ds9mmI(mX^|Li;@Uxrse3}HOF1A2*$R&T<`YE)_ZC1_Ua49b#8a=Zeeft z*q!aA#a2UN8%uZzNU=6G@?sE7kz#`=MiH?BeIWwI2>6GwO)Qb{VgXSoex8}x-Pzf> zyP56ntRb_>r`z3m=6QC$``u@r-}C&Q8(h9I+%12u`Lhy_k4e(vb)O%Y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{r(v24h?rtI1x5srF6hy;9f#;p6C|Z1Y5!V+xgu<85Y1X;{6}PO|Tup@JHf&F$ZuMZUYhjFNcL7 z_WC~!w}1wtumXNXtp6zd9JYdp|IY`J|Nk-^fGrS(FTtnbKH~j*;BF9k|0_Z4^FKzc z|0L{zuR{nfhZ%4q@%|3j4&AT>UPa5J@F47f9=I5EjeVU1n4&Qe%bC5bK2tEoYy07f z|2Bb#%?ZY=q1Y1O;}6TSfxz~Ya+*ae{+L{66ImMYx%;&x#JjseJ7?lg=l$8sUInAe zopi@SRqoCu(%F3BtWX8cC~3rRZKAWO6Y2KYF9CP)j(-aQ4 zY!cdhGLcdh7{%6*&rT^M ISLANDORA_DCTERMS_CONTRIBUTOR_FIELD, + 'entity_type' => 'node', + 'bundle' => $bundle_name, + 'label' => $t("DC Terms Contributor"), + 'description' => $t("Dublin Core Contributor Metadata"), + 'required' => FALSE, + ); + field_create_instance($dcterms_contributor_field_instance); + drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DCTERMS_CONTRIBUTOR_FIELD))); + } + + if (field_info_field(ISLANDORA_DCTERMS_COVERAGE_FIELD)) { + $dcterms_coverage_field_instance = array( + 'field_name' => ISLANDORA_DCTERMS_COVERAGE_FIELD, + 'entity_type' => 'node', + 'bundle' => $bundle_name, + 'label' => $t("DC Terms Coverage"), + 'description' => $t("Dublin Core Coverage Metadata"), + 'required' => FALSE, + ); + field_create_instance($dcterms_coverage_field_instance); + drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DCTERMS_COVERAGE_FIELD))); + } + + if (field_info_field(ISLANDORA_DCTERMS_CREATOR_FIELD)) { + $dcterms_creator_field_instance = array( + 'field_name' => ISLANDORA_DCTERMS_CREATOR_FIELD, + 'entity_type' => 'node', + 'bundle' => $bundle_name, + 'label' => $t("DC Terms Creator"), + 'description' => $t("Dublin Core Creator Metadata"), + 'required' => FALSE, + ); + field_create_instance($dcterms_creator_field_instance); + drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DCTERMS_CREATOR_FIELD))); + } + + if (field_info_field(ISLANDORA_DCTERMS_DATE_FIELD)) { + $dcterms_date_field_instance = array( + 'field_name' => ISLANDORA_DCTERMS_DATE_FIELD, + 'entity_type' => 'node', + 'bundle' => $bundle_name, + 'label' => $t("DC Terms Date"), + 'description' => $t("Dublin Core Date Metadata"), + 'required' => FALSE, + ); + field_create_instance($dcterms_date_field_instance); + drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DCTERMS_DATE_FIELD))); + } + + if (field_info_field(ISLANDORA_DCTERMS_DESCRIPTION_FIELD)) { + $dcterms_description_field_instance = array( + 'field_name' => ISLANDORA_DCTERMS_DESCRIPTION_FIELD, + 'entity_type' => 'node', + 'bundle' => $bundle_name, + 'label' => $t("DC Terms Description"), + 'description' => $t("Dublin Core Description Metadata"), + 'required' => FALSE, + ); + field_create_instance($dcterms_description_field_instance); + drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DCTERMS_DESCRIPTION_FIELD))); + } + + if (field_info_field(ISLANDORA_DCTERMS_FORMAT_FIELD)) { + $dcterms_format_field_instance = array( + 'field_name' => ISLANDORA_DCTERMS_FORMAT_FIELD, + 'entity_type' => 'node', + 'bundle' => $bundle_name, + 'label' => $t("DC Terms Format"), + 'description' => $t("Dublin Core Format Metadata"), + 'required' => FALSE, + ); + field_create_instance($dcterms_format_field_instance); + drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DCTERMS_FORMAT_FIELD))); + } + + if (field_info_field(ISLANDORA_DCTERMS_IDENTIFIER_FIELD)) { + $dcterms_identifier_field_instance = array( + 'field_name' => ISLANDORA_DCTERMS_IDENTIFIER_FIELD, + 'entity_type' => 'node', + 'bundle' => $bundle_name, + 'label' => $t("DC Terms Identfier"), + 'description' => $t("Dublin Core Identifier Metadata"), + 'required' => FALSE, + ); + field_create_instance($dcterms_identifier_field_instance); + drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DCTERMS_IDENTIFIER_FIELD))); + } + + if (field_info_field(ISLANDORA_DCTERMS_LANGUAGE_FIELD)) { + $dcterms_language_field_instance = array( + 'field_name' => ISLANDORA_DCTERMS_LANGUAGE_FIELD, + 'entity_type' => 'node', + 'bundle' => $bundle_name, + 'label' => $t("DC Terms Language"), + 'description' => $t("Dublin Core Language Metadata"), + 'required' => FALSE, + ); + field_create_instance($dcterms_language_field_instance); + drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DCTERMS_LANGUAGE_FIELD))); + } + + if (field_info_field(ISLANDORA_DCTERMS_PUBLISHER_FIELD)) { + $dcterms_publisher_field_instance = array( + 'field_name' => ISLANDORA_DCTERMS_PUBLISHER_FIELD, + 'entity_type' => 'node', + 'bundle' => $bundle_name, + 'label' => $t("DC Terms Publisher"), + 'description' => $t("Dublin Core Publisher Metadata"), + 'required' => FALSE, + ); + field_create_instance($dcterms_publisher_field_instance); + drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DCTERMS_PUBLISHER_FIELD))); + } + + if (field_info_field(ISLANDORA_DCTERMS_RELATION_FIELD)) { + $dcterms_relation_field_instance = array( + 'field_name' => ISLANDORA_DCTERMS_RELATION_FIELD, + 'entity_type' => 'node', + 'bundle' => $bundle_name, + 'label' => $t("DC Terms Relation"), + 'description' => $t("Dublin Core Relation Metadata"), + 'required' => FALSE, + ); + field_create_instance($dcterms_relation_field_instance); + drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DCTERMS_RELATION_FIELD))); + } + + if (field_info_field(ISLANDORA_DCTERMS_RIGHTS_FIELD)) { + $dcterms_rights_field_instance = array( + 'field_name' => ISLANDORA_DCTERMS_RIGHTS_FIELD, + 'entity_type' => 'node', + 'bundle' => $bundle_name, + 'label' => $t("DC Terms Rights"), + 'description' => $t("Dublin Core Rights Metadata"), + 'required' => FALSE, + ); + field_create_instance($dcterms_rights_field_instance); + drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DCTERMS_RIGHTS_FIELD))); + } + + if (field_info_field(ISLANDORA_DCTERMS_SOURCE_FIELD)) { + $dcterms_source_field_instance = array( + 'field_name' => ISLANDORA_DCTERMS_SOURCE_FIELD, + 'entity_type' => 'node', + 'bundle' => $bundle_name, + 'label' => $t("DC Terms Source"), + 'description' => $t("Dublin Core Source Metadata"), + 'required' => FALSE, + ); + field_create_instance($dcterms_source_field_instance); + drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DCTERMS_SOURCE_FIELD))); + } + + if (field_info_field(ISLANDORA_DCTERMS_SUBJECT_FIELD)) { + $dcterms_subject_field_instance = array( + 'field_name' => ISLANDORA_DCTERMS_SUBJECT_FIELD, + 'entity_type' => 'node', + 'bundle' => $bundle_name, + 'label' => $t("DC Terms Subject"), + 'description' => $t("Dublin Core Subject Metadata"), + 'required' => FALSE, + ); + field_create_instance($dcterms_subject_field_instance); + drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DCTERMS_SUBJECT_FIELD))); + } + + if (field_info_field(ISLANDORA_DCTERMS_TITLE_FIELD)) { + $dcterms_title_field_instance = array( + 'field_name' => ISLANDORA_DCTERMS_TITLE_FIELD, + 'entity_type' => 'node', + 'bundle' => $bundle_name, + 'label' => $t("DC Terms Title"), + 'description' => $t("Dublin Core Title Metadata"), + 'required' => FALSE, + ); + field_create_instance($dcterms_title_field_instance); + drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DCTERMS_TITLE_FIELD))); + } + + if (field_info_field(ISLANDORA_DCTERMS_TYPE_FIELD)) { + $dcterms_type_field_instance = array( + 'field_name' => ISLANDORA_DCTERMS_TYPE_FIELD, + 'entity_type' => 'node', + 'bundle' => $bundle_name, + 'label' => $t("DC Terms Type"), + 'description' => $t("Dublin Core Type Metadata"), + 'required' => FALSE, + ); + field_create_instance($dcterms_type_field_instance); + drupal_set_message($t('Field %name was created successfully', array('%name' => ISLANDORA_DCTERMS_TYPE_FIELD))); + } +} diff --git a/islandora_dcterms/islandora_dcterms.info b/islandora_dcterms/islandora_dcterms.info new file mode 100644 index 00000000..5b9f4e25 --- /dev/null +++ b/islandora_dcterms/islandora_dcterms.info @@ -0,0 +1,5 @@ +name = Islandora DC Terms +description = "Fields and utilities for managing dcterms metadata in Islandora" +package = Islandora +version = 7.x-dev +core = 7.x diff --git a/islandora_dcterms/islandora_dcterms.install b/islandora_dcterms/islandora_dcterms.install new file mode 100644 index 00000000..2275341b --- /dev/null +++ b/islandora_dcterms/islandora_dcterms.install @@ -0,0 +1,40 @@ + $field_name, + 'type' => 'text_long', + 'cardinality' => FIELD_CARDINALITY_UNLIMITED, + ); + field_create_field($field); + } +} diff --git a/islandora_dcterms/islandora_dcterms.module b/islandora_dcterms/islandora_dcterms.module new file mode 100644 index 00000000..bebe4394 --- /dev/null +++ b/islandora_dcterms/islandora_dcterms.module @@ -0,0 +1,22 @@ +