LP1821047: Add support for more fields in checkout print receipt
authorDan Pearl <dpearl@cwmars.org>
Fri, 22 Mar 2019 19:16:51 +0000 (15:16 -0400)
committerDan Pearl <dpearl@cwmars.org>
Fri, 17 May 2019 16:51:51 +0000 (12:51 -0400)
Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2
Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js

index 646c383..e617d00 100644 (file)
@@ -25,10 +25,15 @@ Template for printing checkout receipts; fields available include:
 * circulations - list of loans made during this session. Each
   includes:
 
-  * title
-  * author
-  * copy.barcode
-  * circ.due_date
+  * checkout.title
+  * checkout.author
+  * checkout.copy.barcode
+  * checkout.copy.circ_modifier.name
+  * checkout.copy.call_number.label
+  * checkout.copy.call_number.owning_lib.name
+  * checkout.copy.call_number.owning_lib.shortname
+  * checkout.circ.due_date
+  * checkout.circ.renewal_remaining
 
 -->
 <div>
index 1cbb05e..216f7ad 100644 (file)
@@ -309,7 +309,10 @@ function($scope , $q , $routeParams , egCore , egUser , patronSvc ,
                     call_number : egCore.idl.toHash(co.acn),
                     title : co.title,
                     author : co.author
-                })
+                });
+               // Flesh selected fields of this circulation
+                print_data.circulations[0].copy.call_number = 
+                    egCore.idl.toHash(co.acn);
             };
         });