-<!--
-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>
-* patron - has several fields from the patron object, including a financial summary
-
- * first_given_name
- * second_given_name
- * family_name
- * suffix
- * pref_ versions of all name fields (e.g. pref_family_name);
- * card.barcode
- * expire_date
- * alias - aka Holds Alias
- * has_email - boolean value to show/hide elements on the receipt
- * has_phone - same as has_email
-
-* 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
-
-Individual payments within payments contain:
-* payment.xact.copy_barcode - Item barcode
-* payment.xact.title - Item title
--->
-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: </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: </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:$root.egDateAndTimeFormat}}
+{{current_location.shortname}} {{today | date:'short'}}
<dd>
<table>
<tr valign="top">
- <td>[% l('Date:') %]</td>
- <td>{{xact.xact_start | date:$root.egDateAndTimeFormat}}</td>
- </tr>
+ <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>
- </tr>
+ <td>Bill Start Date: </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>
- </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>[% l('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>{{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>
+ </tr>
</table>
- </dd>
- <br/>
- </div><!-- ng-repeat -->
-</dl>
-<hr/>
-{{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}
-<br/><br/>
-
+</div><!-- ng-repeat -->
+<br/>
+{{current_location.shortname}} {{today | date:'short'}}<br/>
-<!--
-Template for printing a list of past bills. Data specific
-to this template includes:
-
-* today - Today's date and time
-* current_location - the current library
- current_location.name - Current location's name
- current_location.shortname - Current location's shortname
-* patron - the patron who was billed, which contains:
- patron.prefix - Prefix of the patron
- patron.first_given_name - First given name of the patron
- patron.second_given_name - Second given name of the patron
- patron.family_name - Family name of the patron
- patron.suffix - Suffix of the patron
- patron.card - The patron's barcode number
- patron.expire_date - The patron's expiration date
- patron.alias - The patron's alias
- patron.has_email - Whether or not the patron has an email address
- patron.has_phone - Whether or not the patron has a phone number
- pref_ versions of all name fields (e.g. pref_family_name);
-* transasctions - a list of transactions, each of which contains:
- xact.id - Bill unique id
- xact.copy_barcode - Item barcode
- xact.xact_finish - Billing finish date and time
- xact.xact_start - Billing start date and time
- xact.summary - Information about the transaction
- xact.summary.balance_owed - Balance owed
- xact.summary.last_billing_note - Last billing note
- xact.summary.last_billing_type - Last billing type
- xact.summary.last_payment_note - Last payment note
- xact.summary.last_payment_ts - Last payment date and time
- xact.summary.last_payment_type - Last payment type
- xact.summary.total_owed - Total billed
- xact.summary.total_paid - Total paid
- xact.summary.xact_type - Billing type
- xact.title - Item title
- xact.summary - information about the transaction
- xact.title - Item title
- xact.copy_barcode - Item barcode
-
--->
-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('Billing Date:') %]</td>
- <td>{{xact.xact_start | date:$root.egDateAndTimeFormat}}</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: </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}}<br/>
- {{xact.summary.last_payment_ts | date:$root.egDateAndTimeFormat}}
- </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:$root.egDateAndTimeFormat}}
-<br/><br/>
-
+{{current_location.shortname}} {{today | date:'short'}}
+<br/>
-<!--
-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:$root.egDateAndTimeFormat}}</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>
-<!--
-Template for printing checkout receipts; fields available include:
-
-* patron - has several fields from the patron object, including a financial summary
-
- * prefix
- * first_given_name
- * second_given_name
- * family_name
- * suffix
- * pref_prefix
- * pref_first_given_name
- * pref_second_given_name
- * pref_family_name
- * pref_suffix
- * card.barcode
- * money_summary.balance_owed - current balance
- * money_summary.total_paid - payments made on outstanding fines/fees
- * money_summary.total_owed - total of outstanding fines/fees
- * expire_date
- * alias - aka Holds Alias
- * has_email - boolean value to show/hide elements on the receipt
- * has_phone - same as has_email
-
-* circulations - list of loans made during this session. Each
- includes:
-
- * title
- * author
- * copy.barcode
- * circ.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 | egDueDate:$root.egDateAndTimeFormat:checkout.circ.circ_lib:checkout.circ.duration}}') %]</div>
- </li>
- </ol>
- <hr/>
- <div>{{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}</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>
-<!--
-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,
</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>
<td>{{hold_data.copy.location.name}}</td>
<td>{{hold_data.volume.prefix}} {{hold_data.volume.label}} {{hold_data.volume.suffix}}</td>
<td>{{hold_data.copy.barcode}} {{hold_data.part.label}}</td>
+ <td>{{hold_data.hold.hold_type}}</td>
</tr>
</tbody>
</table>
-<!--
-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
- * status_string
- * hold.shelf_expire_time
-
--->
-<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>[% l('Status') %]</th>
- <th>[% l('Shelf Expire Time') %]</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>
-<!--
-Template for printing hold request slips. Fields include:
-
-* call_number.label/prefix/suffix
-* hold.behind_desk
-* copy.barcode
-* title
-* patron.alias
-* 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
-* hold_notes (array of slip-printable notes)
-
--->
-<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/>
- <div>[% l('Call Number: [_1] [_2] [_3]', '{{call_number.prefix}}', '{{call_number.label}}', '{{call_number.suffix}}') %]</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>
- <div ng-if="hold_notes">
- <ul>Notes:
- <li ng-repeat="note in hold_notes | filter: {slip : 't'}"><strong>{{note.title}}</strong> - {{note.body}}</li>
- </ul>
- </div>
- <br/>
-
- <div>[% l('Request Date: [_1]',
- '{{hold.request_time | date:$root.egDateAndTimeFormat}}') %]</div>
- <div>[% l('Slip Date: [_1]', '{{today | date:$root.egDateAndTimeFormat}}') %]</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: </td><td>{{hold.request_time | date:"M/d/yyyy"}}</td></tr>
+ <tr><td> </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: </div>
+ <div ng-if="hold.sms_notify">Notify by text:</div>
+ <div ng-if="hold.email_notify == 't'">Notify by email: </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>
-<!--
-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
-* dest_courier_code - from lib.courier_code library setting
-* 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:$root.egDateAndTimeFormat}}') %]</div>
- <div>[% l('Slip Date: [_1]', '{{today | date:$root.egDateAndTimeFormat}}') %]</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: </td><td>{{copy.barcode}}</td></tr>
+<tr><td>Request Date: </td><td>{{hold.request_time | date:"M/d/yyyy"}}</td></tr>
+</table>
+<hr/>
+<div>{{current_location.shortname}} {{today | date:'short'}}</div>
-<!--
-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:$root.egDateAndTimeFormat}}</div>
- <div>[% l('You were helped by [_1]', '{{staff.first_given_name}}') %]</div>
-<br/>
-
+<hr/>
+<div>{{current_location.shortname}} {{today | date:'short'}}</div>
-<!--
-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>
-* patron - has several fields from the patron object, including a financial summary
-
- * first_given_name
- * second_given_name
- * family_name
- * suffix
- * pref_ versions of all name fields (e.g. pref_family_name);
- * card.barcode
- * money_summary.balance_owed - current balance
- * money_summary.total_paid - payments made on outstanding fines/fees
- * money_summary.total_owed - total of outstanding fines/fees
- * expire_date
- * alias - aka Holds Alias
- * has_email - boolean value to show/hide elements on the receipt
- * has_phone - same as has_email
-
-* circulations - list of current loans, including
-
- * title
- * author
- * call_number.label
- * copy.barcode
- * circ.due_date
-
--->
-<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 | egDueDate:$root.egDateAndTimeFormat:checkout.circ.circ_lib:checkout.circ.duration}}') %]</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:$root.egDateAndTimeFormat}}</div>
- <div>[% l('You were helped by [_1]', '{{staff.first_given_name}}') %]</div>
-<br/>
-
+<hr/>
+<div>{{current_location.shortname}} {{today | date:'short'}}</div>
-<!--
-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 | egDueDate:$root.egDateAndTimeFormat:renewal.circ.circ_lib:renewal.circ.duration}}') %]</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:$root.egDateAndTimeFormat}}</div>
- <div>[% l('You were helped by [_1]', '{{staff.first_given_name}}') %]</div>
-<br/>
-
+<hr/>
+<div>{{current_location.shortname}} {{today | date:'short'}}</div>
* 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:$root.egDateAndTimeFormat}}',
- '{{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/>
-<!--
-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
-* dest_courier_code - from lib.courier_code library setting
-* 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:$root.egDateAndTimeFormat}}') %]</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: </td><td>{{copy.barcode}}</td></tr>
+</table>
+<hr/>
+<div>{{current_location.shortname}} {{today | date:'short'}}</div>