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


Toggle Sidebar
Your Rating: Results: PatheticBadOKGoodOutstanding! 3 rates
Labels:
opac opac Delete
results results Delete
display display Delete
xsl xsl Delete
webvoyage webvoyage Delete
voyager voyager Delete
intermediate intermediate Delete
basic basic Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Adding a prefix to the results display in TomCat OPAC

Tags: , , , , , , ,
Last Updated: Dec 06, 2010 22:21


  • Description
    If you want to add a label-like prefix to lines 4 or 5, this Code Contribution shows how this can be done. Note that the line must be consistently used to display one type of data (e.g. call number) for the labels to be effective.
  • Author: Tom Pasley
  • Additional author(s):
  • Institution: Universal College of Learning
  • Year: 2010
  • 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 to intermediate - relatively straightforward.

State

Either 'Stable' or 'In Development'

Programming language

XML/XSL

Software requirements

Just TomCat OPAC.

Screen captures

Download

No code to download - just copy and paste from the code samples as indicated.

Working example

http://

Using the following Ex Libris open interfaces

Text...

Changes

Version 1.2 ....

Text...

Version 1.1 ....

Text...

Version 1.0

Code as shared on Voyager-L

Release notes

Installation instructions

Save a backup copy and then edit resultsFacets.xsl from /m1/voyager/YOUR_DATABASE_NAMEdb/tomcat/vwebv/context/vwebv/ui/SKIN_NAME/xsl/pageFacets/

Locate this text:

You can create multiple prefixes for each line... (except Line 1). In this example, Line 4 is always a call number, so I've added the prefix of "Shelf number:

When you've finished creating your code, prepend it to the code identified above.

Then insert the finished code:


Comments

Please add a comment to let me know how this works for you!

Page Attachments

No files have been attached to this page.

Added by Tom Pasley on Dec 06, 2010 00:41, last edited by Tom Pasley on Dec 06, 2010 22:21

Adaptavist Theme Builder Powered by Atlassian Confluence