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


Toggle Sidebar
Your Rating: Results: PatheticBadOKGoodOutstanding! 0 rates
Labels:
ebooks ebooks Delete
voyager voyager Delete
tomcat tomcat Delete
electronic_resources electronic_resources Delete
results_display results_display Delete
record_display record_display Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Call Numbers and eBooks Overide eBook display in Voyager / Tomcat

Tags: , , , , ,
Last Updated: Jun 13, 2011 17:44


  • Description
    eBook records typically display confusing info to the patron at the results and display level. For example they will say zero holdings and/or not available as well as have a call number. It's also not immediately evident that this is an electronic resource. This code will do two things: from the results list it will remove the call # and insert a message indicating it is an online resource (or whatever message you choose) and at the display level will change the status to: available online and also remove the erroneous call number. Alex Kustanovich has a version for 7.0 posted on voyagerwiki.com titled Call Numbers and eBooks . Some additional tweaking was required for 7.2x Special thanks to Jim Robinson for his expertise and infinite patience.
  • Author: Judy Brink-Drescher Judy Brink-Drescher
  • Additional author(s): Alex Kustanovich of St. Francis College and Jim Robinson of Tarrant County College
  • Institution: Molloy College
  • 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 - this is more or less a cut and paste exercise.

State

Stable

Programming language

Basic HTML, XSL

Software requirements

Screen captures

Author(s) homepage

About me

Download

Working example

At the results level - see Concise Corsini apx 3rd result http://endeavor.molloy.edu/vwebv/search?searchArg=century+education&searchCode=GKEY^*&page.search.search.button=Search&limitTo=none&recCount=10&searchType=1

At the display

Using the following Ex Libris open interfaces

Changes

Version 1.2 ....

Version 1.1 ....

...

Release notes

Installation instructions

It is important that your call numbers contain an eb -as used in this example - or a unique identifier. We added a lowercase eb to the end of our call number.

1. Modify /xsl/pageFacets/resultsFacets.xsl

Look for the block of code that says:

    <xsl:when test="position()=substring($firstBibTextWithLabel,1,1) and not(string-length($linkText))">
              <a href="{$linkURL}">
                 <xsl:value-of select="page:label"/> <xsl:value-of select="page:value"/>
               </a>
      </xsl:when>

Insert the following direct under it:

This removes the call number from the results display and inserts the "eBook/eRef Online Access etc" message

2. Modify /xsl/contentLayout/display/display.xsl

Find the following:

 <h3 class="holdingsSummaryHeading">
                                <xsl:value-of select="@label"/>
                            </h3>
                        </xsl:when>
                        <xsl:otherwise>
                                 
                            </xsl:otherwise>
                    </xsl:choose>
                </div>
                <xsl:copy-of select="$displayData"/>
            </xsl:when>
            <xsl:when test="string-length($displayData)">

And begin under it:

Be sure all of your tags are closed or it will break the display

3. In the same display.xsl file further down, look for:

 <span class="fieldLabelSpan">
                            <xsl:choose>
                                <xsl:when test="string-length(@label)">
                                    <xsl:value-of select="@label"/>
                                </xsl:when>
                                <xsl:otherwise>
                                     
                                </xsl:otherwise>
                            </xsl:choose>
                        </span>
                 

Insert the following code:

This will remove the call number from the holdings display and change the status to: Available Online

There is no additional information at this time.

TO DO list

Known issues


Comments

Page Attachments

No files have been attached to this page.

Added by Judy Brink-Drescher on Oct 05, 2010 21:02, last edited by Judy Brink-Drescher on Jun 13, 2011 17:44

Adaptavist Theme Builder Powered by Atlassian Confluence