All Downloads are FREE. Search and download functionalities are using the official Maven repository.

portal.default.redbox.display.package-dataset.detail.preview.body.vm Maven / Gradle / Ivy

There is a newer version: 1.10.2
Show newest version
#macro(missing $value)
{missing: '$self.escapeHtml("$value")'}
#end
#macro(noInformation)
(no information)
#end
#macro(sectionHeading $heading)
$heading
#end
#macro(displayFirst $key $name)
    
$name
#set ($value = $self.getFirst($key)) #if ("$!value" != "")
$value
#else
#noInformation()
#end #end #macro(displayUrl $name $hrefField $labelField $canBeUnlinked)
$name
#set ($link = $self.getFirst($hrefField)) #set ($label = $self.getFirst($labelField)) #if ("$!link" != "") #if ("$!label" != "")
$label
#else
$link
#end #else #if ($canBeUnlinked == "true" && "$!label" != "")
$label
#else
#noInformation()
#end #end #end #macro(displayList $baseKey $name)
$name
#set($prefixList = $self.getList($baseKey)) #if ($prefixList.isEmpty())
#noInformation()
#else
    #foreach($key in $prefixList.keySet()) #foreach($value in $prefixList.get($key))
  1. $self.escapeHtml($value)
  2. #end #end
#end #end #macro(displayUrlList $key $name $hrefField $labelField)
$name
#set($urlList = $self.getList($key)) #if ($urlList.isEmpty())
#noInformation()
#else
    #foreach($key in $urlList.keySet()) #set($url = $urlList.get($key)) #set($href = $url.get($hrefField)) #set($label = $url.get($labelField)) #if("$!href"!="")
  1. #if("$!label"!="") $self.escapeHtml($label) #else $self.escapeHtml($href) #end
  2. #end #end
#end #end #macro(displayKey $map $key $required) #set ($value = $map.get($key)) #if ("$!value" != "") $self.escapeHtml($value) #else #if ($required) #missing($key) #end #end #end #macro(displayUnescapedKey $map $key $required) #set ($value = $map.get($key)) #if ("$!value" != "") $value #else #if ($required) #missing($key) #end #end #end #macro(displayOptionalKey $map $key) #displayKey($map $key false) #end #macro(displayRequiredKey $map $key) #displayKey($map $key true) #end #macro(displayUnescapedRequiredKey $map $key) #displayUnescapedKey($map $key true) #end #parseDisplayTemplate("detail/preview/identification.vm")
Show all sections
#if($page.authentication.is_admin()) #parseDisplayTemplate("detail/preview/sections/curation.vm") #end #parseDisplayTemplate("detail/preview/sections/general.vm") #parseDisplayTemplate("detail/preview/sections/embargo.vm") #parseDisplayTemplate("detail/preview/sections/coverage.vm") #parseDisplayTemplate("detail/preview/sections/description.vm") #parseDisplayTemplate("detail/preview/sections/people.vm") #parseDisplayTemplate("detail/preview/sections/subject.vm") #parseDisplayTemplate("detail/preview/sections/rights.vm") #parseDisplayTemplate("detail/preview/sections/attach.vm") #parseDisplayTemplate("detail/preview/sections/citation.vm") #if($page.authentication.is_logged_in()) #parseDisplayTemplate("detail/preview/sections/management.vm") #parseDisplayTemplate("detail/preview/sections/notes.vm") #parseDisplayTemplate("detail/preview/sections/request.vm") #end #if($page.authentication.is_admin()) #parseDisplayTemplate("detail/preview/sections/admin.vm") #end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy