LP1822869: Add support for pickup_lib to Hold Pull List
authorDan Pearl <dpearl@cwmars.org>
Wed, 3 Apr 2019 17:27:27 +0000 (13:27 -0400)
committerDan Pearl <dpearl@cwmars.org>
Fri, 17 May 2019 16:55:05 +0000 (12:55 -0400)
Open-ILS/src/templates/staff/share/print_templates/t_hold_pull_list.tt2
Open-ILS/web/js/ui/default/staff/admin/workstation/app.js

index 47be206..f76ddee 100644 (file)
@@ -1,14 +1,18 @@
 <!--
 Template for printing a table of holds to pull. Fields include:
 
-* holds - list of holds, each of which includes:
+* holds - list of holds, where each hold_data includes:
 
-  * title
-  * author
-  * hold.hold_type
-  * copy.location_name
-  * volume.label - call number
-  * copy.barcode
+  * hold_data.title
+  * hold_data.author
+  * hold_data.hold.hold_type
+  * hold_data.hold.pickup_lib.shortname
+  * hold_data.hold.pickup_lib.name
+  * hold_data.copy.location_name
+  * hold_data.volume.label - call number
+  * hold_data.volume.prefix
+  * hold_data.volume.suffix
+  * hold_data.copy.barcode
 -->
 <table id='pull-list-template-table'>
   <style>
index 37a815a..04a38b2 100644 (file)
@@ -467,7 +467,11 @@ function($scope , $q , egCore , ngToast) {
         email_notify : 'user@example.org',
         request_time : new Date().toISOString(),
         hold_type : 'T',
-        shelf_expire_time : new Date().toISOString()
+        shelf_expire_time : new Date().toISOString(),
+        pickup_lib : {
+           name : 'Holder Public Library',
+           shortname : 'Holder'
+                     }
     }
 
     var seed_transit = {