From 2da42a5b540c67e3421f06629e34a71c1d958072 Mon Sep 17 00:00:00 2001 From: Kathy Lussier Date: Tue, 13 Nov 2018 21:07:19 -0500 Subject: [PATCH 1/1] LP#1787479: Make label names more descriptive As previously discussed on the cataloging list and the LP bug, the previous label names of 'left' and 'right' no longer make sense since staff can control the placement of these labels. However, label 1 and label 2 are too generic. We therefore are going back to spine and pocket labels. Signed-off-by: Kathy Lussier Signed-off-by: Chris Sharp --- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 24 ++--- ...xxx.data.update_item_label_org_unit_labels | 96 +++++++++++++++++++ .../staff/cat/printlabels/t_view.tt2 | 6 +- .../share/print_templates/t_item_label.tt2 | 16 ++-- 4 files changed, 119 insertions(+), 23 deletions(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/xxxx.data.update_item_label_org_unit_labels 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 5047e77f5e..80db67122d 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -17064,13 +17064,13 @@ INSERT into config.org_unit_setting_type ( ,'cat' ,oils_i18n_gettext( 'webstaff.cat.label.left_label.left_margin' - ,'Item Print Label - Left Margin for Left Label' + ,'Item Print Label - Left Margin for Spine Label' ,'coust' ,'label' ) ,oils_i18n_gettext( 'webstaff.cat.label.left_label.left_margin' - ,'Set the default left margin for the leftmost item print Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' + ,'Set the default left margin for the item print Spine Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' ,'coust' ,'description' ) @@ -17080,13 +17080,13 @@ INSERT into config.org_unit_setting_type ( ,'cat' ,oils_i18n_gettext( 'webstaff.cat.label.right_label.left_margin' - ,'Item Print Label - Left Margin for Right Label' + ,'Item Print Label - Left Margin for Pocket Label' ,'coust' ,'label' ) ,oils_i18n_gettext( 'webstaff.cat.label.right_label.left_margin' - ,'Set the default left margin for the rightmost item print label (or in other words, the desired space between the two labels). Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' + ,'Set the default left margin for the item print Pocket Label (or in other words, the desired space between the two labels). Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' ,'coust' ,'description' ) @@ -17096,13 +17096,13 @@ INSERT into config.org_unit_setting_type ( ,'cat' ,oils_i18n_gettext( 'webstaff.cat.label.left_label.height' - ,'Item Print Label - Height for Left Label' + ,'Item Print Label - Height for Spine Label' ,'coust' ,'label' ) ,oils_i18n_gettext( 'webstaff.cat.label.left_label.height' - ,'Set the default height for the leftmost item print label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' + ,'Set the default height for the item print Spine Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' ,'coust' ,'description' ) @@ -17112,13 +17112,13 @@ INSERT into config.org_unit_setting_type ( ,'cat' ,oils_i18n_gettext( 'webstaff.cat.label.left_label.width' - ,'Item Print Label - Width for Left Label' + ,'Item Print Label - Width for Spine Label' ,'coust' ,'label' ) ,oils_i18n_gettext( 'webstaff.cat.label.left_label.width' - ,'Set the default width for the leftmost item print label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' + ,'Set the default width for the item print Spine Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' ,'coust' ,'description' ) @@ -17128,13 +17128,13 @@ INSERT into config.org_unit_setting_type ( ,'cat' ,oils_i18n_gettext( 'webstaff.cat.label.right_label.height' - ,'Item Print Label - Height for Right Label' + ,'Item Print Label - Height for Pocket Label' ,'coust' ,'label' ) ,oils_i18n_gettext( 'webstaff.cat.label.right_label.height' - ,'Set the default height for the rightmost item print label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' + ,'Set the default height for the item print Pocket Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' ,'coust' ,'description' ) @@ -17144,13 +17144,13 @@ INSERT into config.org_unit_setting_type ( ,'cat' ,oils_i18n_gettext( 'webstaff.cat.label.right_label.width' - ,'Item Print Label - Width for Right Label' + ,'Item Print Label - Width for Pocket Label' ,'coust' ,'label' ) ,oils_i18n_gettext( 'webstaff.cat.label.right_label.width' - ,'Set the default width for the rightmost item print label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' + ,'Set the default width for the item print Pocket Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' ,'coust' ,'description' ) diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.data.update_item_label_org_unit_labels b/Open-ILS/src/sql/Pg/upgrade/xxxx.data.update_item_label_org_unit_labels new file mode 100644 index 0000000000..dbb59f74b5 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/xxxx.data.update_item_label_org_unit_labels @@ -0,0 +1,96 @@ +BEGIN; + +--SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); + +UPDATE config.org_unit_setting_type +SET label = oils_i18n_gettext( + 'webstaff.cat.label.left_label.left_margin' + ,'Item Print Label - Left Margin for Spine Label' + ,'coust' + ,'label' + ), + description = oils_i18n_gettext( + 'webstaff.cat.label.left_label.left_margin' + ,'Set the default left margin for the item print Spine Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' + ,'coust' + ,'description' + ) +WHERE NAME = 'webstaff.cat.label.left_label.left_margin'; + +UPDATE config.org_unit_setting_type +SET label = oils_i18n_gettext( + 'webstaff.cat.label.right_label.left_margin' + ,'Item Print Label - Left Margin for Pocket Label' + ,'coust' + ,'label' + ), + description = oils_i18n_gettext( + 'webstaff.cat.label.right_label.left_margin' + ,'Set the default left margin for the item print Pocket Label (or in other words, the desired space between the two labels). Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' + ,'coust' + ,'description' + ) +WHERE NAME = 'webstaff.cat.label.right_label.left_margin'; + + +UPDATE config.org_unit_setting_type +SET label = oils_i18n_gettext( + 'webstaff.cat.label.left_label.height' + ,'Item Print Label - Height for Spine Label' + ,'coust' + ,'label' + ), + description = oils_i18n_gettext( + 'webstaff.cat.label.left_label.height' + ,'Set the default height for the item print Spine Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' + ,'coust' + ,'description' + ) +WHERE NAME = 'webstaff.cat.label.left_label.height'; + +UPDATE config.org_unit_setting_type +SET label = oils_i18n_gettext( + 'webstaff.cat.label.left_label.width' + ,'Item Print Label - Width for Spine Label' + ,'coust' + ,'label' + ), + description = oils_i18n_gettext( + 'webstaff.cat.label.left_label.width' + ,'Set the default width for the item print Spine Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' + ,'coust' + ,'description' + ) +WHERE NAME = 'webstaff.cat.label.left_label.width'; + +UPDATE config.org_unit_setting_type +SET label = oils_i18n_gettext( + 'webstaff.cat.label.right_label.height' + ,'Item Print Label - Height for Pocket Label' + ,'coust' + ,'label' + ), + description = oils_i18n_gettext( + 'webstaff.cat.label.right_label.height' + ,'Set the default height for the item print Pocket Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' + ,'coust' + ,'description' + ) +WHERE NAME = 'webstaff.cat.label.right_label.height'; + +UPDATE config.org_unit_setting_type +SET label = oils_i18n_gettext( + 'webstaff.cat.label.right_label.width' + ,'Item Print Label - Width for Pocket Label' + ,'coust' + ,'label' + ), + description = oils_i18n_gettext( + 'webstaff.cat.label.right_label.width' + ,'Set the default width for the item print Pocket Label. Please include a unit of measurement that is valid CSS. For example, "1in" or "2.5cm"' + ,'coust' + ,'description' + ) +WHERE NAME = 'webstaff.cat.label.right_label.width'; + +COMMIT; diff --git a/Open-ILS/src/templates/staff/cat/printlabels/t_view.tt2 b/Open-ILS/src/templates/staff/cat/printlabels/t_view.tt2 index 6d2e5ea30c..c67bf86b32 100644 --- a/Open-ILS/src/templates/staff/cat/printlabels/t_view.tt2 +++ b/Open-ILS/src/templates/staff/cat/printlabels/t_view.tt2 @@ -191,7 +191,7 @@

+label. Use pocket label left margin to identify how much space to provide between labels within one set. Must be in format "0.25in", "2.5cm", "1.5in", etc. (units of measurement must be valid CSS)') %]">

@@ -220,8 +220,8 @@ section, identify the number of labels contained in each set, which columns shou
  • diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_item_label.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_item_label.tt2 index 3fdd2fc8df..cf14d6465d 100644 --- a/Open-ILS/src/templates/staff/share/print_templates/t_item_label.tt2 +++ b/Open-ILS/src/templates/staff/share/print_templates/t_item_label.tt2 @@ -20,7 +20,7 @@ HTML itself. -->