Access Keys:
Skip to content (Access Key - 0)
My Area (Access Key - 2)


Toggle Sidebar
Your Rating: Results: PatheticBadOKGoodOutstanding! 2 rates
Labels:
tomcat tomcat Delete
record record Delete
voyager voyager Delete
interface interface Delete
marc marc Delete
intermediate intermediate Delete
xsl xsl Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

TomCat Webvoyage OPAC - Display language of Titles

Tags: , , , , , ,
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

languages.xml

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... :)

Page Attachments

File NameCommentSizeNumber of Downloads
languages.xmlExample config for Translating MaRC 008 to English1 kB113

Added by Tom Pasley on Feb 14, 2011 04:02, last edited by Tom Pasley on Feb 14, 2011 23:46

Adaptavist Theme Builder Powered by Atlassian Confluence