VIVO-1039: the DOI property will now be a link that accesses the document.

This commit is contained in:
Tim Worrall 2015-06-17 16:16:47 -04:00
parent 2eb332c74c
commit 46695e9ba2
5 changed files with 55 additions and 2 deletions

View file

@ -879,3 +879,4 @@ 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
doi_link=Digital Object Identifier (DOI)

View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<!-- VIVO-specific default list view config file for object properties
See guidelines in vitro/doc/list_view_configuration_guidelines.txt -->
<list-view-config>
<query-select>
SELECT ?value
WHERE {
?subject ?property ?value
FILTER isLiteral(?value)
} ORDER BY ?value
</query-select>
<query-construct>
CONSTRUCT {
?subject ?property ?value
} WHERE {
?subject ?property ?value
}
</query-construct>
<template>propStatement-doi.ftl</template>
</list-view-config>

View file

@ -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>
<a href="http://dx.doi.org/${statement.value!}" title="${i18n().doi_link}" target="_blank">${statement.value!}</a>
</#macro>

View file

@ -126,4 +126,8 @@
<display:listViewConfigFile rdf:datatype="http://www.w3.org/2001/XMLSchema#string">listViewConfig-scopusId.xml</display:listViewConfigFile>
</rdf:Description>
<rdf:Description rdf:about="http://purl.org/ontology/bibo/doi">
<display:listViewConfigFile rdf:datatype="http://www.w3.org/2001/XMLSchema#string">listViewConfig-doi.xml</display:listViewConfigFile>
</rdf:Description>
</rdf:RDF>

View file

@ -884,3 +884,4 @@ add_capitalized = Add
researcher_role = Researcher Role
search_service_btn = Search Service
through_today = Publications through today's date
doi_link=Digital Object Identifier (DOI)