transit printing
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 3 Sep 2006 03:38:37 +0000 (03:38 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 3 Sep 2006 03:38:37 +0000 (03:38 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5880 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js
Open-ILS/xul/staff_client/chrome/content/util/print.js
Open-ILS/xul/staff_client/server/admin/transit_list.js
Open-ILS/xul/staff_client/server/admin/transit_list.xul
Open-ILS/xul/staff_client/server/circ/print_list_template_editor.js

index 10a54e1..ac95cf8 100644 (file)
@@ -141,6 +141,12 @@ OpenILS.data.prototype = {
                                        'line_item' : '<li>%title%<br/>\r\nBarcode: %barcode%\r\n',
                                        'footer' : '</ol><hr />%PINES_CODE% %TODAY_TRIM%<br/>\r\n<br/>\r\n',
                                }, 
+                               'transit_list' : {
+                                       'type' : 'transits',
+                                       'header' : 'Transits:<hr/><ol>',
+                                       'line_item' : '<li>From: %transit_source% To: %transit_dest_lib%<br/>\r\nWhen: %transit_source_send_time%<br />\r\nBarcode: %transit_item_barcode% Title: %transit_item_title%<br/>\r\n',
+                                       'footer' : '</ol><hr />%PINES_CODE% %TODAY_TRIM%<br/>\r\n<br/>\r\n',
+                               }, 
                                'items_out' : {
                                        'type' : 'items',
                                        'header' : 'Welcome to %LIBRARY%!<br/>\r\nYou have the following items:<hr/><ol>',
index 63033b8..769660c 100644 (file)
@@ -149,6 +149,9 @@ util.print.prototype = {
                                //cols = [ '%bill_id%','%payment%'];
                                cols = [];
                        break;
+                       case 'transits':
+                               cols = [];
+                       break;
                        case 'holds':
                                JSAN.use('circ.util');
                                cols = util.functional.map_list(
index 43b5db1..bcc14f5 100644 (file)
@@ -361,8 +361,8 @@ admin.transit_list.prototype = {
                                        'sel_copy_details2' : [ ['command'], function() { JSAN.use('circ.util'); for (var i = 0; i < obj.selection_list2.length; i++) { circ.util.show_copy_details( obj.selection_list2[i].copy_id ); } } ],
                                        'sel_bucket' : [ ['command'], function() { JSAN.use('cat.util'); cat.util.add_copies_to_bucket(obj.selection_list); } ],
                                        'sel_bucket2' : [ ['command'], function() { JSAN.use('cat.util'); cat.util.add_copies_to_bucket(obj.selection_list2); } ],
-                                       'cmd_transit_list_print' : [ ['command'], function() { obj.print_list(0); } ],
-                                       'cmd_transit_list_print2' : [ ['command'], function() { obj.print_list(1); } ],
+                                       'cmd_print_list' : [ ['command'], function() { obj.print_list(0); } ],
+                                       'cmd_print_list2' : [ ['command'], function() { obj.print_list(1); } ],
                                }
                        }
                );
index 89daae5..5d6049d 100644 (file)
@@ -57,6 +57,7 @@
                <groupbox flex="1">
                        <caption label="Outgoing Transits" class="shrinkable_groupbox"/>
                        <hbox>
+                               <button label="Print Transits" command="cmd_print_list" />
                                <spacer flex="1"/>
                                <menubar>
                                        <menu label="Actions for Selected Items" accesskey="S">
@@ -81,6 +82,7 @@
                <groupbox flex="1">
                        <caption label="Incoming Transits" class="shrinkable_groupbox"/>
                        <hbox>
+                               <button label="Print Transits" command="cmd_print_list2" />
                                <spacer flex="1"/>
                                <menubar>
                                        <menu label="Actions for Selected Items" accesskey="S">
        </popupset>
 
        <commandset id="transit_list_cmds">
-               <command id="cmd_copy_status_print" /> <command id="cmd_copy_status_print2" />
+               <command id="cmd_print_list" /> <command id="cmd_print_list2" />
                <command id="save_columns" /> <command id="save_columns2" />
                <command id="sel_copy_details" disabled="true"/> <command id="sel_copy_details2" disabled="true"/>
                <command id="sel_patron" disabled="true"/> <command id="sel_patron2" disabled="true"/>
index fed07b8..14b0aac 100644 (file)
@@ -48,6 +48,10 @@ circ.print_list_template_editor.prototype = {
                                'bills' : [["248","Id = 3","grocery","-2.00","0.00","2.00","","Fee for copies","2006-05-27 22:56","","cash_payment","2006-06-10 17:01","2006-05-27",""],["239","Id = 3","circulation","17.00","17.00","0.00","SYSTEM GENERATED","Lost Materials Processing Fee","2006-05-27 22:07","",""," ","2006-05-26",""],["173","Id = 3","grocery","1.00","17.25","16.25","","Lost materials","2006-05-20 16:36","","cash_payment","2006-05-27 01:31","2006-05-20",""]],
                                'payment' : [ { 'bill_id' : 333, 'payment' : '2.23', 'title' : 'Harry Potter', 'last_billing_type' : 'Overdue materials', 'last_billing_note' : 'System Generated Overdue Fine', 'barcode' : 'barcode123' }, { 'bill_id' : 367, 'payment' : '5.17', 'last_billing_type' : 'Damaged material', 'last_billing_note' : 'Tracked up the carpet', 'title' : '', 'barcode' : '' } ],
                                'patrons' : [],
+                               'transits' : [ 
+                                       { 'transit_source' : 'ARL-ATH', 'transit_source_send_time' : '2006-05-01 12:15', 'transit_dest_lib' : 'DCPL-CEN', 'transit_item_title' : 'Scooby Doo', 'transit_item_barcode' : 'barcode123' },
+                                       { 'transit_source' : 'ARL-ATH', 'transit_source_send_time' : '2006-05-02 12:19', 'transit_dest_lib' : 'DCPL-CEN', 'transit_item_title' : 'Scooby Doo', 'transit_item_barcode' : 'barcode456' }
+                               ],
                                'offline_checkout' : [],
                                'offline_checkin' : [],
                                'offline_renew' : [],