#list>
@@ -100,16 +117,15 @@ name will be used as the label. -->
<#-- Macros for specific properties -->
-<#-- Vitro namespace links
-
+<#-- Vitro namespace links
Currently the page displays the vitro namespace links properties. Future versions
will use the vivo core ontology links property, eliminating the need for special handling.
Note that this macro has a side-effect in the calls to propertyGroups.getPropertyAndRemoveFromList().
-->
<#macro vitroLinks propertyGroups namespaces editable linkListClass="individual-urls">
- <#local primaryLink = propertyGroups.getPropertyAndRemoveFromList("${namespaces.vitro}primaryLink")!>
- <#local additionalLinks = propertyGroups.getPropertyAndRemoveFromList("${namespaces.vitro}additionalLink")!>
+ <#local primaryLink = propertyGroups.getPropertyAndRemoveFromList("${namespaces.vitro}primaryLink")!>
+ <#local additionalLinks = propertyGroups.getPropertyAndRemoveFromList("${namespaces.vitro}additionalLink")!>
<#if (primaryLink?has_content || additionalLinks?has_content)> <#-- true when the property is in the list, even if not populated (when editing) -->
@@ -132,21 +148,21 @@ name will be used as the label. -->
<#-- Main image links -->
<#-- Values for showPlaceholder: "always", "never", "with_add_link" -->
<#macro image individual propertyGroups namespaces editable showPlaceholder="never" placeholder="">
- <#local mainImage = propertyGroups.getPropertyAndRemoveFromList("${namespaces.vitroPublic}mainImage")!>
- <#local thumbUrl = individual.thumbUrl!>
+ <#local mainImage = propertyGroups.getPropertyAndRemoveFromList("${namespaces.vitroPublic}mainImage")!>
+ <#local thumbUrl = individual.thumbUrl!>
<#-- Don't assume that if the mainImage property is populated, there is a thumbnail image (though that is the general case).
- If there's a mainImage statement but no thumbnail image, treat it as if there is no image. -->
- <#if (mainImage.statements)?has_content && thumbUrl?has_content>
-
+ If there's a mainImage statement but no thumbnail image, treat it as if there is no image. -->
+ <#if (mainImage.statements)?has_content && thumbUrl?has_content>
+
<@p.editingLinks "${mainImage.localName}" mainImage.statements[0] editable />
<#else>
<#local imageLabel><@p.addLinkWithLabel mainImage editable "Photo" />#local>
${imageLabel}
<#if placeholder?has_content>
<#if showPlaceholder == "always" || (showPlaceholder="with_add_link" && imageLabel?has_content)>
-
+
#if>
- #if>
+ #if>
#if>
#macro>
@@ -154,5 +170,5 @@ name will be used as the label. -->
<#macro label individual editable>
<#local label = individual.nameStatement>
${label.value}
- <@p.editingLinks "label" label editable />
+ <@p.editingLinks "label" label editable />
#macro>
\ No newline at end of file