Display of RTL (Right-to-Left) languages in WebVoyage
The purpose of this blog post is to provide code used in the display.xsl file so that Voyager WebVoyage displays RTL (Right-to-Left) languages more elegantly than it does out of the box.
This code was supplied by a Voyager customer and comes as-is. It has been tested in Voyager 9.2.1 and 10.1.0.
Compare your current display.xsl file with the code added in this version of the file. The only difference between the file supplied here and a vanilla “out of the box” file is the RTL code that you will need to add to your file.
The code uses Java extensions (e.g., Java String Class) to accomplish its task, through applying the HMTL “dir” attribute (dir=”rtl”). Metadata text are evaluated against a regex.
This code applies to some but not all MARC 880 fields. See the example below where the Hebrew Title and Hebrew Publisher are displayed using the attached code.