this.checkouts = [];
this.itemsOut = [];
- this.holds = [];
- this.fines = [];
+ this.holds = [];
// During renewals, keep track of the ID of the previous circulation.
// Previous circ is used for tracking failed renewals (for receipts).
this.orgSettings[k] = settings[k].value;
}
- if(settings[SET_BARCODE_REGEX]) {
+ if(settings[SET_BARCODE_REGEX])
this.patronBarcodeRegex = new RegExp(settings[SET_BARCODE_REGEX].value);
- } else {
- this.patronBarcodeRegex = new RegExp(/^\d/);
- // this assumes barcodes start with digits
- }
// Subtract the timeout warning interval from the configured timeout
// so that when taken together they add up to the configured amount.
return;
}
- self.holds = ids;
-
fieldmapper.standardRequest( // fetch the hold objects with fleshed details
['open-ils.circ', 'open-ils.circ.hold.details.batch.retrieve'],
{ async : true,
}
}
);
-
}
}
);
* Print a receipt for this user's items out
*/
SelfCheckManager.prototype.printItemsOutReceipt = function(callback) {
+
if(!this.itemsOut.length) return;
progressDialog.show(true);
* Print a receipt for this user's holds
*/
SelfCheckManager.prototype.printHoldsReceipt = function(callback) {
+
if(!this.holds.length) return;
progressDialog.show(true);
null,
'format.selfcheck.holds',
'print-on-demand',
- this.holds
+ holdIds,
+ holdData
];
var self = this;
null,
'format.selfcheck.fines',
'print-on-demand',
- this.patron.id()
+ [this.patron.id()]
];
var self = this;