List Identifiers on Object View Page – VITAL3.1.1

File modified: ~/vital/config/interface/repositoryID/Objects/Default.vm

This code lists all identifiers and concatenates a protocol ahead of a selected identifier for display in object view.

## list identifiers and test
#foreach($identifier in $a_identifier)
#set($testID = $identifier.getText())
#set($firstTwoChars = $testID.substring(0,2))
#set($protocol = ‘http://dx.doi.org/’)
#if ($firstTwoChars == ‘wm’)
#set($Identifier = “$protocol$testID”)

#else
#set($Identifier = $testID)
#end
#singleDisplay(“${m_locale.DCIdentifier}” $Identifier)
#end

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