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,
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);
function drawForm() {
liTable = new AcqLiTable();
+ liTable.skipInitialEligibilityCheck = true;
+
fieldmapper.standardRequest(
['open-ils.search', 'open-ils.search.z3950.retrieve_services'],
{ async: true,
['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
}
);
}
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',