}
this._updateProgressDialog = function(resp) {
+ progressDialog.update({ "progress": (resp.progress / resp.total) * 100 });
var keys = ['li', 'vqbr', 'bibs', 'lid', 'debits_accrued', 'copies'];
for (var i = 0; i < keys.length; i++) {
if (resp[keys[i]] > (this.batchProgress[keys[i]] || 0)) {
[ resp[keys[i]] ]
)
);
- // for asset creation, three main phases:
- // Vandelay, bibs, then copies
- if (keys[i] == 'bibs') {
- progressDialog.update({ "progress": 33});
- } else if (keys[i] == "copies") {
- progressDialog.update({ "progress": 67});
- }
- break;
}
}
this.batchProgress = resp;