TomCat Webvoyage OPAC - Display language of Titles
Tags: tomcat
, record
, voyager
, interface
, marc
, intermediate
, xsl
Last Updated: Feb 14, 2011 23:46
- Description
This was a request from Voyager-L to display the language of items in the catalogue/OPAC. There was some code used for the Primo add-ons from 7.2.3, and with a bit of tweaking, this has been made to work with the normal TomCat installation. Uses the language code encoded in the MaRC 008 header(? - hey, I am not a cataloguer), field and matches this with entries in a custom XML document to show the translated value of the code in the normal OPAc display.
- Author: Tom Pasley
- Additional author(s):
- Institution: Universal College of Learning
- Year: 2011
- License: BSD style
- Short description: Use, modification and distribution of the code are permitted provided the copyright notice, list of conditions and disclaimer appear in all related material.
- Link to terms: [Detailed license terms]
- Skill required for using this code:
Basic (provided you have some idea of what you're doing).
State
Either 'Stable' or 'In Development'
Programming language
XSL
Software requirements
Just TomCat WebVoyage - developed on 7.2.3, but should work for most versions(?)
Download
Config file for the languages display - to be placed in your local installation (adjust path to suit local circumstances):
/m1/voyager/xxxdb/tomcat/vwebv/context/vwebv/ui/my_skin/xsl/contentLayout/configs/
Working example
http://libcat.ucol.ac.nz/vwebv/holdingsInfo?sk=exl_default&bibId=40416 (while this skin is working) 
Changes
Version 1.1 ....
Text...
Version 1.0
As released 14 February 2011.
Installation instructions
| Backup affected files first! |
Copy the attached languages.xml to (adjust paths to suit local circumstances):
/m1/voyager/xxxdb/tomcat/vwebv/context/vwebv/ui/my_skin/xsl/contentLayout/configs/
DISPLAY.XSL changes:
Backup display.xsl from
/m1/voyager/xxxdb/tomcat/vwebv/context/vwebv/ui/my_skin/xsl/contentLayout/display/
Add this code to the bottom, just above the bottom tag of </xsl:stylesheet>
Then, find, and add some code to the processDisplayTags template:
Before:
After:
DISPLAYCFG.XML changes
Backup displaycfg.xml from:
/m1/voyager/xxxdb/tomcat/vwebv/context/vwebv/ui/my_skin/xsl/contentLayout/configs/
...and add this text in somewhere in the order that you want it, relative to other elements. Generally, it doesn't matter where, as long as you don't put it in a commented area, and preserve the integrity of the XML document.
TO DO list
Text...
Known issues
Text...
Comments
Let me know how you get on... :)

