Default Print Templates - PINES Customizations rel_2_12_2_printtemplates
authorTerran McCanna <tmccanna@georgialibraries.org>
Wed, 9 Aug 2017 18:05:16 +0000 (14:05 -0400)
committerTerran McCanna <tmccanna@georgialibraries.org>
Wed, 9 Aug 2017 18:05:16 +0000 (14:05 -0400)
Customized default print templates for PINES so that each library
will have a good starting point to work from.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
14 files changed:
Open-ILS/src/templates/staff/share/print_templates/t_bill_payment.tt2
Open-ILS/src/templates/staff/share/print_templates/t_bills_current.tt2
Open-ILS/src/templates/staff/share/print_templates/t_bills_historical.tt2
Open-ILS/src/templates/staff/share/print_templates/t_checkin.tt2
Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2
Open-ILS/src/templates/staff/share/print_templates/t_hold_pull_list.tt2
Open-ILS/src/templates/staff/share/print_templates/t_hold_shelf_list.tt2
Open-ILS/src/templates/staff/share/print_templates/t_hold_shelf_slip.tt2
Open-ILS/src/templates/staff/share/print_templates/t_hold_transit_slip.tt2
Open-ILS/src/templates/staff/share/print_templates/t_holds_for_patron.tt2
Open-ILS/src/templates/staff/share/print_templates/t_items_out.tt2
Open-ILS/src/templates/staff/share/print_templates/t_renew.tt2
Open-ILS/src/templates/staff/share/print_templates/t_transit_list.tt2
Open-ILS/src/templates/staff/share/print_templates/t_transit_slip.tt2

index 632569b..7ec6c2d 100644 (file)
@@ -1,80 +1,69 @@
-<!--
-Template for bill payment receipts. Data specific to this template
-includes:
+<center><img src="https://pines.georgialibraries.org/dokuwiki/lib/exe/fetch.php?media=logo.png" style="width:150px;"><br/>
+<b>www.gapines.org</b><br/>
+<b>{{current_location.name}}</b></center>
+<h3>Payment Receipt</h3>
 
-* current_location.name - name of workstation location
-* payment_type
-* payment_total - total paid
-* new_balance - balance after the payments were applied
-* payments - list of specific payments
-
--->
-Welcome to {{current_location.name}}!<br/>
-A receipt of your  transaction:<hr/>
-
-<table style="width:100%"> 
-  <tr> 
-    <td>[% l('Original Balance:') %]</td> 
-    <td align="right">{{previous_balance | currency}}</td> 
-  </tr> 
-  <tr> 
-    <td>[% l('Payment Method:') %]</td> 
+<table style="width:100%">
+  <tr>
+    <td>Original Balance:</td>
+    <td align="right">{{previous_balance | currency}}</td>
+  </tr>
+  <tr>
+    <td>Payment Method:</td>
     <td align="right">
       <div ng-switch="payment_type">
-        <div ng-switch-when="cash_payment">[% l('Cash') %]</div>
-        <div ng-switch-when="check_payment">[% l('Check') %]</div>
-        <div ng-switch-when="credit_card_payment">[% l('Credit Card') %]</div>
-        <div ng-switch-when="credit_payment">[% l('Patron Credit') %]</div>
-        <div ng-switch-when="work_payment">[% l('Work') %]</div>
-        <div ng-switch-when="forgive_payment">[% l('Forgive') %]</div>
-        <div ng-switch-when="goods_payment">[% l('Goods') %]</div>
+        <div ng-switch-when="cash_payment">Cash</div>
+        <div ng-switch-when="check_payment">Check</div>
+        <div ng-switch-when="credit_card_payment">Credit Card</div>
+        <div ng-switch-when="credit_payment">Patron Credit</div>
+        <div ng-switch-when="work_payment">Work</div>
+        <div ng-switch-when="forgive_payment">Forgive</div>
+        <div ng-switch-when="goods_payment">Goods</div>
       </div>
     </td>
-  </tr> 
-  <tr> 
-    <td>[% l('Payment Received:') %]</td> 
-    <td align="right">{{payment_total | currency}}</td> 
-  </tr> 
-  <tr> 
-    <td>[% l('Payment Applied:') %]</td> 
-    <td align="right">{{payment_applied | currency}}</td> 
-  </tr> 
-  <tr> 
-    <td>[% l('Billings Voided:') %]</td> 
-    <td align="right">{{amount_voided | currency}}</td> 
-  </tr> 
-  <tr> 
-    <td>[% l('Change Given:') %]</td> 
-    <td align="right">{{change_given | currency}}</td> 
-  </tr> 
-  <tr> 
-    <td>[% l('New Balance:') %]</td> 
-    <td align="right">{{new_balance | currency}}</td> 
-  </tr> 
-</table> 
+  </tr>
+  <tr>
+    <td>Amount Paid:</td>
+    <td align="right">{{payment_applied | currency}}</td>
+  </tr>
+  <tr>
+    <td>Billings Voided:</td>
+    <td align="right">{{amount_voided | currency}}</td>
+  </tr>
+  <tr>
+    <td>New Balance:</td>
+    <td align="right">{{new_balance | currency}}</td>
+  </tr>
+</table>
+<div ng-if="payment_note"><br/><b><i>Note: {{payment_note}}</i></b></div>
 
-<p>[% l('Note: [_1]', '{{payment_note}}') %]</p>
+<hr/>
+<h4>Bill Details</h4>
 
-<p>
-[% l('Specific Bills') %]
-  <blockquote>
-    <div ng-repeat="payment in payments">
-      <table style="width:100%">
+<div ng-repeat="payment in payments">
+     <br/>
+      <table>
+        <tr>
+          <td>Bill #:</td>
+          <td>{{payment.xact.id}}</td>
+        </tr>
+        <tr>
+          <td>Type: &nbsp; </td>
+          <td><span ng-if="payment.xact.summary.xact_type == 'grocery'">{{payment.xact.summary.last_billing_type}}</span>
+          <span ng-if="payment.xact.summary.xact_type != 'grocery'" style="text-transform:capitalize;">{{payment.xact.summary.xact_type}}</span></td>
+        </tr>
+        <tr>
+          <td>Received: &nbsp;</td><td>{{payment.amount | currency}}</td>
+        </tr>
         <tr>
-          <td>[% l('Bill # [_1]', '{{payment.xact.id}}') %]</td>
-          <td>{{payment.xact.summary.last_billing_type}}</td>
-          <td>[% l('Received: [_1]', '{{payment.amount | currency}}') %]</td>
+          <td>Title:</td>
+          <td>{{payment.xact.title}}</td>
         </tr>
         <tr>
-          <td colspan="5">
-            {{payment.xact.copy_barcode}} {{payment.xact.title}}
-          </td>
+          <td>Barcode:</td>
+          <td>{{payment.xact.copy_barcode}}</td>
         </tr>
       </table>
-      <br/>
     </div>
-  </blockquote>
-</p> 
 <hr/>
-<br/><br/> 
-{{current_location.shortname}} {{today | date:'short'}}
+{{current_location.shortname}} {{today | date:'short'}}
\ No newline at end of file
index 21b53c2..5220d9d 100644 (file)
@@ -1,59 +1,28 @@
-<!-
-Template for printing a list of current bills. Data specific
-to this template includes:
-
-* transasctions - a list of transactions, each of which
-  contains:
-
-  summary - information about the transaction
-
--->
-Welcome to {{current_location.name}}!<br/>
-You have the following bills:
-<hr/>
-<dl>
-  <div ng-repeat="xact in transactions">
-    <dt><b>Bill #{{xact.id}}</b></dt>
-    <dd>
-    <table> 
-      <tr valign="top">
-        <td>[% l('Date:') %]</td>
-        <td>{{xact.xact_start | date:'short'}}</td>
-      </tr> 
-      <tr valign="top">
-        <td>[% l('Type') %]:</td>
-        <td>{{xact.summary.xact_type}}</td>
-      </tr> 
-      <tr valign="top">
-        <td>[% l('Last Billing') %]:</td>
-        <td>{{xact.summary.last_billing_type}}<br/>
-            {{xact.summary.last_billing_note}}
-        </td>
-      </tr> 
+<center><img src="https://pines.georgialibraries.org/dokuwiki/lib/exe/fetch.php?media=logo.png" style="width:150px;"><br/>
+<b>www.gapines.org</b><br/>
+<b>{{current_location.name}}</b></center>
+<h3>Current Bills</h3>
+<div ng-repeat="xact in transactions">
+    <br/>
+    <table>
       <tr valign="top">
-        <td>[% l('Total Billed') %]:</td>
-        <td>{{xact.summary.total_owed | currency}}</td>
-      </tr> 
+        <td><b>Bill ID:</b></td>
+        <td><b>{{xact.id}}</b></td>
+      </tr>
       <tr valign="top">
-        <td>[% l('Last Payment') %]:</td>
-        <td>{{xact.summary.last_payment_type}}<br/>
-            {{xact.summary.last_payment_note}}
-        </td>
-      </tr> 
+        <td>Bill Start Date: &nbsp;</td>
+        <td>{{xact.xact_start| date:'M/d/yyyy'}}</td>
+      </tr>
       <tr valign="top">
-        <td>[% l('Total Paid') %]:</td>
-        <td>{{xact.summary.total_paid | currency}}</td>
-      </tr> 
+        <td>Type:</td>
+        <td><span ng-if="xact.summary.xact_type == 'grocery'">{{xact.summary.last_billing_type}}</span>
+<span ng-if="xact.summary.xact_type != 'grocery'" style="text-transform:capitalize;">{{xact.summary.xact_type}}</span></td>
+      </tr>  
       <tr valign="top">
-        <td><b>[% l('Balance') %]:</b></td>
+        <td><b>Balance: &nbsp;</b></td>
         <td><b>{{xact.summary.balance_owed | currency}}</b></td>
-      </tr> 
+      </tr>
     </table>
-    </dd>
-    <br/>
-  </div><!-- ng-repeat -->
-</dl>
-<hr/>
-{{current_location.shortname}} {{today | date:'short'}}
-<br/><br/>
-
+</div><!-- ng-repeat -->
+<br/>
+{{current_location.shortname}} &nbsp; {{today | date:'short'}}<br/>
\ No newline at end of file
index 44fcd57..0887e11 100644 (file)
@@ -1,59 +1,37 @@
-<!-
-Template for printing a list of past bills. Data specific
-to this template includes:
-
-* transasctions - a list of transactions, each of which
-  contains:
-
-  summary - information about the transaction
-
--->
-Welcome to {{current_location.name}}!<br/>
-You had the following bills:
-<hr/>
-<dl>
-  <div ng-repeat="xact in transactions">
-    <dt><b>Bill #{{xact.id}}</b></dt>
-    <dd>
+<center><img src="https://pines.georgialibraries.org/dokuwiki/lib/exe/fetch.php?media=logo.png" style="width:150px;"><br/>
+<b>www.gapines.org</b><br/>
+<b>{{current_location.name}}</b></center>
+<h3>Bill History</h3>
+<div ng-repeat="xact in transactions">
+    <br/>
     <table> 
       <tr valign="top">
-        <td>[% l('Date:') %]</td>
-        <td>{{xact.xact_start | date:'short'}}</td>
+        <td><b>Bill ID:</b></td>
+        <td><b>{{xact.id}}</b></td>
       </tr> 
       <tr valign="top">
-        <td>[% l('Type') %]:</td>
-        <td>{{xact.summary.xact_type}}</td>
+        <td>Bill Start Date: &nbsp; </td>
+        <td>{{xact.xact_start | date:'M/d/yyyy'}}</td>
       </tr> 
       <tr valign="top">
-        <td>[% l('Last Billing') %]:</td>
-        <td>{{xact.summary.last_billing_type}}<br/>
-            {{xact.summary.last_billing_note}}
-        </td>
+        <td>Type:</td>
+        <td><span ng-if="xact.summary.xact_type == 'grocery'">{{xact.summary.last_billing_type}}</span>
+<span ng-if="xact.summary.xact_type != 'grocery'" style="text-transform:capitalize;">{{xact.summary.xact_type}}</span></td>
       </tr> 
       <tr valign="top">
-        <td>[% l('Total Billed') %]:</td>
+        <td>Total Billed:</td>
         <td>{{xact.summary.total_owed | currency}}</td>
       </tr> 
       <tr valign="top">
-        <td>[% l('Last Payment') %]:</td>
-        <td>{{xact.summary.last_payment_type}}<br/>
-            {{xact.summary.last_payment_note}}
-        </td>
-      </tr> 
-      <tr valign="top">
-        <td>[% l('Total Paid') %]:</td>
+        <td>Total Paid:</td>
         <td>{{xact.summary.total_paid | currency}}</td>
       </tr> 
       <tr valign="top">
-        <td><b>[% l('Balance') %]:</b></td>
+        <td><b>Balance:</b></td>
         <td><b>{{xact.summary.balance_owed | currency}}</b></td>
       </tr> 
     </table>
-    </dd>
-    <br/>
   </div><!-- ng-repeat -->
-</dl>
 <hr/>
 {{current_location.shortname}} {{today | date:'short'}}
-<br/><br/>
-
+<br/>
\ No newline at end of file
index 3aa276c..00e3b3d 100644 (file)
@@ -1,29 +1,16 @@
-<!--
-Template for printing a checkin receipt. Data specific to this
-template includes:
-
-* checkins - list of checkins recorded during the session. Each
-  includes:
-
-  * title
-  * copy_barcode
-  * call_number.label
-
--->
-<div>
-  <div>[% l('Welcome to [_1]', '{{current_location.name}}') %]</div>
-  <div>[% l('You checked in the following items:') %]</div>
-  <hr/>
-  <ol>
-    <li ng-repeat="checkin in checkins">
-      <div>{{checkin.title}}</div>
-      <span>[% l('Barcode: ') %]</span>
-      <span>{{checkin.copy_barcode}}</span>
-      <span>[% l('Call Number: ') %]</span>
-      <span>{{checkin.call_number.label || "[% l("Not Cataloged") %]"}}</span>
-    </li>
-  </ol>
-  <hr/>
-  <div>{{current_location.shortname}} {{today | date:'short'}}</div>
-  <br/>
+<center><img src="https://pines.georgialibraries.org/dokuwiki/lib/exe/fetch.php?media=logo.png" style="width:150px;"><br/>
+<b>www.gapines.org</b><br/>
+<b>{{current_location.name}}</b></center>
+<h3>Checkin Receipt</h3>
+<div>You returned the following items:</div>
+<br/>
+<ol>
+<div ng-repeat="checkin in checkins">
+      <li><b>{{checkin.title}}</b><br/>
+      Barcode: {{checkin.copy_barcode}}<br/>
+      Call Number: {{checkin.call_number.label || "Not Cataloged"}}
+      </li>
 </div>
+</ol>
+<hr/>
+<div>{{current_location.shortname}} {{today | date:'short'}}</div>
\ No newline at end of file
index dc88446..d15587d 100644 (file)
@@ -1,28 +1,16 @@
-<!--
-Template for printing checkout receipts; fields available include:
-
-* circulations - list of loans made during this session. Each
-  includes:
-
-  * title
-  * copy_barcode
-  * due_date
-
--->
-<div>
-  <div>[% l('Welcome to [_1]', '{{current_location.name}}') %]</div>
-  <div>[% l('You checked out the following items:') %]</div>
-  <hr/>
-  <ol>
-    <li ng-repeat="checkout in circulations">
-      <div>{{checkout.title}}</div>
-      <div>[% l('Barcode: [_1] Due: [_2]', 
-        '{{checkout.copy.barcode}}',
-        '{{checkout.circ.due_date | date:"short"}}') %]</div>
-    </li>
-  </ol>
-  <hr/>
-  <div>{{current_location.shortname}} {{today | date:'short'}}</div>
-  <div>[% l('You were helped by [_1]', '{{staff.first_given_name}}') %]</div>
+<center><img src="https://pines.georgialibraries.org/dokuwiki/lib/exe/fetch.php?media=logo.png" style="width:150px;"><br/>
+<b>www.gapines.org</b><br/>
+<b>{{current_location.name}}</b></center>
+<h3>Checkout Receipt</h3>
+<div>You checked out the following items:</div>
 <br/>
-
+<ol>
+<div ng-repeat="checkout in circulations">
+      <li><b>{{checkout.title}}</b><br/>
+      Barcode: {{checkout.copy.barcode}}<br/>
+      Due: {{checkout.circ.due_date | date:"M/d/yyyy"}}
+    </li>
+</div>
+</ol>
+<hr/>
+<div>{{current_location.shortname}} {{today | date:'short'}}</div>
\ No newline at end of file
index 47be206..c4dec31 100644 (file)
@@ -1,15 +1,6 @@
-<!--
-Template for printing a table of holds to pull. Fields include:
-
-* holds - list of holds, each of which includes:
-
-  * title
-  * author
-  * hold.hold_type
-  * copy.location_name
-  * volume.label - call number
-  * copy.barcode
--->
+<h3>Hold Pull List</h3>
+<b>Pull Date: {{today | date:'short'}}</b>
+<br/>
 <table id='pull-list-template-table'>
   <style>
     #pull-list-template-table td,
@@ -20,22 +11,22 @@ Template for printing a table of holds to pull. Fields include:
   </style>
   <thead>
     <tr>
-      <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>
+      <th>Shelf Location</th>
+      <th>Call Number</th>
+      <th>Title</th>
+      <th>Author</th>
+      <th>Barcode/Part</th>
+      <th>Type</th>
     </tr>
   </thead>
   <tbody>
-    <tr ng-repeat="hold_data in holds">
-      <td>{{hold_data.hold.hold_type}}</td>
-      <td>{{hold_data.title}}</td>
-      <td>{{hold_data.author}}</td>
+    <tr ng-repeat="hold_data in holds | orderBy : ['copy.location.name','volume.label']">
       <td>{{hold_data.copy.location.name}}</td>
       <td>{{hold_data.volume.label}}</td>
+      <td>{{hold_data.title}}</td>
+      <td>{{hold_data.author}}</td>
       <td>{{hold_data.copy.barcode}} {{hold_data.part.label}}</td>
+      <td>{{hold_data.hold.hold_type}}</td>
     </tr>
   </tbody>
-</table>
+</table>
\ No newline at end of file
index 375e9b9..2519cfe 100644 (file)
@@ -1,52 +1,35 @@
-<!--
-Template for printing a list of items on the hold shelf. Fields include:
-
-* holds - list of hold requests, including
-
-  * patron_alias
-  * patron_last
-  * patron_first
-  * hold.hold_type
-  * title
-  * author
-  * volume.label
-  * copy.barcode
-
--->
-<table id='shelf-list-template-table'>
-  <style>
-    #pull-list-template-table td,
-    #pull-list-template-table th {
+<style>
+    #shelf-list-template-table td,
+    #shelf-list-template-table th {
       padding: 5px;
       border: 1px solid #000;
     }
-  </style>
+</style>
+<h3>Hold Shelf List</h3>
+<b>List Date: {{today | date:'short'}}</b>
+<br/>
+
+<table id='shelf-list-template-table'>
   <thead>
     <tr>
-      <th>[% l('Patron') %]</th>
-      <th>[% l('Type') %]</th>
-      <th>[% l('Title') %]</th>
-      <th>[% l('Author') %]</th>
-      <th>[% l('Call Number') %]</th>
-      <th>[% l('Barcode/Part') %]</th>
+      <th>Patron</th>
+      <th>Title</th>
+      <th>Author</th>
+      <th>Call Number</th>
+      <th>Barcode/Part</th>
     </tr>
   </thead>
   <tbody>
-    <tr ng-repeat="hold_data in holds">
-      <td>
-        <span ng-if="hold_data.patron_alias">{{hold_data.patron_alias}}</span>
+      <tr ng-repeat="hold_data in holds | orderBy : ['patron_alias','patron_last','patron_first','title']">
+      <td><span ng-if="hold_data.patron_alias">{{hold_data.patron_alias}}</span>
         <span ng-if="!hold_data.patron_alias">
-          [% l('[_1], [_2]',
-            '{{hold_data.patron_last}}',
-            '{{hold_data.patron_first}}') %]
-        </span>
-      </td>
+          {{hold_data.patron_last}}, {{hold_data.patron_first}}
+        </span><br/>
       </td>
-      <td>{{hold_data.hold.hold_type}}</td>
       <td>{{hold_data.title}}</td>
       <td>{{hold_data.author}}</td>
       <td>{{hold_data.volume.label}}</td>
       <td>{{hold_data.copy.barcode}} {{hold_data.part.label}}</td>
     </tr>
   </tbody>
-</table>
+</table>
\ No newline at end of file
index 01f1561..fcaae77 100644 (file)
@@ -1,56 +1,31 @@
-<!--
-Template for printing hold request slips. Fields include:
-
-* hold.behind_desk
-* copy.barcode
-* title
-* patron.family_name
-* patron.first_given_name
-* patron.second_given_name
-* patron.card.barcode
-* hold.request_time
-* hold.phone_notify
-* hold.sms_notify
-* hold.email_notify
-
--->
-<div>
-  <h1>{{patron.family_given_name}}<br/>
-  {{patron.card.barcode}}</h1>
-  <hr/>
-  <div ng-switch on="hold.behind_desk">
+<h1>{{patron.family_name}}, {{patron.first_given_name}}</h1>
+<b>Available on {{today | date:"M/d/yyyy"}}</b>
+<div ng-switch on="hold.behind_desk">
     <div ng-switch-when="t">
-      [% l('This item needs to be routed to the [_1]Private Holds Shelf[_2].',
-        '<strong>','</strong>') %]
+      <strong>Private - Hold Behind Desk</strong>
     </div>
     <div ng-switch-when="f">
-      [% l('This item needs to be routed to the [_1]Public Holds Shelf[_2].',
-        '<strong>','</strong>') %]
+      <strong>Public Holds Shelf</strong>
     </div>
-  </div>
-  <br/>
-
-  [% l('Barcode: [_1]', '{{copy.barcode}}') %]</div>
-  [% l('Title: [_1]', '{{title}}') %]</div>
-
-  <br/>
-  <br/>
-
-  <div>[% l('Hold for patron [_1], [_2] [_3]',
-    '{{patron.family_name}}',
-    '{{patron.first_given_name}}',
-    '{{patron.second_given_name}}') %]</div>
-  <div>[% l('Barcode: [_1]', '{{patron.card.barcode}}') %]</div>
-  <div ng-if="hold.phone_notify">[% l('Notify by phone: [_1]', '{{hold.phone_notify}}') %]</div>
-  <div ng-if="hold.sms_notify">[% l('Notify by text: [_1]', '{{hold.sms_notify}}') %]</div>
-  <div ng-if="hold.email_notify == 't'">[% l('Notify by email: [_1]', '{{patron.email}}') %]</div>
-
-  <br/>
-
-  <div>[% l('Request Date: [_1]', 
-    '{{hold.request_time | date:"short"}}') %]</div>
-  <div>[% l('Slip Date: [_1]', '{{today | date:"short"}}') %]</div>
-  <div>[% l('Printed by [_1] at [_2]', 
-    '{{staff.first_given_name}}', '{{current_location.shortname}}') %]</div>
-
 </div>
+<br/>
+
+<table>
+  <tr><td><b>Title:</b></td><td><b>{{title}}</b></td></tr>
+  <tr><td>Barcode:</td><td>{{copy.barcode}}</td></tr>
+  <tr><td>Request Date: &nbsp;</td><td>{{hold.request_time | date:"M/d/yyyy"}}</td></tr>
+  <tr><td>&nbsp;</td><td></td></tr>
+  <tr><td><b>Patron:</td><td><b>{{patron.family_name}}, {{patron.first_given_name}} {{patron.second_given_name}}</b></tr>
+  <tr><td>Barcode:</td><td>{{patron.card.barcode}}</td></tr>
+  <tr><td>
+      <div ng-if="hold.phone_notify" style="font-weight:bold;">Notify by phone: &nbsp;</div>
+      <div ng-if="hold.sms_notify">Notify by text:</div>
+      <div ng-if="hold.email_notify == 't'">Notify by email: &nbsp;</div>
+  </td><td>
+      <div ng-if="hold.phone_notify" style="font-weight:bold;">{{hold.phone_notify}}</div>
+      <div ng-if="hold.sms_notify">{{hold.sms_notify}}</div>
+      <div ng-if="hold.email_notify == 't'">{{patron.email}}</div>
+  </td></tr>
+</table>
+<hr/>
+<div>{{current_location.shortname}} {{today | date:'short'}}</div>
\ No newline at end of file
index 4a67c36..66243b8 100644 (file)
@@ -1,64 +1,15 @@
-<!--
-Template for printing hold transit slips. Fields include:
-
-* dest_location.name - name of destination library
-* dest_location.shortname
-* dest_address.street1
-* dest_address.street2
-* dest_address.city
-* dest_address.state
-* dest_address.post_code
-* hold.behind_desk
-* copy.barcode
-* title
-* patron.family_name
-* patron.first_given_name
-* patron.second_given_name
-* patron.card.barcode
-* hold.request_time
-* hold.phone_notify
-* hold.sms_notify
-* hold.email_notify
-
--->
-<div>
-  <h1>{{dest_location.shortname}}</h1>
-  <hr/>
-  <div>[% l('This item needs to be routed to [_1]', '<b>{{dest_location.shortname}}</b>') %]</div>
-  <div>{{dest_location.name}}</div>
-  <div ng-if="dest_address">
-    <div>{{dest_address.street1}}</div>
-    <div>{{dest_address.street2}}</div>
-    <div>{{dest_address.city}},
-        {{dest_address.state}}
-        {{dest_address.post_code}}</div>
-  </div>
-  <div ng-if="!dest_address">
-    [% l('We do not have a holds address for this library.') %]
-  </div>
-  <br/>
-
-  [% l('Barcode: [_1]', '{{copy.barcode}}') %]</div>
-  [% l('Title: [_1]', '{{title}}') %]</div>
-  [% l('Author: [_1]', '{{author}}') %]</div>
-
-  <br/>
-
-  <div>[% l('Hold for patron [_1], [_2] [_3]',
-    '{{patron.family_name}}',
-    '{{patron.first_given_name}}',
-    '{{patron.second_given_name}}') %]</div>
-  <div>[% l('Barcode: [_1]', '{{patron.card.barcode}}') %]</div>
-  <div ng-if="hold.phone_notify">[% l('Notify by phone: [_1]', '{{hold.phone_notify}}') %]</div>
-  <div ng-if="hold.sms_notify">[% l('Notify by text: [_1]', '{{hold.sms_notify}}') %]</div>
-  <div ng-if="hold.email_notify == 't'">[% l('Notify by email: [_1]', '{{patron.email}}') %]</div>
-
-  <br/>
-
-  <div>[% l('Request Date: [_1]', 
-    '{{hold.request_time | date:"short"}}') %]</div>
-  <div>[% l('Slip Date: [_1]', '{{today | date:"short"}}') %]</div>
-  <div>[% l('Printed by [_1] at [_2]', 
-    '{{staff.first_given_name}}', '{{current_location.shortname}}') %]</div>
-
-</div>
+<div style="text-align:center;font-weight:bold;font-size:4em;">{{dest_courier_code}}</div>
+<div style="text-align:center;font-weight:bold;font-size:2.5em;">{{dest_location.shortname}}</div>
+<br/>
+<hr/>
+<div>This item needs to be routed to:<br/>
+{{dest_location.name}}</div>
+<br/>
+<table>
+<tr><td>Title:</td><td>{{title}}</td></tr>
+<tr><td>Author:</td><td>{{author}}</td></tr>
+<tr><td>Barcode: &nbsp;</td><td>{{copy.barcode}}</td></tr>
+<tr><td>Request Date: &nbsp;</td><td>{{hold.request_time | date:"M/d/yyyy"}}</td></tr>
+</table>
+<hr/>
+<div>{{current_location.shortname}} {{today | date:'short'}}</div>
\ No newline at end of file
index 0f3a5da..4860c1f 100644 (file)
@@ -1,22 +1,14 @@
-<!--
-Template for printing a list of hold requests for a patron. Fields include:
-
-* holds - a list of hold request, each of which includes
-  * title
-
--->
+<center><img src="https://pines.georgialibraries.org/dokuwiki/lib/exe/fetch.php?media=logo.png" style="width:150px;"><br/>
+<b>www.gapines.org</b><br/>
+<b>{{current_location.name}}</b></center>
+<h3>Current Holds</h3>
 <div>
-  <div>[% l('Welcome to [_1]', '{{current_location.name}}') %]</div>
-  <div>[% l('You have the following title on hold:') %]</div>
-  <hr/>
+  <div>You have the following title(s) on hold:</div>
+  <br/>
   <ol>
     <li ng-repeat="hold in holds">
-      <div>{{hold.title}}</div>
+      {{hold.title}}
     </li>
   </ol>
-  <hr/>
-  <div>{{current_location.shortname}} {{today | date:'short'}}</div>
-  <div>[% l('You were helped by [_1]', '{{staff.first_given_name}}') %]</div>
-<br/>
-
+<hr/>
+<div>{{current_location.shortname}} {{today | date:'short'}}</div>
index 10564b1..ee42a99 100644 (file)
@@ -1,28 +1,16 @@
-<!--
-Template for printing a list of items that a patron has checked out.
-Fields include:
+<center><img src="https://pines.georgialibraries.org/dokuwiki/lib/exe/fetch.php?media=logo.png" style="width:150px;"><br/>
+<b>www.gapines.org</b><br/>
+<b>{{current_location.name}}</b></center>
+<h3>Items Out</h3>
 
-* circulations - list of current loans, including
-
-  * copy.barcode
-  * circ.due_date
-  * title
-
--->
-<div>
-  <div>[% l('Welcome to [_1]', '{{current_location.name}}') %]</div>
-  <div>[% l('You have the following items:') %]</div>
-  <hr/>
+<div>You have the following items checked out:</div>
+<br/>
   <ol>
     <li ng-repeat="checkout in circulations">
-      <div>{{checkout.title}}</div>
-      <div>[% l('Barcode: [_1] Due: [_2]', 
-        '{{checkout.copy.barcode}}',
-        '{{checkout.circ.due_date | date:"short"}}') %]</div>
+      <div style="font-weight:bold;text-transform:capitalize;">{{checkout.title}}</div>
+      <div>Barcode: {{checkout.copy.barcode}}</div>
+      <div>Due: {{checkout.circ.due_date | date:"M/d/yyyy"}}</div>
     </li>
   </ol>
-  <hr/>
-  <div>{{current_location.shortname}} {{today | date:'short'}}</div>
-  <div>[% l('You were helped by [_1]', '{{staff.first_given_name}}') %]</div>
-<br/>
-
+<hr/>
+<div>{{current_location.shortname}} {{today | date:'short'}}</div>
index d5046b2..20dae37 100644 (file)
@@ -1,27 +1,15 @@
-<!--
-Template for printing a renewal receipt. Fields include:
-
-* circulations - list of renewals made during the session, including
-
-  * title
-  * copy.barcode
-  * circ.due_date
-
--->
-<div>
-  <div>[% l('Welcome to [_1]', '{{current_location.name}}') %]</div>
-  <div>[% l('You renewed the following items:') %]</div>
-  <hr/>
+<center><img src="https://pines.georgialibraries.org/dokuwiki/lib/exe/fetch.php?media=logo.png" style="width:150px;"><br/>
+<b>www.gapines.org</b><br/>
+<b>{{current_location.name}}</b></center>
+<h3>Renewals</h3>
+<div>You renewed the following items:</div>
+<br/>
   <ol>
     <li ng-repeat="renewal in circulations">
-      <div>{{renewal.title}}</div>
-      <div>[% l('Barcode: [_1] Due: [_2]', 
-        '{{renewal.copy.barcode}}',
-        '{{renewal.circ.due_date | date:"short"}}') %]</div>
+      <div><b>{{renewal.title}}</b></div>
+      <div>Barcode: {{renewal.copy.barcode}}</div>
+      <div>New Due Date: <b>{{renewal.circ.due_date | date:"M/d/yyyy"}}</b></div>
     </li>
   </ol>
-  <hr/>
-  <div>{{current_location.shortname}} {{today | date:'short'}}</div>
-  <div>[% l('You were helped by [_1]', '{{staff.first_given_name}}') %]</div>
-<br/>
-
+<hr/>
+<div>{{current_location.shortname}} {{today | date:'short'}}</div>
\ No newline at end of file
index 09e8333..69093c6 100644 (file)
@@ -13,16 +13,11 @@ transits - list; each entry contains:
   * target_copy.call_number.record.simple_record.title
 -->
 <div>
-  <div>[% l('Transits:') %]</div>
+  <div>Transits:</div>
   <hr/>
   <ol>
     <li ng-repeat="transit in transits">
-      <div>[% l('From: [_1] To: [_2] <br> When: [_3] <br> Barcode: [_4] Title: [_5]',
-        '{{transit.source.shortname}}',
-        '{{transit.dest.shortname}}',
-        "{{transit.source_send_time | date:'short'}}",
-        '{{transit.target_copy.barcode}}',
-        '{{transit.target_copy.call_number.record.simple_record.title}}') %]</div>
+      <div>From: {{transit.source.shortname}} To: {{transit.dest.shortname}} <br> When: {{transit.source_send_time | date:'short'}} <br> Barcode: {{transit.target_copy.barcode}} Title: {{transit.target_copy.call_number.record.simple_record.title}}</div>
     </li>
   </ol>
   <hr/>
index 519efc2..3c0d41d 100644 (file)
@@ -1,42 +1,14 @@
-<!--
-Template for printing a transit slip. Fields include:
-
-* dest_location.name - name of destination library
-* dest_location.shortname
-* dest_address.street1
-* dest_address.street2
-* dest_address.city
-* dest_address.state
-* dest_address.post_code
-* copy.barcode
-* title
-* author
--->
-<div>
-  <h1>{{dest_location.shortname}}</h1>
-  <hr/>
-  <div>[% l('This item needs to be routed to [_1]', '<b>{{dest_location.shortname}}</b>') %]</div>
-  <div>{{dest_location.name}}</div>
-  <div ng-if="dest_address">
-    <div>{{dest_address.street1}}</div>
-    <div>{{dest_address.street2}}</div>
-    <div>{{dest_address.city}},
-        {{dest_address.state}}
-        {{dest_address.post_code}}</div>
-  </div>
-  <div ng-if="!dest_address">
-    [% l('We do not have a holds address for this library.') %]
-  </div>
-  <br/>
-
-  [% l('Barcode: [_1]', '{{copy.barcode}}') %]</div>
-  [% l('Title: [_1]', '{{title}}') %]</div>
-  [% l('Author: [_1]', '{{author}}') %]</div>
-
-  <br/>
-
-  <div>[% l('Slip Date: [_1]', '{{today | date:"short"}}') %]</div>
-  <div>[% l('Printed by [_1] at [_2]', 
-    '{{staff.first_given_name}}', '{{current_location.shortname}}') %]</div>
-
-</div>
+<div style="text-align:center;font-weight:bold;font-size:4em;">{{dest_courier_code}}</div>
+<div style="text-align:center;font-weight:bold;font-size:2.5em;">{{dest_location.shortname}}</div>
+<br/>
+<hr/>
+<div>This item needs to be routed to:<br/>
+{{dest_location.name}}</div>
+<br/>
+<table>
+<tr><td>Title:</td><td>{{title}}</td></tr>
+<tr><td>Author:</td><td>{{author}}</td></tr>
+<tr><td>Barcode: &nbsp;</td><td>{{copy.barcode}}</td></tr>
+</table>
+<hr/>
+<div>{{current_location.shortname}} {{today | date:'short'}}</div>
\ No newline at end of file