From 46695e9ba27c52c2958022aec5d0e720b83ed673 Mon Sep 17 00:00:00 2001 From: Tim Worrall Date: Wed, 17 Jun 2015 16:16:47 -0400 Subject: [PATCH] VIVO-1039: the DOI property will now be a link that accesses the document. --- .../themes/wilma/i18n/all_es_GO.properties | 3 +- productMods/config/listViewConfig-doi.xml | 30 +++++++++++++++++++ .../partials/individual/propStatement-doi.ftl | 17 +++++++++++ rdf/display/everytime/vivoListViewConfig.rdf | 4 +++ themes/wilma/i18n/all.properties | 3 +- 5 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 productMods/config/listViewConfig-doi.xml create mode 100644 productMods/templates/freemarker/body/partials/individual/propStatement-doi.ftl diff --git a/languages/es_GO/themes/wilma/i18n/all_es_GO.properties b/languages/es_GO/themes/wilma/i18n/all_es_GO.properties index a9adca4d..54e6f7b0 100644 --- a/languages/es_GO/themes/wilma/i18n/all_es_GO.properties +++ b/languages/es_GO/themes/wilma/i18n/all_es_GO.properties @@ -878,4 +878,5 @@ role_type = Tipo de papel add_capitalized = Añadir researcher_role = El papel del investigador search_service_btn = Búsqueda el servicio -through_today = publicaciones sobre la fecha de hoy \ No newline at end of file +through_today = publicaciones sobre la fecha de hoy +doi_link=Digital Object Identifier (DOI) \ No newline at end of file diff --git a/productMods/config/listViewConfig-doi.xml b/productMods/config/listViewConfig-doi.xml new file mode 100644 index 00000000..2a09a0c4 --- /dev/null +++ b/productMods/config/listViewConfig-doi.xml @@ -0,0 +1,30 @@ + + + + + + + + + SELECT ?value + WHERE { + + ?subject ?property ?value + FILTER isLiteral(?value) + + } ORDER BY ?value + + + + + CONSTRUCT { + ?subject ?property ?value + } WHERE { + ?subject ?property ?value + } + + + + diff --git a/productMods/templates/freemarker/body/partials/individual/propStatement-doi.ftl b/productMods/templates/freemarker/body/partials/individual/propStatement-doi.ftl new file mode 100644 index 00000000..8c69ff2d --- /dev/null +++ b/productMods/templates/freemarker/body/partials/individual/propStatement-doi.ftl @@ -0,0 +1,17 @@ +<#-- $This file is distributed under the terms of the license in /doc/license.txt$ --> + +<#-- VIVO-specific default data property statement template. + + This template must be self-contained and not rely on other variables set for the individual page, because it + is also used to generate the property statement during a deletion. + --> +<@showStatement statement /> + +<#macro showStatement statement> + ${statement.value!} + + + + + + diff --git a/rdf/display/everytime/vivoListViewConfig.rdf b/rdf/display/everytime/vivoListViewConfig.rdf index c595b91f..68cfd957 100644 --- a/rdf/display/everytime/vivoListViewConfig.rdf +++ b/rdf/display/everytime/vivoListViewConfig.rdf @@ -125,5 +125,9 @@ listViewConfig-scopusId.xml + + + listViewConfig-doi.xml + diff --git a/themes/wilma/i18n/all.properties b/themes/wilma/i18n/all.properties index 0a73ef2a..b84836b0 100644 --- a/themes/wilma/i18n/all.properties +++ b/themes/wilma/i18n/all.properties @@ -883,4 +883,5 @@ role_type = Role type add_capitalized = Add researcher_role = Researcher Role search_service_btn = Search Service -through_today = Publications through today's date \ No newline at end of file +through_today = Publications through today's date +doi_link=Digital Object Identifier (DOI) \ No newline at end of file