<!ENTITY staff.printing.context.radio.receipt.label "Receipt">
<!ENTITY staff.printing.context.radio.label.label "Label">
<!ENTITY staff.printing.context.radio.mail.label "Mail">
+<!ENTITY staff.printing.context.radio.offline.label "Offline">
<!ENTITY staff.printing.normal_settings.header "Normal Settings">
<!ENTITY staff.printing.advanced_settings.header "Advanced Settings">
<!ENTITY staff.printing.advanced.mozilla_print "Use default print strategy (Mozilla Print)">
var obj = this;
try {
obj.print_strategy = {};
- var print_contexts = [ 'default', 'receipt', 'label', 'mail' ];
+ var print_contexts = [ 'default', 'receipt', 'label', 'mail', 'offline' ];
for (var i in print_contexts) {
JSAN.use('util.file'); var file = new util.file('print_strategy.' + print_contexts[i]);
if (file._file.exists()) {
'cmd_print_last_receipt' : [
['command'],
function() {
- JSAN.use('util.print'); var print = new util.print();
+ JSAN.use('util.print'); var print = new util.print('offline');
print.reprint_last();
}
],
data.print_list_defaults();
data.load_saved_print_templates();
data.fetch_print_strategy();
- JSAN.use('util.print'); (new util.print()).GetPrintSettings();
+ JSAN.use('util.print'); (new util.print('offline')).GetPrintSettings();
},
'patron_init' : function() {
try {
var params = {
'template' : 'offline_checkin',
+ 'printer_context' : 'offline',
'callback' : function() {
g.list.clear();
var x = $('i_barcode'); x.value = ''; x.focus();
var params = {
'patron_barcode' : $('p_barcode').value,
'template' : 'offline_checkout',
+ 'printer_context' : 'offline',
'callback' : function() {
g.list.clear();
var x = $('i_barcode'); x.value = '';
try {
var params = {
'template' : 'offline_inhouse_use',
+ 'printer_context' : 'offline',
'callback' : function() {
g.list.clear();
var x = $('i_barcode'); x.value = ''; x.focus();
var params = {
'patron_barcode' : $('p_barcode').value,
'template' : 'offline_renew',
+ 'printer_context' : 'offline',
'callback' : function() {
g.list.clear();
var x = $('i_barcode'); x.value = '';
<input type="radio" name="context" value="receipt" onclick="g.set_printer_context('receipt');">&staff.printing.context.radio.receipt.label;</input>
<input type="radio" name="context" value="label" onclick="g.set_printer_context('label');">&staff.printing.context.radio.label.label;</input>
<input type="radio" name="context" value="mail" onclick="g.set_printer_context('mail');">&staff.printing.context.radio.mail.label;</input>
+ <input type="radio" name="context" value="offline" onclick="g.set_printer_context('offline');">&staff.printing.context.radio.offline.label;</input>
</form>
<h1>&staff.printing.normal_settings.header;</h1>
<iframe id="sample" src="printer_settings.txt"></iframe><br />