home.pdf-templates.sections.overview.vm Maven / Gradle / Ivy
## display a list in a row
#macro(displayRowList $label $baseKey $subKey $class)
$label
#set($forList = $util.getList($item, "$baseKey"))
#if ($forList.size() > 0)
#set($i = 0)
#foreach($key in $forList.keySet())
#if($i > 0), #else #set($i = 1) #end
#end
#else
#noInformation()
#end
#end
## Special treat for Grant Numbers
#macro(displayGrantNumbers $label $baseKey $class)
$label
#set($forList = $util.getList($item, "$baseKey"))
#if ($forList.size() > 0)
#set($i = 0)
#foreach($key in $forList.keySet())
#if($i > 0), #else #set($i = 1) #end
#set($subv = $forList.get($key).get("skos:prefLabel"))
#if ("$!subv" == "") #set($subv = $forList.get($key).get("redbox:grantNumber")) #end
#end
#else
#noInformation()
#end
#end
Project overview
#displayRow("dc:title" "Project name (*)" "odd_row")
#displayRow("dc:identifier" "Project ID (*)" "even_row")
#displayRow("dc:relation.bibo:Website" "Project website" "odd_row")
#displayRow("dc:coverage.vivo:DateTimeInterval.vivo:start" "Start date" "even_row")
#displayRow("dc:coverage.vivo:DateTimeInterval.vivo:end" "End date" "odd_row")
#displayRowList("Funding source" "foaf:fundedBy.foaf:Agent" "skos:prefLabel" "even_row")
#displayGrantNumbers("Grant number(s)" "foaf:fundedBy.vivo:Grant" "odd_row")
#displayRow("dc:subject.anzsrc:toa.skos:prefLabel" "Activity type" "even_row")
#displayRowList("FoR Codes" "dc:subject.anzsrc:for" "skos:prefLabel" "odd_row")
#displayRowList("SEO Codes" "dc:subject.anzsrc:seo" "skos:prefLabel" "even_row")
Description
#set($v = $util.get($item, 'dc:description').trim())
#if($v && ("$!v" != ""))
#else
#noInformation()
#end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy