[Koha-bugs] [Bug 11829] JavaScript error on staff client biblio details pages if template variables are undefined

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Feb 24 17:19:49 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11829

--- Comment #2 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 25588
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=25588&action=edit
Bug 11829 - JavaScript error on staff client biblio details pages if template
variables are undefined

The JavaScript included in cat-toolbar.inc expects several variables to
be passed to the template for use in calculations. Several scripts
to not pass the required variables to the template, leading to a JS
error.

This patch re-adds (See Bug 9823) hold count calculation to the required
scripts and copies the acquisitions-related count calculation from
detail.pl into related bibliographic detail scripts so that the
commonnly-included cat-toolbar.inc can receive correct values.

To test, locate a bibliographic record which has no holds and is not
used in a current or deleted order, but which has a local cover image
attached. Check the following views to confirm there is no JavaScript
error:

- Normal
- MARC
- Labeled MARC
- ISBD
- Items
- Images (from the Images tab on the "Normal" detail page)

Next, locate a bibliographic record with no items attached which is used
in an Acquisitions order. On each of the pages listed above, choose
"Delete record" from the Edit menu. This should trigger a warning that
the record is used in an order. Cancel the deletion.

Finally, delete the order which references the bibliographic record. On
each of the pages listed above, choose "Delete record" again. This
should trigger a warning that the record is used in a deleted order.
Cancel the deletion.

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


More information about the Koha-bugs mailing list