From: Dan Scott Date: Wed, 21 Dec 2011 22:13:49 +0000 (-0500) Subject: Wrap upgrade for "Tag previously circulated items" YAOUS X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b68d391e7f60162551443d10b99f343039e271ee;p=Evergreen.git 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 --- 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/0661.data.yaous-opac-tag-circed-items.sql b/Open-ILS/src/sql/Pg/upgrade/0661.data.yaous-opac-tag-circed-items.sql new file mode 100644 index 0000000000..2c74d57e87 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0661.data.yaous-opac-tag-circed-items.sql @@ -0,0 +1,33 @@ +-- 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('0661', :eg_version); + +INSERT into config.org_unit_setting_type + (name, grp, label, description, datatype) + VALUES ( + 'opac.search.tag_circulated_items', + 'opac', + oils_i18n_gettext( + 'opac.search.tag_circulated_items', + 'Tag Circulated Items in Results', + 'coust', + 'label' + ), + oils_i18n_gettext( + 'opac.search.tag_circulated_items', + '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' + ); + + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.yaous-opac-tag-circed-items.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.yaous-opac-tag-circed-items.sql deleted file mode 100644 index be200f7562..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.yaous-opac-tag-circed-items.sql +++ /dev/null @@ -1,30 +0,0 @@ --- Evergreen DB patch XXXX.data.yaous-opac-tag-circed-items.sql --- -BEGIN; - - --- check whether patch can be applied -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -INSERT into config.org_unit_setting_type - (name, grp, label, description, datatype) - VALUES ( - 'opac.search.tag_circulated_items', - 'opac', - oils_i18n_gettext( - 'opac.search.tag_circulated_items', - 'Tag Circulated Items in Results', - 'coust', - 'label' - ), - 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', - 'coust', - 'description' - ), - 'bool' - ); - - -COMMIT;