PINES Custom Offline Checkout and Renew Receipts rel_3_2_1_custom_offline_receipts
authorTerran McCanna <tmccanna@georgialibraries.org>
Mon, 10 Dec 2018 20:36:05 +0000 (15:36 -0500)
committerTerran McCanna <tmccanna@georgialibraries.org>
Mon, 10 Dec 2018 20:36:05 +0000 (15:36 -0500)
- Correct due date to not show due time.
- Show 'Non-cataloged Item' text when there is no barcode.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates/staff/share/print_templates/t_offline_checkout.tt2
Open-ILS/src/templates/staff/share/print_templates/t_offline_renew.tt2

index 292e7b4..da2af4d 100644 (file)
@@ -1,26 +1,15 @@
-<!--
-Template for printing offline checkout receipts; fields available include:
-
-* transactions - list of loans made during this session. Each
-  includes:
-
-  * barcode
-  * patron_barcode
-  * due_date
-
--->
-<div>
-  <div>[% l('Patron [_1]', '{{transactions[0].patron_barcode}}') %]</div>
-  <div>[% l('You checked out the following [_1] items:', '{{transactions.length}}') %]</div>
+  <h1 style="text-align:center;">PINES</h1>
+  <div>You checked out the following {{transactions.length}} items:</div>
   <hr/>
   <ol>
     <li ng-repeat="checkout in transactions">
-      <div>[% l('Barcode: [_1] Due: [_2]', 
-        '{{checkout.barcode}}',
-        '{{checkout.due_date | date:"short"}}') %]</div>
+      <div ng-if="checkout.barcode">Barcode: {{checkout.barcode}}<br/>
+         Due: {{checkout.due_date | date:"M/d/yyyy"}}</div>
+      <div ng-if="!checkout.barcode">Non-cataloged Item<br/>
+         Due: {{checkout.due_date | date:"M/d/yyyy"}}</div>
     </li>
   </ol>
   <hr/>
   <div>{{today | date:'short'}}</div>
-<br/>
+  <td ng-if="hold.sms_notify" valign="top">{{hold.sms_notify}}</td>
 
index 7bd8242..ba87cc1 100644 (file)
@@ -1,24 +1,12 @@
-<!--
-Template for printing offline renew receipts; fields available include:
-
-* transactions - list of loans made during this session. Each
-  includes:
-
-  * barcode
-  * due_date
-
--->
-<div>
-  <div>[% l('You renewed the following [_1] items:', '{{transactions.length}}') %]</div>
+  <h1 style="text-align:center;">PINES</h1>
+  <div>You renewed the following {{transactions.length}} items:</div>
   <hr/>
   <ol>
     <li ng-repeat="checkout in transactions">
-      <div>[% l('Barcode: [_1] Due: [_2]', 
-        '{{checkout.barcode}}',
-        '{{checkout.due_date | date:"short"}}') %]</div>
+      <div>Barcode: {{checkout.barcode}}<br/>
+      Due: {{checkout.due_date | date:"M/d/yyyy"}}</div>
     </li>
   </ol>
   <hr/>
   <div>{{today | date:'short'}}</div>
-<br/>