Customising OpenURL link in VITAL3.1.1

  1. Amend file /opt/vtls/vital/config/interface/[LOCALNAME]/Objects/Default.vm
  2. ##############################################################################
    ## OpenURL ###################################################################

    ## Example for adding additional elements to the OpenURL 1.0 link.
    #if($IndexedMetadata.get(“journaltitle”))
    #set($OpenURL = $OpenURL.changeParameter(“atitle”, $IndexedMetadata.get(“title”)))
    #set($OpenURL = $OpenURL.changeParameter(“sid”))
    #set($OpenURL = $OpenURL.changeParameter(“title”))
    #set($OpenURL = $OpenURL.changeParameter(“title”, $IndexedMetadata.get(“journaltitle”)))
    #end
    #if($a_datastreams.size() >= 0)
    <a href=”$!{OpenURL}”><img src=”$Assets/badges/openurl.png” alt=”${m_locale.OpenURL}”/></a>
    #end

  3. Add Base URL to /opt/vtls/vital/config/vital.properties

    vital.openurl.resolver = http://LOCALNAME_OPENURL

  4. Create index called ‘journaltitle’ in /opt/vtls/vital/config/indexing.xml
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