alternate pull list
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 26 Aug 2006 07:12:38 +0000 (07:12 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 26 Aug 2006 07:12:38 +0000 (07:12 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5704 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/main/constants.js
Open-ILS/xul/staff_client/server/admin/index.xhtml
Open-ILS/xul/staff_client/server/patron/holds.js
Open-ILS/xul/staff_client/server/patron/holds.xul

index 7cb86be..f4e1850 100644 (file)
@@ -57,6 +57,7 @@ const api = {
        'FM_AHR_RETRIEVE_VIA_AU' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.holds.retrieve' },
        'FM_AHR_RETRIEVE_VIA_BRE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.open_holds.retrieve' },
        'FM_AHR_RETRIEVE_VIA_PICKUP_AOU' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.holds.retrieve_by_pickup_lib' },
+       'FM_AHR_PULL_LIST' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold_pull_list.retrieve' },
        'FM_AHR_ONSHELF_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.captured_holds.on_shelf.retrieve' },
        'FM_AHR_COUNT_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.hold_requests.count' },
        'FM_AHR_CANCEL' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold.cancel' },
index 2a0ff96..e9e201f 100644 (file)
@@ -34,6 +34,9 @@
                                <a href='javascript:_l("printer_settings.html");'>Printer Settings Editor</a>
                        </div>
                        <div style='padding: 8px;'>
+                               <a href='javascript:_l("../patron/holds.xul");'>Alternate Pull List for Hold Requests</a>
+                       </div>
+                       <div style='padding: 8px;'>
                                <a href='javascript:_l("cash_reports.xhtml");'>Cash Reports</a>
                        </div>
                </center>
index 07013a1..3f96ae5 100644 (file)
@@ -566,25 +566,29 @@ patron.holds.prototype = {
                if (window.xulG && window.xulG.holds) {
                        obj.holds = window.xulG.holds;
                } else {
-                       var method; var id;
+                       var method; var param1; var param2 = undefined;
                        if (obj.patron_id) {
                                method = 'FM_AHR_RETRIEVE_VIA_AU'; 
-                               id = obj.patron_id; 
+                               param1 = obj.patron_id; 
                                obj.controller.view.cmd_retrieve_patron.setAttribute('hidden','true');
                        } else if (obj.docid) {
                                method = 'FM_AHR_RETRIEVE_VIA_BRE'; 
-                               id = obj.docid; 
+                               param1 = obj.docid; 
+                               obj.controller.view.cmd_retrieve_patron.setAttribute('hidden','false');
+                       } else if (obj.pull) {
+                               method = 'FM_AHR_PULL_LIST'; 
+                               param1 = 50; param2 = 0;
+                       } else if (obj.shelf) {
+                               method = 'FM_AHR_ONSHELF_RETRIEVE'; 
+                               param1 = obj.data.list.au[0].ws_ou(); 
                                obj.controller.view.cmd_retrieve_patron.setAttribute('hidden','false');
                        } else {
-                               if (obj.shelf) {
-                                       method = 'FM_AHR_ONSHELF_RETRIEVE'; 
-                               } else {
-                                       method = 'FM_AHR_RETRIEVE_VIA_PICKUP_AOU'; 
-                               }
-                               id = obj.data.list.au[0].ws_ou(); 
+                               //method = 'FM_AHR_RETRIEVE_VIA_PICKUP_AOU'; 
+                               method = 'FM_AHR_PULL_LIST'; 
+                               param1 = 50; param2 = 0;
                                obj.controller.view.cmd_retrieve_patron.setAttribute('hidden','false');
                        }
-                       obj.holds = obj.network.simple_request( method, [ ses(), id ]);
+                       obj.holds = obj.network.simple_request( method, [ ses(), param1, param2 ]);
                }
 
                function gen_list_append(hold) {
index be4d13f..c4c2b98 100644 (file)
@@ -49,6 +49,7 @@
                                                'patron_id' : g.cgi.param('patron_id'), 
                                                'docid' : g.cgi.param('docid'),
                                                'shelf' : g.cgi.param('shelf'),
+                                               'pull' : g.cgi.param('pull'),
                                        } 
                                );
                                window.refresh = function(p) { g.holds.retrieve(p); }