From b68d391e7f60162551443d10b99f343039e271ee Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Wed, 21 Dec 2011 17:13:49 -0500 Subject: [PATCH] Wrap upgrade for "Tag previously circulated items" YAOUS Also fix a typo ("currenlty") and use the full "circulation" for easier translation. Signed-off-by: Dan Scott --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 2 +- ...ed-items.sql => 0661.data.yaous-opac-tag-circed-items.sql} | 11 +++++++---- 3 files changed, 9 insertions(+), 6 deletions(-) rename Open-ILS/src/sql/Pg/upgrade/{XXXX.data.yaous-opac-tag-circed-items.sql => 0661.data.yaous-opac-tag-circed-items.sql} (57%) diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 863045bb8d..8eba8b3104 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -86,7 +86,7 @@ CREATE TRIGGER no_overlapping_deps BEFORE INSERT OR UPDATE ON config.db_patch_dependencies FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates'); -INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0660', :eg_version); -- berick/senator +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0661', :eg_version); -- berick/dbs CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, 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 48a5783fe4..50b719214d 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -4507,7 +4507,7 @@ INSERT into config.org_unit_setting_type ), oils_i18n_gettext( 'opac.search.tag_circulated_items', - 'When a user is both logged in and has opted in to circ history tracking, turning on this setting will cause previous (or currenlty) circulated items to be highlighted in search results', + 'When a user is both logged in and has opted in to circulation history tracking, turning on this setting will cause previous (or currently) circulated items to be highlighted in search results', 'coust', 'description' ), 'bool', null) diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.yaous-opac-tag-circed-items.sql b/Open-ILS/src/sql/Pg/upgrade/0661.data.yaous-opac-tag-circed-items.sql similarity index 57% rename from Open-ILS/src/sql/Pg/upgrade/XXXX.data.yaous-opac-tag-circed-items.sql rename to Open-ILS/src/sql/Pg/upgrade/0661.data.yaous-opac-tag-circed-items.sql index be200f7562..2c74d57e87 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.yaous-opac-tag-circed-items.sql +++ b/Open-ILS/src/sql/Pg/upgrade/0661.data.yaous-opac-tag-circed-items.sql @@ -1,10 +1,13 @@ --- Evergreen DB patch XXXX.data.yaous-opac-tag-circed-items.sql +-- Evergreen DB patch 0661.data.yaous-opac-tag-circed-items.sql +-- +-- Add org unit setting that enables users who have opted in to +-- tracking their circulation history to see which items they +-- have previously checked out in search results. -- BEGIN; - -- check whether patch can be applied -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); +SELECT evergreen.upgrade_deps_block_check('0661', :eg_version); INSERT into config.org_unit_setting_type (name, grp, label, description, datatype) @@ -19,7 +22,7 @@ INSERT into config.org_unit_setting_type ), oils_i18n_gettext( 'opac.search.tag_circulated_items', - 'When a user is both logged in and has opted in to circ history tracking, turning on this setting will cause previous (or currenlty) circulated items to be highlighted in search results', + 'When a user is both logged in and has opted in to circulation history tracking, turning on this setting will cause previous (or currently) circulated items to be highlighted in search results', 'coust', 'description' ), -- 2.11.0