[open-ils-commits] r17869 - in trunk/Open-ILS: web/opac/locale/en-US xul/staff_client/chrome/content/OpenILS xul/staff_client/chrome/content/circ xul/staff_client/server/admin (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Sep 21 13:02:55 EDT 2010
Author: phasefx
Date: 2010-09-21 13:02:52 -0400 (Tue, 21 Sep 2010)
New Revision: 17869
Modified:
trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js
trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline.js
trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js
trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js
trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js
trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js
trunk/Open-ILS/xul/staff_client/server/admin/printer_settings.html
Log:
offline printer role
Modified: trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
===================================================================
--- trunk/Open-ILS/web/opac/locale/en-US/lang.dtd 2010-09-21 16:21:00 UTC (rev 17868)
+++ trunk/Open-ILS/web/opac/locale/en-US/lang.dtd 2010-09-21 17:02:52 UTC (rev 17869)
@@ -3400,6 +3400,7 @@
<!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)">
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js 2010-09-21 16:21:00 UTC (rev 17868)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js 2010-09-21 17:02:52 UTC (rev 17869)
@@ -272,7 +272,7 @@
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()) {
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline.js 2010-09-21 16:21:00 UTC (rev 17868)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline.js 2010-09-21 17:02:52 UTC (rev 17869)
@@ -52,7 +52,7 @@
'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();
}
],
@@ -78,7 +78,7 @@
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() {
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js 2010-09-21 16:21:00 UTC (rev 17868)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkin.js 2010-09-21 17:02:52 UTC (rev 17869)
@@ -113,6 +113,7 @@
try {
var params = {
'template' : 'offline_checkin',
+ 'printer_context' : 'offline',
'callback' : function() {
g.list.clear();
var x = $('i_barcode'); x.value = ''; x.focus();
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js 2010-09-21 16:21:00 UTC (rev 17868)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_checkout.js 2010-09-21 17:02:52 UTC (rev 17869)
@@ -271,6 +271,7 @@
var params = {
'patron_barcode' : $('p_barcode').value,
'template' : 'offline_checkout',
+ 'printer_context' : 'offline',
'callback' : function() {
g.list.clear();
var x = $('i_barcode'); x.value = '';
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js 2010-09-21 16:21:00 UTC (rev 17868)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_in_house_use.js 2010-09-21 17:02:52 UTC (rev 17869)
@@ -116,6 +116,7 @@
try {
var params = {
'template' : 'offline_inhouse_use',
+ 'printer_context' : 'offline',
'callback' : function() {
g.list.clear();
var x = $('i_barcode'); x.value = ''; x.focus();
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js 2010-09-21 16:21:00 UTC (rev 17868)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/circ/offline_renew.js 2010-09-21 17:02:52 UTC (rev 17869)
@@ -226,6 +226,7 @@
var params = {
'patron_barcode' : $('p_barcode').value,
'template' : 'offline_renew',
+ 'printer_context' : 'offline',
'callback' : function() {
g.list.clear();
var x = $('i_barcode'); x.value = '';
Modified: trunk/Open-ILS/xul/staff_client/server/admin/printer_settings.html
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/admin/printer_settings.html 2010-09-21 16:21:00 UTC (rev 17868)
+++ trunk/Open-ILS/xul/staff_client/server/admin/printer_settings.html 2010-09-21 17:02:52 UTC (rev 17869)
@@ -34,6 +34,7 @@
<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 />
More information about the open-ils-commits
mailing list