From c326cb614c2dd3f009da87964c7cf44d1c047816 Mon Sep 17 00:00:00 2001 From: pines Date: Wed, 13 Dec 2006 17:11:44 +0000 Subject: [PATCH] Add to Item Bucket action for patron Items Out git-svn-id: svn://svn.open-ils.org/ILS/trunk@6691 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/items.js | 18 ++++++++++++++++++ Open-ILS/xul/staff_client/server/patron/items.xul | 2 ++ .../xul/staff_client/server/patron/items_overlay.xul | 4 ++++ 3 files changed, 24 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/patron/items.js b/Open-ILS/xul/staff_client/server/patron/items.js index 22cc58734d..701d2e5cd8 100644 --- a/Open-ILS/xul/staff_client/server/patron/items.js +++ b/Open-ILS/xul/staff_client/server/patron/items.js @@ -28,6 +28,20 @@ patron.items.prototype = { 'sel_clip' : [ ['command'], function() { obj.list.clipboard(); } ], 'sel_clip2' : [ ['command'], function() { obj.list2.clipboard(); } ], 'sel_patron' : [ ['command'], function() { JSAN.use('circ.util'); circ.util.show_last_few_circs(obj.retrieve_ids); } ], + 'sel_bucket' : [ + ['command'], + function() { + JSAN.use('cat.util'); + cat.util.add_copies_to_bucket(util.functional.map_list( obj.retrieve_ids, function(o) { return o.copy_id; } ) ); + } + ], + 'sel_bucket2' : [ + ['command'], + function() { + JSAN.use('cat.util'); + cat.util.add_copies_to_bucket(util.functional.map_list( obj.retrieve_ids2, function(o) { return o.copy_id; } ) ); + } + ], 'sel_mark_items_damaged' : [ ['command'], function() { @@ -101,6 +115,8 @@ patron.items.prototype = { obj.controller.view.sel_mark_items_missing2.setAttribute('disabled','true'); obj.controller.view.sel_clip.setAttribute('disabled','true'); obj.controller.view.sel_clip2.setAttribute('disabled','true'); + obj.controller.view.sel_bucket.setAttribute('disabled','true'); + obj.controller.view.sel_bucket2.setAttribute('disabled','true'); obj.controller.view.sel_copy_details.setAttribute('disabled','true'); obj.controller.view.sel_patron.setAttribute('disabled','true'); obj.controller.view.sel_copy_details2.setAttribute('disabled','true'); @@ -675,6 +691,7 @@ patron.items.prototype = { obj.controller.view.cmd_items_mark_lost.setAttribute('disabled','false'); obj.controller.view.cmd_show_catalog.setAttribute('disabled','false'); obj.controller.view.sel_copy_details.setAttribute('disabled','false'); + obj.controller.view.sel_bucket.setAttribute('disabled','false'); obj.controller.view.sel_patron.setAttribute('disabled','false'); obj.controller.view.sel_mark_items_damaged.setAttribute('disabled','false'); obj.controller.view.sel_mark_items_missing.setAttribute('disabled','false'); @@ -695,6 +712,7 @@ patron.items.prototype = { obj.controller.view.cmd_items_mark_lost2.setAttribute('disabled','false'); obj.controller.view.cmd_show_catalog2.setAttribute('disabled','false'); obj.controller.view.sel_copy_details2.setAttribute('disabled','false'); + obj.controller.view.sel_bucket2.setAttribute('disabled','false'); obj.controller.view.sel_patron2.setAttribute('disabled','false'); obj.controller.view.sel_mark_items_damaged2.setAttribute('disabled','false'); obj.controller.view.sel_mark_items_missing2.setAttribute('disabled','false'); diff --git a/Open-ILS/xul/staff_client/server/patron/items.xul b/Open-ILS/xul/staff_client/server/patron/items.xul index 8366dc1d27..c6e90033a6 100644 --- a/Open-ILS/xul/staff_client/server/patron/items.xul +++ b/Open-ILS/xul/staff_client/server/patron/items.xul @@ -69,6 +69,7 @@ + @@ -88,6 +89,7 @@ + diff --git a/Open-ILS/xul/staff_client/server/patron/items_overlay.xul b/Open-ILS/xul/staff_client/server/patron/items_overlay.xul index 338f3171df..a1785037f1 100644 --- a/Open-ILS/xul/staff_client/server/patron/items_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/items_overlay.xul @@ -12,6 +12,7 @@ + @@ -28,6 +29,7 @@ + @@ -79,6 +81,7 @@ + @@ -103,6 +106,7 @@ + -- 2.11.0