+var recsReceivedCalled = false;
function mresultCollectRecords() {
if(getHitCount() > 0 ) runEvt("result", "preCollectRecords");
var i = 0;
req.request.abortCallback(
function(){
recordsHandled++;
- if(resultPageIsDone()) {
+ if(resultPageIsDone() && !recsReceivedCalled) {
+ recsReceivedCalled = true;
runEvt('result', 'allRecordsReceived', recordsCache);
unHideMe($('copyright_block'));
}
}
+var recsReceivedCalled = false;
function rresultHandleMods(r) {
var rec = r.getResultObject();
runEvt('result', 'recordReceived', rec, r.userdata, false);
resultCollectCopyCounts(rec, r.userdata, FETCH_R_COPY_COUNTS);
- if(resultPageIsDone()) {
+ if(resultPageIsDone() && !recsReceivedCalled) {
+ recsReceivedCalled = true;
runEvt('result', 'allRecordsReceived', recordsCache);
unHideMe($('copyright_block'));
}