From: phasefx Date: Thu, 16 Oct 2008 19:03:06 +0000 (+0000) Subject: we're going to let the middle layer completely handle the limit for past circ retrieval X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9eb1a293a39825aaff71e92daf3e82318bb7df09;p=Evergreen.git we're going to let the middle layer completely handle the limit for past circ retrieval git-svn-id: svn://svn.open-ils.org/ILS/trunk@10850 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/circ/circ_summary.xul b/Open-ILS/xul/staff_client/server/circ/circ_summary.xul index 193aae759a..0838dbf4c7 100644 --- a/Open-ILS/xul/staff_client/server/circ/circ_summary.xul +++ b/Open-ILS/xul/staff_client/server/circ/circ_summary.xul @@ -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 */ diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index 0ed540888a..987dd2fd68 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -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;