From 146aad778a19924751cb9441d7f8534d7e321bc1 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, there should be no changes OPACAutoFill -> OPACSuggestionAutoFill --- 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 3cb4ffb..1abb6ab 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 9d89af6..ccfeb28 100644 --- a/installer/data/mysql/sysprefs.sql +++ b/installer/data/mysql/sysprefs.sql @@ -278,7 +278,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('OAI-PMH:MaxCount','50',NULL,'OAI-PMH maximum number of records by answer to ListRecords and ListIdentifiers queries','Integer'), ('OCLCAffiliateID','','','Use with FRBRizeEditions and XISBN. You can sign up for an AffiliateID here: http://www.worldcat.org/wcpa/do/AffiliateUserServices?method=initSelfRegister','free'), ('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 1719a9c..d47fad6 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 @@ -503,7 +503,7 @@ OPAC: no: Don't display - the acquisition details on OPAC detail pages. - - - 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 309ae9a..9f78bd7 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc @@ -214,7 +214,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 0a155ef..087ba6e 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -39,12 +39,12 @@

Only certain fields (marked in red) are required, but the more information you enter the easier it will be for the librarians to find the title you're requesting. The "Notes" field can be used to provide any additional information.

- [% IF Koha.Preference( 'OPACAutoFill' ) %] + [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %]
[% END %] -
+
  1. @@ -53,7 +53,7 @@ - [% IF NOT Koha.Preference( 'OPACAutoFill' ) %] + [% IF NOT Koha.Preference( 'OPACSuggestionAutoFill' ) %]
  2. [% END %]
  3. @@ -297,7 +297,7 @@ } [% END %] - [% IF Koha.Preference( 'OPACAutoFill' ) %] + [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %] $(function() { $('#isbn').autofill({ 'volumeInfo.title': {target: 'title', effect: 'flash'}, -- 2.1.4