From 05afbc6be40b87f407ebcdcdc40036e8b491a317 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Fri, 30 Sep 2016 00:48:04 +0000 Subject: [PATCH] Bug 14242: (follow up) renaming syspref OPACAutoFill -> OPACSuggestionAutoFill Signed-off-by: Marc Signed-off-by: Maryse Simard Signed-off-by: Lisette Scheer --- 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 3cb4ffb501..1abb6abb17 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 34dc849414..ee331e3367 100644 --- a/installer/data/mysql/sysprefs.sql +++ b/installer/data/mysql/sysprefs.sql @@ -360,7 +360,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 75d0318523..a334b8b07a 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 @@ -526,7 +526,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 87e463426e..37b3747526 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc @@ -244,7 +244,7 @@ $.widget.bridge('uitooltip', $.ui.tooltip); [% END %] -[% IF ( Koha.Preference('OPACAutoFill') ) %] +[% IF ( Koha.Preference('OPACSuggestionAutoFill') ) %] [% 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 7583758546..9e3be52997 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 %]
- [% IF Koha.Preference( 'OPACAutoFill' ) %] + [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %]
[% END %] -
+
  1. [% IF ( title_required ) %] @@ -94,7 +94,7 @@ [% END %]
  2. - [% UNLESS Koha.Preference( 'OPACAutoFill' ) %] + [% UNLESS Koha.Preference( 'OPACSuggestionAutoFill' ) %]
  3. [% IF ( isbn_required ) %] @@ -456,7 +456,7 @@ } [% END %] - [% IF Koha.Preference( 'OPACAutoFill' ) %] + [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %] $(function() { $('#isbn').autofill({ 'volumeInfo.title': {target: 'title', effect: 'flash'}, -- 2.11.0