Bugzilla – Attachment 89662 Details for
Bug 14242
Use ISBN-field to fill out purchase suggestions using Google Books API
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14242: (follow-up) Move English strings out of JavaScript
Bug-14242-follow-up-Move-English-strings-out-of-Ja.patch (text/plain), 2.43 KB, created by
Owen Leonard
on 2019-05-13 14:06:11 UTC
(
hide
)
Description:
Bug 14242: (follow-up) Move English strings out of JavaScript
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2019-05-13 14:06:11 UTC
Size:
2.43 KB
patch
obsolete
>From 8a22e63df6bc1f658f818ef13a5a3dce19cd9a67 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 13 May 2019 14:01:53 +0000 >Subject: [PATCH] Bug 14242: (follow-up) Move English strings out of JavaScript > >In order for English strings to be translatable they must be defined in >the template, not in the JS file. >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 4 ++-- > koha-tmpl/opac-tmpl/bootstrap/js/autofill.js | 7 ++----- > 2 files changed, 4 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt >index 83fe170..2df0958 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt >@@ -285,7 +285,8 @@ > [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %] > [% INCLUDE 'datatables.inc' %] > <script> >- //<![CDATA[ >+ var MSG_UNDO_AUTOFILL_SUGGESTION = _("Undo"); >+ var MSG_SEARCH_GOOGLE_BOOKS = _("Search Google Books"); > [% IF ( loggedinusername ) %] > function enableCheckboxActions(){ > // Enable/disable controls if checkboxes are checked >@@ -373,6 +374,5 @@ > } > [% END %] > }); >-//]]> > </script> > [% END %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js b/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js >index 327566f..d3c2e46 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js >+++ b/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js >@@ -25,13 +25,10 @@ > self.$elm = $(elm); > self.fields = fields; > >- var UNDO_STRING = _("Undo"); >- var GOOGLE_BOOKS_STRING = _("Search Google Books"); >- > /* decorate element as autofiller */ > var $inputgroup = $('<div class="input-prepend">'); >- self.$undo = $('<span class="add-on" style="display:none;cursor:pointer;">' + UNDO_STRING + '</span>'); >- self.$fillbtn = $('<span class="add-on" style="cursor:pointer;">' + GOOGLE_BOOKS_STRING + '</span>'); >+ self.$undo = $('<span class="add-on" style="display:none;cursor:pointer;">' + MSG_UNDO_AUTOFILL_SUGGESTION + '</span>'); >+ self.$fillbtn = $('<span class="add-on" style="cursor:pointer;">' + MSG_SEARCH_GOOGLE_BOOKS + '</span>'); > self.$error = $('<span class="add-on" style="display:none;"></span>'); > self.$elm.wrap($inputgroup); > self.$elm.after(self.$error); >-- >2.1.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 14242
:
42002
|
55949
|
56061
|
56062
|
56070
|
56071
|
56072
|
56073
|
56074
|
56075
|
84760
|
84761
|
84762
|
84763
|
84764
|
84840
|
85031
|
85032
|
85033
|
85034
|
85035
|
89643
|
89662
|
90157
|
90158
|
90159
|
90160
|
90161
|
90162
|
90250
|
90251
|
90252
|
90253
|
90254
|
90255
|
103527
|
103528
|
103529
|
103530
|
103531
|
103532
|
103533
|
108695
|
108696
|
108697
|
108698
|
108699
|
108700
|
108701
|
110141
|
110142
|
110143
|
110144
|
110145
|
110146
|
110147
|
110148
|
110493
|
110494
|
110495
|
110496
|
110497
|
110498
|
110499
|
110500
|
110501
|
110990
|
112597
|
112598
|
112599
|
112600
|
112601
|
112602
|
112603
|
112604
|
112605
|
112606
|
112607
|
113162
|
113163
|
113164
|
113165
|
113166
|
113167
|
116620
|
116712
|
116968
|
116989
|
125380
|
125381
|
125382
|
131219
|
131220
|
131221
|
131222
|
133985
|
133986
|
133987
|
133988
|
134273
|
134274
|
134275
|
134276
|
134277
|
134278