All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
templates.marc.vm Maven / Gradle / Ivy
#macro (showElementMarc $field $tagNumber $ind1 $ind2 $code $label $anzsrc)
#set($valueMap = $util.getList($item, $field))
#foreach($key in $valueMap.keySet())
#set($value = $valueMap.get($key))
#if ($label != "")
#set($labelVal = $value.get($label))
#if ($anzsrc == "anzsrc")
#set($labelVal = $labelVal.split("-").get(0).trim())
#end
#else
#set($labelVal = $value.get($key))
#end
$labelVal
#end
#end
##Collection type
$util.get($item, "dc:type")
##Primary Title
$util.get($item, "dc:title")
##Electronic location
$urlBase/detail/$oid
##Description full
$util.get($item, "dc:description")
##
##AccessRight
$util.get($item, "access_conditions")
##Keywords
#showElementMarc("dc:subject.keywords", "653", " ", " ", "a", "", "")
##for
#showElementMarc("dc:subject.anzsrc:for", "654", " ", " ", "a", "skos:prefLabel", "anzsrc")
##seo
#showElementMarc("dc:subject.anzsrc:seo", "654", " ", " ", "a", "skos:prefLabel", "anzsrc")
##Quantity
$util.get($item, "extent")
##Website
$util.get($item, "website")
##Publication
#showElementMarc("citations", "856", " ", " ", "u", "", "")
##Data size
$util.get($item, "data_size")
##Date created
$util.get($item, "dc:created")
##External sources
$util.get($item, "sources_used")
##Language
$util.get($item, "dc:language")
##Retention Period
$util.get($item, "retention_period")
##Temporal coverage
$util.get($item, "time_period")
##Principal Investigator
#set($creatorList = $util.getList($item, "dc:creator.foaf:Person"))
#foreach($key in $creatorList.keySet())
#set($creator = $creatorList.get($key))
#if($creator.get("pi") == 1)
$creator.get("foaf:givenName") $creator.get("foaf:familyName")
#end
#end
##Supervisor
$util.get($item, "supervisor")
##Collaborators
#showElementMarc("collaborators", "500", " ", " ", "a", "", "")