From f088096b241a1d3cd07f6cc01c1516b30d47eaae 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/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 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql index 7d72b15c8f..6cf7223a08 100644 --- a/installer/data/mysql/sysprefs.sql +++ b/installer/data/mysql/sysprefs.sql @@ -365,7 +365,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 e90416c4e3..90a60cd521 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 @@ -527,7 +527,7 @@ OPAC: no: Don't display - a library 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 e7625718eb..80b435aad1 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc @@ -279,7 +279,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 0b41a10d8c..4b4c164719 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -64,12 +64,12 @@ [% END %]
- [% IF Koha.Preference( 'OPACAutoFill' ) %] + [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %]
[% END %] -
+
  1. [% IF ( title_required ) %] @@ -103,7 +103,7 @@ [% END %]
  2. - [% UNLESS Koha.Preference( 'OPACAutoFill' ) %] + [% UNLESS Koha.Preference( 'OPACSuggestionAutoFill' ) %]
  3. [% IF ( isbn_required ) %] @@ -469,7 +469,7 @@ } [% END %] - [% IF Koha.Preference( 'OPACAutoFill' ) %] + [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %] $(function() { $('#isbn').autofill({ 'volumeInfo.title': {target: 'title', effect: 'flash'}, -- 2.11.0