[Koha-bugs] [Bug 20090] New: Missing Script Statement for Novelist Select on Some Record Displays in OPAC

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 25 18:07:35 CET 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20090

            Bug ID: 20090
           Summary: Missing Script Statement for Novelist Select on Some
                    Record Displays in OPAC
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P5 - low
         Component: OPAC
          Assignee: oleonard at myacpl.org
          Reporter: techservspec at gmail.com
        QA Contact: testopia at bugs.koha-community.org

This applies to libraries using Novelist Select enhanced content in their OPAC.
Items with a UPC code but no ISBN are causing a script error (a call to an
undefined function) in the opac-detail display. This is preventing custom
jQuery/scripts from running (as well as keeping any content from Novelist from
displaying).

The cause:

Not all of the conditionals for Novelist in opac-detail.tt are checking for
UPCs, most notably the statement that adds the script for using Novelist. This
can result in calls to non-existent functions.

To test (note that you must subscribe to Novelist Select):

1. If your library does not use the patron ratings feature, activate it for the
purposes of this test.

2. Display a record in the opac that has an ISBN number. Note that the rating
option has 5 stars to choose from.

3. Display a record that does not have an ISBN in the 020 field, but has a upc
(or other code) in the 024 field. The rating option will display as 5 radio
buttons and a "rate it" button (the radio buttons are normally replaced by
stars via a built-in jQuery script).

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list