Merge branch 'develop' of https://github.com/vivo-project/Vitro into develop

This commit is contained in:
Graham Triggs 2016-04-29 21:03:57 +01:00
commit 721a7fb892

View file

@ -177,25 +177,23 @@ name will be used as the label. -->
</#if>
</#macro>
<#macro editLink propertyLocalName propertyName statement rangeUri="">
<#local url = statement.editUrl>
<#if url?has_content>
<#if propertyLocalName?contains("ARG_2000028")>
<#if rangeUri?contains("Address")>
<#local url = statement.editUrl + "&addressUri=" + "${statement.address!}">
<#local url = url + "&addressUri=" + "${statement.address!}">
<#elseif rangeUri?contains("Telephone") || rangeUri?contains("Fax")>
<#local url = statement.editUrl + "&phoneUri=" + "${statement.phone!}">
<#local url = url + "&phoneUri=" + "${statement.phone!}">
<#elseif rangeUri?contains("Work") || rangeUri?contains("Email")>
<#local url = statement.editUrl + "&emailUri=" + "${statement.email!}">
<#local url = url + "&emailUri=" + "${statement.email!}">
<#elseif rangeUri?contains("Name")>
<#local url = statement.editUrl + "&fullNameUri=" + "${statement.fullName!}">
<#local url = url + "&fullNameUri=" + "${statement.fullName!}">
<#elseif rangeUri?contains("Title")>
<#local url = statement.editUrl + "&titleUri=" + "${statement.title!}">
<#local url = url + "&titleUri=" + "${statement.title!}">
</#if>
<#else>
<#local url = statement.editUrl>
</#if>
<#if url?has_content>
<@showEditLink propertyLocalName url />
</#if>
</#macro>
<#macro showEditLink propertyLocalName url>