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


Toggle Sidebar
Your Rating: Results: PatheticBadOKGoodOutstanding! 2 rates
Labels:
voyager voyager Delete
webvoyage webvoyage Delete
opac opac Delete
javascript javascript Delete
highlight highlight Delete
tomcat tomcat Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Voyage 7 Tomcat - Turn on or off highlighting

Tags: , , , , , Last Updated: Oct 30, 2009 02:10


  • Description

    The highlighting function in Voyage 7 Tomcat OPAC could not be turned on and off by users. It might not be easy to read when highlighting is on. This script allows users to control whether to turn on or off the text highlighting.


  • Author: Jason Zou
  • Additional author(s):
  • Institution: Lakehead University
  • Year: 2009
  • 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

State

Stable

Programming language

Javascript

Working example

http://inukshuk.lakeheadu.ca:7008

Installation instructions

The following is the Javascript code. There are three functions: insertHighlightBtn, turnOnHighlight and turnOffHighlight.

local_highlight.js
1. Save this file as local_highlight.js into your jscripts folder. ( /m1/voyager/xxxdb/tomcat/vwebv/ui/{skin}/jscripts ).

2. Change the framework.xsl. Add the following line:

    right after this line:

3. Change the following line:

to

JQuery javascript library is required to run this script. It can be downloaded from jquery.com.
Save into your jscripts folder. Don't forget to add jquery.js

into the framework.xsl file after the "</title>".

Page Attachments

No files have been attached to this page.

Added by Jason Zou on May 15, 2009 19:54, last edited by Conf Admin on Oct 30, 2009 02:10

Adaptavist Theme Builder Powered by Atlassian Confluence