Bugzilla – Attachment 67142 Details for
Bug 18422
Add Select2 to authority editor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18422 - Add Select2 to authority editor
Bug-18422---Add-Select2-to-authority-editor.patch (text/plain), 1.80 KB, created by
Fridolin Somers
on 2017-09-15 09:52:24 UTC
(
hide
)
Description:
Bug 18422 - Add Select2 to authority editor
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2017-09-15 09:52:24 UTC
Size:
1.80 KB
patch
obsolete
>From 9358ee3f7e28599fef534bfe6d0515a1d5d3ef5f Mon Sep 17 00:00:00 2001 >From: Oleg Vasylenko <synapse.ova@gmail.com> >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=UTF-8 >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 <fridolin.somers@biblibre.com> >--- > .../intranet-tmpl/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 ceb6e60..b65e91f 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){ > //]]> > </script> > <link type="text/css" rel="stylesheet" href="[% interface %]/[% theme %]/css/addbiblio.css" /> >+ >+[% INCLUDE 'select2.inc' %] >+<script> >+ $(document).ready(function() { >+ $('.subfield_line select').select2(); >+ }); >+</script> >+ > [% IF ( bidi ) %] > <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left.css" /> > [% END %] >-- >2.7.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18422
:
62070
|
67142
|
67451
|
67452