Skip to content

Commit

Permalink
Updated oai_dc and marc for multiple, wysiwyg descriptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Mulholland committed Nov 21, 2018
1 parent aafb723 commit 304efb0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
12 changes: 11 additions & 1 deletion config/src/main/config/home/templates/marc.vm
Expand Up @@ -165,7 +165,17 @@ http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd">
#basicField("653", "0", "4", "a", "dc:coverage.redbox:timePeriod")

## Description tab
#basicField("520", " ", " ", "a", "dc:description")
#set($valueMap = $util.getList($item, "dc:description"))
#foreach($key in $valueMap.keySet())
#set($description = $valueMap.get($key))
#set($descText = $description.get("shadow"))
#if("$!descText" != "")
#openField("520", " ", " ")
#subField("a", $descText)
#closeField()
#end
#end

#showElementMarc("dc:relation.swrc:Publication", "856", "4", "2", "u", "dc:identifier", "")
#showElementMarc("dc:relation.bibo:Website", "856", "4", "2", "u", "dc:identifier", "")

Expand Down
9 changes: 8 additions & 1 deletion config/src/main/config/home/templates/oai_dc.vm
Expand Up @@ -111,7 +111,14 @@
#dc2("subject", "dc:coverage.redbox:timePeriod")

## Description tab
#dc1("description")
#set($valueMap = $util.getList($item, "dc:description"))
#foreach($key in $valueMap.keySet())
#set($description = $valueMap.get($key))
#set($descText = $description.get("shadow"))
#if("$!descText" != "")
<dc:description>$util.encodeXml($descText)</dc:description>
#end
#end
#relations("dc:relation.swrc:Publication")
#relations("dc:relation.bibo:Website")

Expand Down

0 comments on commit 304efb0

Please sign in to comment.