moved weblink changes from VIVO to Vitro (#101)
Related to: Related to: https://jira.duraspace.org/browse/VIVO-1619
This commit is contained in:
parent
129e1219a8
commit
ad24dc306d
2 changed files with 13 additions and 4 deletions
|
@ -6,15 +6,19 @@
|
|||
is also used to generate the property statement during a deletion.
|
||||
-->
|
||||
<#import "lib-datetime.ftl" as dt>
|
||||
<#import "lib-meta-tags.ftl" as lmt>
|
||||
<#if property.rangeDatatypeURI?? && property.rangeDatatypeURI?contains("#")>
|
||||
<#assign datatype = property.rangeDatatypeURI?substring(property.rangeDatatypeURI?last_index_of("#")+1) />
|
||||
<#else>
|
||||
<#assign datatype = "none" />
|
||||
</#if>
|
||||
<@showStatement statement datatype />
|
||||
|
||||
<#macro showStatement statement datatype>
|
||||
<@showStatement statement property datatype />
|
||||
<#macro showStatement statement property datatype>
|
||||
<#assign theValue = statement.value />
|
||||
|
||||
<#if datatype == "anyURI" && theValue?starts_with("http")>
|
||||
<#assign theValue = "<a href=\"" + statement.value + "\" target=\"_blank\">" + statement.value + "</a>" />
|
||||
</#if>
|
||||
|
||||
<#if theValue?contains("<ul>") >
|
||||
<#assign theValue = theValue?replace("<ul>","<ul class='tinyMCEDisc'>") />
|
||||
|
@ -43,7 +47,8 @@
|
|||
<#else>
|
||||
${theValue} <#if !datatype?contains("none")> <@validateFormat theValue datatype/> </#if>
|
||||
</#if>
|
||||
</#macro>
|
||||
<@lmt.addCitationMetaTag uri=(property.uri!) content=(theValue!) />
|
||||
</#macro>
|
||||
<#macro validateFormat value datatype >
|
||||
<#if datatype?? >
|
||||
<#switch datatype>
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
<#-- $This file is distributed under the terms of the license in LICENSE$ -->
|
||||
|
||||
<#macro addCitationMetaTag uri="" content="">
|
||||
</#macro>
|
Loading…
Add table
Reference in a new issue