Bugzilla – Attachment 103528 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) renaming syspref
Bug-14242-follow-up-renaming-syspref.patch (text/plain), 6.34 KB, created by
Aleisha Amohia
on 2020-04-23 01:51:45 UTC
(
hide
)
Description:
Bug 14242: (follow up) renaming syspref
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2020-04-23 01:51:45 UTC
Size:
6.34 KB
patch
obsolete
>From edd0e0f8e274bf8dba3d137ebcdc5c84a61fa0cf Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chrisc@catalyst.net.nz> >Date: Fri, 30 Sep 2016 00:48:04 +0000 >Subject: [PATCH] Bug 14242: (follow up) renaming syspref > >OPACAutoFill -> OPACSuggestionAutoFill > >Signed-off-by: Marc <veron@veron.ch> >Signed-off-by: Maryse Simard <maryse.simard@inlibro.com> >--- > installer/data/mysql/atomicupdate/bug_14242-autofill_syspref.sql | 2 +- > installer/data/mysql/sysprefs.sql | 2 +- > .../intranet-tmpl/prog/en/modules/admin/preferences/opac.pref | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 8 ++++---- > 5 files changed, 8 insertions(+), 8 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_14242-autofill_syspref.sql b/installer/data/mysql/atomicupdate/bug_14242-autofill_syspref.sql >index 3cb4ffb501c..1abb6abb17e 100644 >--- a/installer/data/mysql/atomicupdate/bug_14242-autofill_syspref.sql >+++ b/installer/data/mysql/atomicupdate/bug_14242-autofill_syspref.sql >@@ -1 +1 @@ >-INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`,`type`) VALUES ('OPACAutoFill', '0', NULL, 'Automaticly fill forms with data from Google Books API','YesNo'); >+INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`,`type`) VALUES ('OPACSuggestionAutoFill', '0', NULL, 'Automaticly fill forms with data from Google Books API','YesNo'); >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index 977c0dce05a..31e63f92804 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -358,7 +358,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('OAI-PMH:DeletedRecord','persistent','Koha\'s deletedbiblio table will never be deleted (persistent), might be deleted (transient), or will never have any data in it (no)','transient|persistent|no','Choice'), > ('OAI-PMH:MaxCount','50',NULL,'OAI-PMH maximum number of records by answer to ListRecords and ListIdentifiers queries','Integer'), > ('OPACAcquisitionDetails','0','','Show the acquisition details at the OPAC','YesNo'), >-('OPACAutoFill','0',NULL,'Automaticly fill forms with data from Google Books API','YesNo'), >+('OPACSuggestionAutoFill','0',NULL,'Automaticly fill forms with data from Google Books API','YesNo'), > ('OpacAddMastheadLibraryPulldown','0','','Adds a pulldown menu to select the library to search on the opac masthead.','YesNo'), > ('OpacAdvSearchMoreOptions','pubdate,itemtype,language,subtype,sorting,location','Show search options for the expanded view (More options)','pubdate|itemtype|language|subtype|sorting|location','multiple'), > ('OpacAdvSearchOptions','pubdate,itemtype,language,sorting,location','Show search options','pubdate|itemtype|language|subtype|sorting|location','multiple'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >index d603ee7b03a..7410e8be70d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >@@ -562,7 +562,7 @@ OPAC: > no: Don't display > - a branch selection list for news items in the OPAC. > - >- - pref: OPACAutoFill >+ - pref: OPACSuggestionAutoFill > default: 0 > choices: > yes: Enable >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >index ac742b60ccf..e72035f87d4 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc >@@ -267,7 +267,7 @@ $.widget.bridge('uitooltip', $.ui.tooltip); > </script> > [% END %] > >-[% IF ( Koha.Preference('OPACAutoFill') ) %] >+[% IF ( Koha.Preference('OPACSuggestionAutoFill') ) %] > <script type="text/javascript" src="[% interface %]/[% theme %]/js/autofill.js"></script> > [% END %] > >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 a7d779997cf..9329445c23b 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt >@@ -55,12 +55,12 @@ > [% END %] > > <form action="/cgi-bin/koha/opac-suggestions.pl" method="post" id="add_suggestion_form"> >- [% IF Koha.Preference( 'OPACAutoFill' ) %] >+ [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %] > <fieldset class="rows well" style="margin-bottom: 3em;padding-top: 5px;"> > <label for="isbn">Standard number (ISBN, ISSN or other):</label><input type="text" id="isbn" name="isbn" maxlength="80" /> > </fieldset> > [% END %] >- <fieldset class="rows [% IF Koha.Preference( 'OPACAutoFill' ) %]well[% END %]"> >+ <fieldset class="rows [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %]well[% END %]"> > <ol> > <li> > [% IF ( title_required ) %] >@@ -94,7 +94,7 @@ > [% END %] > </div> > </li> >- [% UNLESS Koha.Preference( 'OPACAutoFill' ) %] >+ [% UNLESS Koha.Preference( 'OPACSuggestionAutoFill' ) %] > <li> > [% IF ( isbn_required ) %] > <label for="isbn" class="required">Standard number (ISBN, ISSN or other):</label> >@@ -442,7 +442,7 @@ > } > [% END %] > >- [% IF Koha.Preference( 'OPACAutoFill' ) %] >+ [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %] > $(function() { > $('#isbn').autofill({ > 'volumeInfo.title': {target: 'title', effect: 'flash'}, >-- >2.11.0
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