From de4fd901d3eef7888dfd84cbe46b2da849885430 Mon Sep 17 00:00:00 2001 From: Oleg Vasylenko Date: Wed, 12 Apr 2017 10:45:48 +0300 Subject: [PATCH] Bug 18422 - Add Select2 to authority editor MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Overview: Repeat tag fails if authority field has select subfield (for example, UNIMARC 700$8, 800$a) This patch adds Select2 to authority editor Steps to Reproduce: In authority editor repeat field that has select subfield Actual Results: Field does not repeat (copy is not created). Console shows a js TypeError in cataloging.js: «$(...).select2 is not a function» Expected Results: Field will repeat (copy is created) Additional Information: Error happens in version 16.11+ after adding Select2 js functions. The easiest way to fix is to add Select2 to authority editor Signed-off-by: Fridolin Somers Signed-off-by: Julian Maurice Signed-off-by: Jonathan Druart (cherry picked from commit 2f5a319b0a9f93dde7600decae5df989b842ca58) Signed-off-by: Fridolin Somers --- .../prog/en/modules/authorities/authorities.tt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt index ceb6e606e3..b65e91fdbc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt @@ -153,6 +153,14 @@ function confirmnotdup(redirect){ //]]> + +[% INCLUDE 'select2.inc' %] + + [% IF ( bidi ) %] [% END %] -- 2.39.5