[open-ils-commits] r16447 - in trunk/Open-ILS/web/js/ui/default/acq: common picklist (senator)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue May 18 12:53:37 EDT 2010
Author: senator
Date: 2010-05-18 12:53:33 -0400 (Tue, 18 May 2010)
New Revision: 16447
Modified:
trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
trunk/Open-ILS/web/js/ui/default/acq/picklist/bib_search.js
Log:
Acq: don't check claim eligibility on pseudo-LIs generated in title search
Modified: trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2010-05-17 21:33:46 UTC (rev 16446)
+++ trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2010-05-18 16:53:33 UTC (rev 16447)
@@ -67,6 +67,7 @@
this.realCopiesTbody = dojo.byId('acq-lit-real-copies-tbody');
this.realCopiesRow = this.realCopiesTbody.removeChild(dojo.byId('acq-lit-real-copies-row'));
this._copy_fields_for_acqdf = ['owning_lib', 'location'];
+ this.skipInitialEligibilityCheck = false;
this.invoiceLinkDialogManager = new InvoiceLinkDialogManager("li");
this.claimDialog = new ClaimDialogManager(
liClaimDialog, finalClaimDialog, this.claimEligibleLidByLi,
@@ -275,7 +276,8 @@
dojo.query('[name=copieslink]', row)[0].onclick = function() {self.drawCopies(li.id())};
dojo.query('[name=noteslink]', row)[0].onclick = function() {self.drawLiNotes(li)};
- this.fetchClaimInfo(li.id(), false, null, row);
+ if (!this.skipInitialEligibilityCheck)
+ this.fetchClaimInfo(li.id(), false, null, row);
this.updateLiNotesCount(li, row);
Modified: trunk/Open-ILS/web/js/ui/default/acq/picklist/bib_search.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/picklist/bib_search.js 2010-05-17 21:33:46 UTC (rev 16446)
+++ trunk/Open-ILS/web/js/ui/default/acq/picklist/bib_search.js 2010-05-18 16:53:33 UTC (rev 16447)
@@ -25,6 +25,8 @@
function drawForm() {
liTable = new AcqLiTable();
+ liTable.skipInitialEligibilityCheck = true;
+
fieldmapper.standardRequest(
['open-ils.search', 'open-ils.search.z3950.retrieve_services'],
{ async: true,
@@ -116,7 +118,7 @@
['open-ils.acq', 'open-ils.acq.picklist.search.z3950'],
{ async: true,
params: [user.authtoken, search, null, {respond_li:1, flesh_attrs:1, clear_marc:1}],
- onresponse: handleResult,
+ onresponse: handleResult
}
);
}
@@ -132,13 +134,12 @@
liTable.show('list');
dojo.style(dojo.byId('oils-acq-pl-search-results'), 'display', 'block');
var tbody = dojo.byId('plist-tbody');
- if(result.lineitem)
+ if(result.lineitem)
liTable.addLineitem(result.lineitem);
if(result.complete) // hide the loading image
dojo.style('oils-acq-pl-loading','display', 'none');
}
-
function showDiv(div) {
var divs = [
'oils-acq-search-block',
More information about the open-ils-commits
mailing list