LP1821399: Implement missing fields for items_out recipt
authorDan Pearl <dpearl@cwmars.org>
Fri, 22 Mar 2019 19:51:05 +0000 (15:51 -0400)
committerDan Pearl <dpearl@cwmars.org>
Fri, 17 May 2019 16:54:03 +0000 (12:54 -0400)
Open-ILS/src/templates/staff/share/print_templates/t_items_out.tt2
Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js

index 2092ad9..681450a 100644 (file)
@@ -2,7 +2,8 @@
 Template for printing a list of items that a patron has checked out.
 Fields include:
 
-* patron - has several fields from the patron object, including a financial summary
+* patron - has several fields from the patron object, including a 
+  financial summary
 
   * first_given_name
   * second_given_name
@@ -18,13 +19,19 @@ Fields include:
   * has_email - boolean value to show/hide elements on the receipt
   * has_phone - same as has_email
 
-* circulations - list of current loans, including
+* circulations - list of current loans, including for each
+  checkout
 
-  * title
-  * author
-  * call_number.label
-  * copy.barcode
-  * circ.due_date
+  * checkout.title
+  * checkout.author
+  * checkout.circ.due_date
+  * checkout.circ.renewal_remaining
+  * 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.copy.location.name  [Shelving location]
 
 -->
 <div>
index 110ead8..b44143c 100644 (file)
@@ -366,6 +366,9 @@ function($scope , $q , $routeParams , $timeout , egCore , egUser , patronSvc ,
                 title : circ.target_copy().call_number().record().wide_display_entry().title(),
                 author : circ.target_copy().call_number().record().wide_display_entry().author()
             })
+            // Flesh selected fields of this circulation
+                print_data.circulations[0].copy.call_number = 
+                    egCore.idl.toHash(circ.target_copy().call_number());
         });
 
         print_data.patron = {