From 3d78e822af3a6337430825dcf328889ea254c6b6 Mon Sep 17 00:00:00 2001 From: Michele Morgan Date: Tue, 16 Aug 2016 14:47:43 -0400 Subject: [PATCH] LP#1583729 Item status screen column options do not include age protection Adds the age_protect field to several missing copy interfaces: XUL client: - Item status list view column picker - Item status alternate view - Holdings Maintenance column picker Web client: - Item status alternate view - Holdings view column picker Also addresses an issue with displaying the circ modifier in some item interfaces. Signed-off-by: Michele Morgan Signed-off-by: Mike Rylander --- .../templates/staff/cat/catalog/t_holdings.tt2 | 1 + .../templates/staff/cat/item/t_summary_pane.tt2 | 2 ++ Open-ILS/web/js/ui/default/staff/cat/item/app.js | 2 +- .../js/ui/default/staff/cat/services/holdings.js | 2 +- Open-ILS/web/opac/locale/en-US/lang.dtd | 1 + .../xul/staff_client/server/cat/copy_browser.js | 1 + .../server/circ/alternate_copy_summary.js | 7 ++++++- .../server/circ/alternate_copy_summary.xul | 3 ++- Open-ILS/xul/staff_client/server/circ/util.js | 15 +++++++++++++++ .../server/locale/en-US/circ.properties | 1 + .../server/locale/en-US/common.properties | 1 + 11 files changed, 32 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 b/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 index 8bbfb4572a..bd618ace26 100644 --- a/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 +++ b/Open-ILS/src/templates/staff/cat/catalog/t_holdings.tt2 @@ -109,6 +109,7 @@ + diff --git a/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 b/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 index c21c9cdf4b..1ab16a571b 100644 --- a/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 +++ b/Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2 @@ -161,6 +161,8 @@
[% l('Circ Modifier') %]
{{copy.circ_modifier().name()}}
+
[% l('Age-based Hold Protection') %]
+
{{copy.age_protect().name()}}
diff --git a/Open-ILS/web/js/ui/default/staff/cat/item/app.js b/Open-ILS/web/js/ui/default/staff/cat/item/app.js index a8781dc9be..922a531f8e 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/item/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/item/app.js @@ -59,7 +59,7 @@ function(egCore) { service.flesh = { flesh : 3, flesh_fields : { - acp : ['call_number','location','status','location','floating'], + acp : ['call_number','location','status','location','floating','circ_modifier','age_protect'], acn : ['record','prefix','suffix'], bre : ['simple_record','creator','editor'] }, diff --git a/Open-ILS/web/js/ui/default/staff/cat/services/holdings.js b/Open-ILS/web/js/ui/default/staff/cat/services/holdings.js index 2742915010..71255a4551 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/services/holdings.js +++ b/Open-ILS/web/js/ui/default/staff/cat/services/holdings.js @@ -15,7 +15,7 @@ function(egCore , $q) { service.prototype.flesh = { flesh : 2, flesh_fields : { - acp : ['status','location','circ_lib','parts'], + acp : ['status','location','circ_lib','parts','age_protect'], acn : ['prefix','suffix','copies'] } } diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index bbdf8ac7d2..3dd1b4ab66 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -3753,6 +3753,7 @@ + diff --git a/Open-ILS/xul/staff_client/server/cat/copy_browser.js b/Open-ILS/xul/staff_client/server/cat/copy_browser.js index 532ec1b4f6..327b45b70b 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_browser.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_browser.js @@ -1758,6 +1758,7 @@ cat.copy_browser.prototype = { 'fine_level', 'circulate', 'holdable', + 'age_protect', 'opac_visible', 'ref', 'deposit', diff --git a/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js b/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js index 74b7ae3d14..43c52ff8a5 100644 --- a/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js +++ b/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.js @@ -191,7 +191,12 @@ function load_item() { if (details.copy) { set("stat_cat_entries", details.copy.stat_cat_entries()); - set("age_protect", details.copy.age_protect()); + var ap = details.copy.age_protect(); + if (typeof data.hash.crahp[ap] != 'undefined') { + set("age_protect", data.lookup('crahp',details.copy.age_protect()).name()); + } else { + set("age_protect",""); + } set("alert_message", details.copy.alert_message()); set("barcode", details.copy.barcode()); if (typeof details.copy.call_number() == 'object') { diff --git a/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.xul b/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.xul index 3c4ba95b83..a06ea95cde 100644 --- a/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.xul +++ b/Open-ILS/xul/staff_client/server/circ/alternate_copy_summary.xul @@ -158,7 +158,8 @@