webstaff: tweak default Hold Shelf List print template
authorJason Etheridge <jason@esilibrary.com>
Mon, 21 Nov 2016 13:57:58 +0000 (08:57 -0500)
committerKathy Lussier <klussier@masslnc.org>
Tue, 22 Nov 2016 19:10:06 +0000 (14:10 -0500)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/staff/share/print_templates/t_hold_shelf_list.tt2

index ce23fe4..34441cd 100644 (file)
@@ -1,4 +1,4 @@
-<table id='pull-list-template-table'>
+<table id='shelf-list-template-table'>
   <style>
     #pull-list-template-table td,
     #pull-list-template-table th {
@@ -8,20 +8,28 @@
   </style>
   <thead>
     <tr>
+      <th>[% l('Patron') %]</th>
       <th>[% l('Type') %]</th>
       <th>[% l('Title') %]</th>
       <th>[% l('Author') %]</th>
-      <th>[% l('Shelf Location') %]</th>
       <th>[% l('Call Number') %]</th>
       <th>[% l('Barcode/Part') %]</th>
     </tr>
   </thead>
   <tbody>
     <tr ng-repeat="hold_data in holds">
+      <td>
+        <span ng-if="hold.patron_alias">{{hold_data.patron_alias}}</span>
+        <span ng-if="!hold.patron_alias">
+          [% l('[_1], [_2]',
+            '{{hold_data.patron_last}}',
+            '{{hold_data.patron_first}}') %]
+        </span>
+      </td>
+      </td>
       <td>{{hold_data.hold.hold_type}}</td>
       <td>{{hold_data.title}}</td>
       <td>{{hold_data.author}}</td>
-      <td>{{hold_data.copy.location.name}}</td>
       <td>{{hold_data.volume.label}}</td>
       <td>{{hold_data.copy.barcode}} {{hold_data.part.label}}</td>
     </tr>