From 4dbe9b1746ed929520b4f0006d2904cfe564d365 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Thu, 1 May 2014 04:15:55 -0400 Subject: [PATCH] LP#1314920 change the desc for the org hiding setting so that it references physical_loc instead of ol Signed-off-by: Jason Etheridge Signed-off-by: Dan Wells --- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 2 +- .../src/sql/Pg/upgrade/XXXX.data.YAOUS-desc-update.sql | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/XXXX.data.YAOUS-desc-update.sql 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 0ba09a78fc..33b1b3ef69 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -4029,7 +4029,7 @@ INSERT into config.org_unit_setting_type 'Org Unit Hiding Depth', 'coust', 'label'), oils_i18n_gettext('opac.org_unit_hiding.depth', - 'This will hide certain org units in the public OPAC if the Original Location (url param "ol") for the OPAC inherits this setting. This setting specifies an org unit depth, that together with the OPAC Original Location determines which section of the Org Hierarchy should be visible in the OPAC. For example, a stock Evergreen installation will have a 3-tier hierarchy (Consortium/System/Branch), where System has a depth of 1 and Branch has a depth of 2. If this setting contains a depth of 1 in such an installation, then every library in the System in which the Original Location belongs will be visible, and everything else will be hidden. A depth of 0 will effectively make every org visible. The embedded OPAC in the staff client ignores this setting.', + 'This will hide certain org units in the public OPAC if the Physical Location (url param "physical_loc") for the OPAC inherits this setting. This setting specifies an org unit depth, that together with the OPAC Physical Location determines which section of the Org Hierarchy should be visible in the OPAC. For example, a stock Evergreen installation will have a 3-tier hierarchy (Consortium/System/Branch), where System has a depth of 1 and Branch has a depth of 2. If this setting contains a depth of 1 in such an installation, then every library in the System in which the Physical Location belongs will be visible, and everything else will be hidden. A depth of 0 will effectively make every org visible. The embedded OPAC in the staff client ignores this setting.', 'coust', 'description'), 'integer', null) diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.YAOUS-desc-update.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.YAOUS-desc-update.sql new file mode 100644 index 0000000000..280bd65cac --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.YAOUS-desc-update.sql @@ -0,0 +1,9 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); + +UPDATE config.org_unit_setting_type + SET description = replace(replace(description,'Original','Physical'),'"ol"','"physical_loc"') + WHERE name = 'opac.org_unit_hiding.depth'; + +COMMIT; -- 2.43.2