home.pdf-templates.sections.overview.vm Maven / Gradle / Ivy
## display a list in a row
#macro(displayRowList $label $baseKey $subKey)
$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
$forList.get($key).get("$subKey")
#end
#else
#noInformation()
#end
#end
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")
#displayRow("foaf:fundedBy.foaf:Agent" "Funding source" "even_row")
#displayRowList("Grant numbers" "foaf:fundedBy.vivo:Grant" "")
#displayRow("dc:subject.anzsrc:toa" "Activity type" "even_row")
#displayRowList("FOR codes" "dc:subject.anzsrc:for.0.rdf:resource" "skos:prefLabel")
#displayRowList("SEO codes" "dc:subject.anzsrc:seo.0.rdf:resource" "skos:prefLabel")
Description
#set($v = $util.get($item, 'dc:description'))
#if($v && ("$!v" != ""))
$v
#else
#noInformation()
#end