From: pines Date: Sat, 30 Sep 2006 11:10:36 +0000 (+0000) Subject: added Mark Item Damaged to checkin X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=73b5a9629e12d7f38eb6e7681059aa9abda6538f;p=evergreen%2Fpines.git added Mark Item Damaged to checkin git-svn-id: svn://svn.open-ils.org/ILS/trunk@6295 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/circ/checkin.js b/Open-ILS/xul/staff_client/server/circ/checkin.js index 93d9ad7695..9e52a5e343 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkin.js +++ b/Open-ILS/xul/staff_client/server/circ/checkin.js @@ -58,6 +58,7 @@ circ.checkin.prototype = { obj.controller.view.sel_spine.setAttribute('disabled','true'); obj.controller.view.sel_transit_abort.setAttribute('disabled','true'); obj.controller.view.sel_clip.setAttribute('disabled','true'); + obj.controller.view.sel_mark_items_damaged.setAttribute('disabled','true'); } else { obj.controller.view.sel_edit.setAttribute('disabled','false'); obj.controller.view.sel_opac.setAttribute('disabled','false'); @@ -67,6 +68,7 @@ circ.checkin.prototype = { obj.controller.view.sel_spine.setAttribute('disabled','false'); obj.controller.view.sel_transit_abort.setAttribute('disabled','false'); obj.controller.view.sel_clip.setAttribute('disabled','false'); + obj.controller.view.sel_mark_items_damaged.setAttribute('disabled','false'); } } catch(E) { alert('FIXME: ' + E); @@ -132,7 +134,14 @@ circ.checkin.prototype = { } } ], - + 'sel_mark_items_damaged' : [ + ['command'], + function() { + var funcs = []; + JSAN.use('cat.util'); JSAN.use('util.functional'); + cat.util.mark_item_damaged( util.functional.map_list( obj.selection_list, function(o) { return o.copy_id; } ) ); + } + ], 'sel_bucket' : [ ['command'], function() { diff --git a/Open-ILS/xul/staff_client/server/circ/checkin.xul b/Open-ILS/xul/staff_client/server/circ/checkin.xul index 7a4d896b8e..ee0e102b65 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkin.xul +++ b/Open-ILS/xul/staff_client/server/circ/checkin.xul @@ -93,6 +93,7 @@ + diff --git a/Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul b/Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul index 5625bdb7ef..a8dbe31b72 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul +++ b/Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul @@ -18,10 +18,12 @@ - - + + + + @@ -79,10 +81,12 @@ - - + + + +