[open-ils-commits] r9929 -
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/picklist
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Jun 25 13:06:08 EDT 2008
Author: erickson
Date: 2008-06-25 13:06:05 -0400 (Wed, 25 Jun 2008)
New Revision: 9929
Modified:
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/picklist/bib_search.js
Log:
using search limit to determine lineitem fetch limit
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/picklist/bib_search.js
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/picklist/bib_search.js 2008-06-25 16:59:12 UTC (rev 9928)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/picklist/bib_search.js 2008-06-25 17:06:05 UTC (rev 9929)
@@ -12,6 +12,7 @@
var recvCount = 0;
var sourceCount = 0; // how many sources are we searching
var user = new openils.User();
+var searchLimit = 10;
function drawForm() {
@@ -47,7 +48,6 @@
var field = searchFields[f];
if(dijit.byId('text_input_'+field.name)) continue;
var row = tmpl.cloneNode(true);
- //tbody.appendChild(row);
tbody.insertBefore(row, dojo.byId('oils-acq-seach-fields-count-row'));
var labelCell = dojo.query('[name=label]', row)[0];
var inputCell = dojo.query('[name=input]', row)[0];
@@ -69,6 +69,7 @@
limit : values.limit,
offset : searchOffset
};
+ searchLimit = values.limit;
delete values.limit;
var selected = bibSourceSelect.getValue();
@@ -112,8 +113,8 @@
function(model) {
dojo.style('oils-acq-pl-search-results', 'visibility', 'visible');
JUBGrid.populate(plResultGrid, model, plist._items);
- dojo.style('oils-acq-lineitem-details-grid', 'visibility', 'hidden');
- }
+ },
+ {flesh_attrs:1, clear_marc:1, limit: searchLimit}
);
resultPicklist = plist._plist;
}
More information about the open-ils-commits
mailing list