From 28d4005a1d9245b9255a9918526976e26cbfa072 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 15 Feb 2018 19:43:39 +0000 Subject: [PATCH] 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. --- .../prog/en/includes/circ-patron-search-results.inc | 12 ------------ koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 1 + .../intranet-tmpl/prog/js/circ-patron-search-results.js | 11 +++++++++++ 4 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/js/circ-patron-search-results.js diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc index 29e72a2..8d8fcc6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc @@ -1,16 +1,4 @@ [% USE KohaDates %] - Patron selection diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index 92489bf..3068d57 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -983,6 +983,7 @@ No patron matched [% message | html %] +