we're going to let the middle layer completely handle the limit for past circ retrieval
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Oct 2008 19:03:06 +0000 (19:03 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Oct 2008 19:03:06 +0000 (19:03 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10850 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/circ_summary.xul
Open-ILS/xul/staff_client/server/circ/util.js

index 193aae7..0838dbf 100644 (file)
@@ -51,7 +51,6 @@
                                g.error.sdump('D_TRACE','my_init() for circ_circ_brief.xul');
 
                                g.copy_id = xul_param('copy_id',{'modal_xulG':true});
-                               g.count = xul_param('count',{'modal_xulG':true});
 
                                JSAN.use('util.network'); g.network = new util.network();
                                JSAN.use('util.date');
@@ -78,7 +77,7 @@
                        try {
                                $('r_last').disabled = true; $('r_all').disabled = true;        
                                g.circs = g.network.simple_request('FM_CIRC_RETRIEVE_VIA_COPY',
-                                       [ ses(), g.copy_id, g.count ]);
+                                       [ ses(), g.copy_id ]);
                                if (g.circs == null || typeof g.circs.ilsevent != 'undefined') throw(circs);
                                if (g.circs.length == 0) return;
                                //g.circs = g.circs.reverse(); /* put the most recent at the top */
index 0ed5408..987dd2f 100644 (file)
@@ -86,20 +86,18 @@ circ.util.show_copy_details = function(copy_id) {
 };
 
 
-circ.util.show_last_few_circs = function(selection_list,count) {
+circ.util.show_last_few_circs = function(selection_list) {
        var obj = {};
        JSAN.use('util.error'); obj.error = new util.error();
        JSAN.use('util.window'); obj.win = new util.window();
        JSAN.use('util.network'); obj.network = new util.network();
        JSAN.use('OpenILS.data'); obj.data = new OpenILS.data(); obj.data.init({'via':'stash'});
 
-       if (!count) count = 4;
-
        for (var i = 0; i < selection_list.length; i++) {
                try {
                        if (typeof selection_list[i].copy_id == 'undefined' || selection_list[i].copy_id == null) continue;
                        var url = xulG.url_prefix( urls.XUL_CIRC_SUMMARY ); // + '?copy_id=' + selection_list[i].copy_id + '&count=' + count;
-                       var my_xulG = obj.win.open( url, 'show_last_few_circs', 'chrome,resizable,modal', { 'copy_id' : selection_list[i].copy_id, 'count' : count } );
+                       var my_xulG = obj.win.open( url, 'show_last_few_circs', 'chrome,resizable,modal', { 'copy_id' : selection_list[i].copy_id } );
 
                        if (typeof my_xulG.retrieve_these_patrons == 'undefined') continue;
                        var patrons = my_xulG.retrieve_these_patrons;