Add content of a marc tag to VITAL3.1.1 object view

Follow the following steps:

1. Add new index to indexing.xml at /opt/vtls/vital/config/interface
New index name: publishedVersion
Xpath : //*/datafield[@tag=’856′]/subfield[@code=’u’]

That throws the Xpath value in the IndexedMetadata variable for the object.

2. add label for display in the access portal in locale-en-au.xml at /opt/vtls/vital/config/localization

file.
<MARCURL>URL</MARCURL>

3. Add the following lines anywhere between line 57 <d1 class=”metadata”> and line 76 where

Methods are declared in /opt/vtls/vital/config/interface/Default/Objects/Default.vm

#if (${IndexedMetadata.get(“publishedVersion”)})
#set($publishedVersion = ${IndexedMetadata.get(“publishedVersion”)})
#singleDisplay (“$(m_locale.MARCURL)” $publishedVersion)
#end

4. Remove 856 from marc_dc.xsl so it doesn’t map to DC

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s