]> git.koha-community.org Git - koha.git/commit
Bug 20221: Fix for JavaScript error during checkout patron search
authorOwen Leonard <oleonard@myacpl.org>
Thu, 15 Feb 2018 19:43:39 +0000 (19:43 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 16 Feb 2018 16:00:57 +0000 (13:00 -0300)
commit3672df52265d4c3caf6aef84b9f3e3b9f01f47d6
tree0b34396a88ed9084d2c71d0f48f632b7d14c704c
parent8d30669458f671913d56596cd0461d8ab2a7c440
Bug 20221: Fix for JavaScript error during checkout patron search

This patch fixes a bug caused by the changes in Bug 19641. JavaScript
embedded in circ-patron-search-results.inc executes before jQuery is
loaded.

This patch adds a separate javascript file which can be included both in
circulation.tt and request.tt since both use the same include.

To test, apply the patch and submit a patron name in the check out form.
On the page of search results, clicking a table row should work the same
as clicking the patron name link.

Perform the same test during the hold process: Locate and place a hold
on a title. In the patron search form, submit a patron name and test the
behavior of the search results screen.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
koha-tmpl/intranet-tmpl/prog/js/circ-patron-search-results.js [new file with mode: 0644]