From: Lebbeous Fogle-Weekley Date: Fri, 27 Jan 2012 21:24:21 +0000 (-0500) Subject: Default autosuggest to on, opac_visible limiting on X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fsenator%2Fautosuggest;p=working%2FEvergreen.git Default autosuggest to on, opac_visible limiting on By popular demand. Remember: if autosuggest should seem slow, try turning opac_visible off first. Signed-off-by: Lebbeous Fogle-Weekley --- diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index ef53fbf673..b08e11ceb9 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -9247,16 +9247,17 @@ INSERT INTO config.global_flag (name, label, enabled) FALSE ); -INSERT INTO config.global_flag (name, label, enabled) +INSERT INTO config.global_flag (name, label, value, enabled) VALUES ( 'opac.use_autosuggest', oils_i18n_gettext( 'opac.use_autosuggest', - 'OPAC: Show auto-completing suggestions dialog under basic search box (put ''opac_visible'' into the value field to limit suggestions to OPAC-visible items)', + 'OPAC: Show auto-completing suggestions dialog under basic search box (put ''opac_visible'' into the value field to limit suggestions to OPAC-visible items, or blank the field for a possible performance improvement)', 'cgf', 'label' ), - FALSE + 'opac_visible', + TRUE ); diff --git a/Open-ILS/src/sql/Pg/upgrade/YYYY.schema.bib_autosuggest.sql b/Open-ILS/src/sql/Pg/upgrade/YYYY.schema.bib_autosuggest.sql index 896cca265f..ce652b51a0 100644 --- a/Open-ILS/src/sql/Pg/upgrade/YYYY.schema.bib_autosuggest.sql +++ b/Open-ILS/src/sql/Pg/upgrade/YYYY.schema.bib_autosuggest.sql @@ -2,10 +2,11 @@ BEGIN; SELECT evergreen.upgrade_deps_block_check('YYYY', :eg_version); -INSERT INTO config.global_flag (name, label, enabled) VALUES ( +INSERT INTO config.global_flag (name, label, enabled, value) VALUES ( 'opac.use_autosuggest', - 'OPAC: Show auto-completing suggestions dialog under basic search box (put ''opac_visible'' into the value field to limit suggestions to OPAC-visible items)', - FALSE + 'OPAC: Show auto-completing suggestions dialog under basic search box (put ''opac_visible'' into the value field to limit suggestions to OPAC-visible items, or blank the field for a possible performance improvement)', + TRUE, + 'opac_visible' ); CREATE TABLE metabib.browse_entry (