From: phasefx Date: Sat, 15 Sep 2007 01:46:58 +0000 (+0000) Subject: freeze/thaw support for holds, and a typo fix and some wording changes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5eae171475f96b902b4d3e7921301ced14f20b5c;p=Evergreen.git freeze/thaw support for holds, and a typo fix and some wording changes git-svn-id: svn://svn.open-ils.org/ILS/trunk@7790 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index 23927e3b8e..198b5eb016 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -767,6 +767,14 @@ circ.util.hold_columns = function(modify,params) { 'persist' : 'hidden width ordinal', 'id' : 'hold_type', 'label' : getString('staff.ahr_hold_type_label'), 'flex' : 0, 'primary' : false, 'hidden' : true, 'render' : function(my) { return my.ahr.hold_type(); }, }, + { + 'persist' : 'hidden width ordinal', 'id' : 'frozen', 'label' : 'Frozen?', 'flex' : 0, + 'primary' : false, 'hidden' : true, 'render' : function(my) { return get_bool( my.ahr.frozen() ) ? 'Yes' : 'No'; }, + }, + { + 'persist' : 'hidden width ordinal', 'id' : 'thaw_date', 'label' : 'Thaw Date', 'flex' : 0, + 'primary' : false, 'hidden' : true, 'render' : function(my) { return my.ahr.thaw_date() == null ? 'No Date' : my.ahr.thaw_date().substr(0,10); }, + }, { 'persist' : 'hidden width ordinal', 'id' : 'pickup_lib', 'label' : 'Pickup Lib (Full Name)', 'flex' : 1, 'primary' : false, 'hidden' : true, diff --git a/Open-ILS/xul/staff_client/server/patron/holds.js b/Open-ILS/xul/staff_client/server/patron/holds.js index 8a1294b990..f1f5cfc7b6 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds.js +++ b/Open-ILS/xul/staff_client/server/patron/holds.js @@ -235,6 +235,8 @@ patron.holds.prototype = { obj.controller.view.cmd_holds_edit_phone_notify.setAttribute('disabled','false'); obj.controller.view.cmd_holds_edit_email_notify.setAttribute('disabled','false'); obj.controller.view.cmd_holds_edit_selection_depth.setAttribute('disabled','false'); + obj.controller.view.cmd_holds_edit_thaw_date.setAttribute('disabled','false'); + obj.controller.view.cmd_holds_edit_freeze.setAttribute('disabled','false'); obj.controller.view.cmd_show_notifications.setAttribute('disabled','false'); obj.controller.view.cmd_holds_retarget.setAttribute('disabled','false'); obj.controller.view.cmd_holds_cancel.setAttribute('disabled','false'); @@ -249,6 +251,8 @@ patron.holds.prototype = { obj.controller.view.cmd_holds_edit_phone_notify.setAttribute('disabled','true'); obj.controller.view.cmd_holds_edit_email_notify.setAttribute('disabled','true'); obj.controller.view.cmd_holds_edit_selection_depth.setAttribute('disabled','true'); + obj.controller.view.cmd_holds_edit_thaw_date.setAttribute('disabled','true'); + obj.controller.view.cmd_holds_edit_freeze.setAttribute('disabled','true'); obj.controller.view.cmd_show_notifications.setAttribute('disabled','true'); obj.controller.view.cmd_holds_retarget.setAttribute('disabled','true'); obj.controller.view.cmd_holds_cancel.setAttribute('disabled','true'); @@ -431,7 +435,7 @@ patron.holds.prototype = { var robj = obj.network.simple_request('FM_AHR_UPDATE',[ ses(), hold ]); if (typeof robj.ilsevent != 'undefined') throw(robj); } - obj.retrieve(); + obj.retrieve(true); } } catch(E) { obj.error.standard_unexpected_error_alert('Holds not likely modified.',E); @@ -489,7 +493,7 @@ patron.holds.prototype = { var robj = obj.network.simple_request('FM_AHR_UPDATE',[ ses(), hold ]); if (typeof robj.ilsevent != 'undefined') throw(robj); } - obj.retrieve(); + obj.retrieve(true); } } catch(E) { obj.error.standard_unexpected_error_alert('Holds not likely modified.',E); @@ -531,7 +535,7 @@ patron.holds.prototype = { var robj = obj.network.simple_request('FM_AHR_UPDATE',[ ses(), hold ]); if (typeof robj.ilsevent != 'undefined') throw(robj); } - obj.retrieve(); + obj.retrieve(true); } } catch(E) { obj.error.standard_unexpected_error_alert('Holds not likely modified.',E); @@ -543,7 +547,7 @@ patron.holds.prototype = { function() { try { var xml = ''; - xml += 'Send email notifications (when appropriate)? The email address used is found in the hold recepient account.'; + xml += 'Send email notifications (when appropriate)? The email address used is found in the hold recipient account.'; xml += '