From 3672df52265d4c3caf6aef84b9f3e3b9f01f47d6 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. Signed-off-by: Jonathan Druart --- .../prog/en/includes/circ-patron-search-results.inc | 12 ------------ .../prog/en/modules/circ/circulation.tt | 1 + .../intranet-tmpl/prog/en/modules/reserve/request.tt | 1 + .../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 29e72a2df9..8d8fcc65f4 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 92489bf817..3068d57088 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 %] +