diff --git a/metatag_dc/README.txt b/metatag_dc/README.txt index d959218..fb0b0a6 100644 --- a/metatag_dc/README.txt +++ b/metatag_dc/README.txt @@ -1,7 +1,7 @@ Metatag: Dublin Core -------------------- -This module adds the fifteen Dublin Core Metadata Element Set [1] to the -available meta tags, as defined by the Dublin Core Metadata Institute [2]. +This module adds the fifteen Dublin Core Metadata Element Set [1] (plus one) to +the available meta tags, as defined by the Dublin Core Metadata Institute [2]. The following tags are provided: * dcterms.contributor @@ -12,6 +12,7 @@ The following tags are provided: * dcterms.format * dcterms.identifier * dcterms.language +* dcterms.modified (additional, not part of the DCES) * dcterms.publisher * dcterms.relation * dcterms.rights diff --git a/metatag_dc/metatag_dc.metatag.inc b/metatag_dc/metatag_dc.metatag.inc index 3fdfa0b..8299431 100644 --- a/metatag_dc/metatag_dc.metatag.inc +++ b/metatag_dc/metatag_dc.metatag.inc @@ -40,6 +40,7 @@ function metatag_dc_metatag_bundled_config_alter(array &$configs) { $config->config += array( 'dcterms.creator' => array('value' => '[node:author]'), 'dcterms.date' => array('value' => '[node:created:custom:Y-m-d\TH:iP]'), + 'dcterms.modified' => array('value' => '[node:changed:custom:Y-m-d\TH:iP]'), 'dcterms.description' => array('value' => '[node:summary]'), 'dcterms.language' => array('value' => '[node:language]'), 'dcterms.title' => array('value' => '[node:title]'), @@ -154,6 +155,19 @@ function metatag_dc_metatag_info() { 'type' => 'date', ), ); + $info['tags']['dcterms.modified'] = array( + 'label' => t('Dublin Core Modified Date'), + 'description' => t('Date on which the resource was changed.'), + 'class' => 'DrupalTextMetaTag', + 'group' => 'dublin-core', + 'element' => array( + '#theme' => 'metatag_dc', + ), + 'weight' => ++$weight, + 'devel_generate' => array( + 'type' => 'date', + ), + ); $info['tags']['dcterms.type'] = array( 'label' => t('Dublin Core Type'), 'description' => t('The nature or genre of the resource. Recommended best practice is to use a controlled vocabulary such as the DCMI Type Vocabulary [DCMITYPE]. To describe the file format, physical medium, or dimensions of the resource, use the Format element.'),