From 622924b6e4a07a95eebbaaf58812cee56eac90a0 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 22 May 2013 15:52:59 -0400 Subject: [PATCH] LP1182519 Per-Hold Behind Desk staff client grid column Signed-off-by: Bill Erickson --- Open-ILS/xul/staff_client/server/circ/util.js | 17 +++++++++++++++++ .../staff_client/server/locale/en-US/circ.properties | 1 + 2 files changed, 18 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index af7442f41d..1fae2aeba8 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -2714,7 +2714,24 @@ circ.util.hold_columns = function(modify,params) { return document.getElementById('circStrings').getString('staff.circ.utils.no'); } } + }, + { + 'persist' : 'hidden width ordinal', + 'id' : 'behind_shelf', + 'label' : document.getElementById('circStrings').getString('staff.circ.utils.hold.staff_hold'), + 'flex' : 1, + 'primary' : false, + 'hidden' : true, + 'editable' : false, + 'render' : function(my) { + if (isTrue(my.ahr.behind_desk())) { + return document.getElementById('circStrings').getString('staff.circ.utils.yes'); + } else { + return document.getElementById('circStrings').getString('staff.circ.utils.no'); + } + } } + ]; for (var i = 0; i < c.length; i++) { if (modify[ c[i].id ]) { diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties b/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties index 2f058ae6ae..3e2932fd8e 100644 --- a/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties +++ b/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties @@ -316,6 +316,7 @@ staff.circ.utils.available_time=Available On staff.circ.utils.capture_time=Capture Date # Date the hold was cancelled staff.circ.utils.hold_cancel_time=Cancel Time +staff.circ.utils.hold.staff_hold=Behind Desk # Controlled entry for why the hold was cancelled staff.circ.utils.hold_cancel_cause=Cancel Cause # Freetext note pertaining to the cancelled hold -- 2.11.0