1 Receipt Content Reference
2 -------------------------
3 indexterm:[web client, receipt template editor]
4 indexterm:[print templates]
5 indexterm:[web client, print templates]
6 indexterm:[receipt template editor]
7 indexterm:[receipt template editor, macros]
8 indexterm:[receipt template editor, checkout]
10 Any Type of Print Template
11 ~~~~~~~~~~~~~~~~~~~~~~~~~~
13 These fields can be used in any Template.
14 |=========================================================
17 |{{current_location.name}} | Current library's full name
18 |{{current_location.shortname}}| Current library's short name
19 |{{current_location.email}} | Current library's email address
20 |{{current_location.phone}} |Current library's phone number
21 |{{includes.alert_text}} |Includes: Alert Text
22 |{{includes.event_text}} |Includes: Event Text
23 |{{includes.footer_text}} |Includes: Footer Text
24 |{{includes.header_text}} |Includes: Header Text
25 |{{includes.notice_text}} |Includes: Notice Text
26 |{{today}} |Today's time and date - raw data
27 |{{today \|date:'short'}} |Readable time and date: 8/1/17 10:18 AM
28 |{{today \|date:'M/d/yyyy'}} |Date only: 8/1/2017
29 |{{staff.first_given_name}} |Staff first name
30 |=========================================================
32 See also: https://docs.angularjs.org/api/ng/filter/date
34 NOTE: For each print template below, the sections that say "Inside ng-repeat loop" indicate that the tag must appear inside the ng-repeat section of the print template and it will only work per item or per bill.
39 |=========================================================
40 |Tag (Inside ng-repeat loop) | Notes
42 |{{xact.summary.balance_owed}} | Balance remaining
43 |{{xact.copy_barcode}} | Item Barcode
44 |{{xact.id}} | Bill ID
45 |{{xact.xact_start}} | Bill start date
46 |{{xact.summary.xact_type}} | Bill type (circulation vs. grocery)
47 |{{xact.summary.last_billing_note}} | Last billing note
48 |{{xact.summary.last_billing_type}} | Last billing type
49 |{{xact.summary.last_payment_note}} | Last payment note
50 |{{xact.summary.last_payment_type}} | Last payment type
51 |{{xact.title}} | Title
52 |{{xact.summary.total_owed}} | Total billed
53 |{{xact.summary.total_paid}} | Total paid
54 |=========================================================
59 |=========================================================
60 |Tag (Inside ng-repeat loop) | Notes
62 |{{xact.id}} | Bill ID
63 |{{xact.title}} | Title
64 |{{xact.copy_barcode}} | Barcode
65 |{{xact.summary.balance_owed}} | Balance remaining
66 |{{xact.summary.xact_type}} | Bill type (circulation vs. grocery)
67 |{{xact.summary.last_billing_type}} | Last billing type
68 |{{xact.summary.total_owed}} | Total billed
69 |{{xact.summary.total_paid|currency}}| Total paid
70 |{{xact.xact_start}} | Billing Start Date and Time
71 |{{xact.xact_finish}} | Billing Finish Date and Time
72 |{{xact.summary.last_billing_note}} | Last billing note
73 |{{xact.summary.last_billing_type}} | Last billing type
74 |{{xact.summary.last_payment_note}} | Last payment note
75 |{{xact.summary.last_payment_type}} | Last payment type
76 |{{xact.summary.total_owed}} | Total billed
77 |{{xact.summary.total_paid}} | Total paid
78 |=========================================================
83 |=========================================================
86 |{{patron.first_given_name}} | Patron First Name
87 |{{patron.second_given_name}} | Patron Middle Name
88 |{{patron.family_name}} | Patron Last Name
89 |{{patron.suffix}} | Patron Name Suffix
90 |{{patron.card.barcode}} | Patron Barcode
91 |{{patron.expire_date}} | Account Expiration Date
92 |{{patron.alias}} | Alias
93 |{{patron.has_email}} | Has email? (true or false)
94 |{{patron.has_phone}} | Has phone? (true or false)
95 |{{payment_applied}} | Payment amount applied to bills
96 |{{payment_total}} | Payment total (if using this, also use change_given)
97 |{{change_given}} | Change given (if using this, also use payment_total)
98 |{{payment_note}} | Payment note
99 |{{payment_type}} | Payment type
100 |{{amount_voided}} | Amount voided
101 |<div ng-switch="payment_type"><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>| Payment type better display
102 |{{previous_balance}} | Previous balance
103 |{{new_balance}} | Remaining balance
104 |=========================================================
106 |=========================================================
107 |Tag (Inside ng-repeat loop) | Notes
109 |{{payment.xact.copy_barcode}} | Barcode
110 |{{payment.xact.summary.last_billing_type}}| Last billing type
111 |{{payment.xact.id}} | Payment ID
112 |{{payment.amount}} | Payment received
113 |{{payment.xact.title}} | Title
114 |=========================================================
119 |=========================================================
120 |Tag (Inside ng-repeat loop) | Notes
122 |{{checkin.copy_barcode}} | Barcode
123 |{{checkin.call_number.label\||"Not Cataloged"}}| Call Number (if no call number, displays "Not Cataloged")
124 |{{checkin.title}} | Title
125 |=========================================================
130 |=========================================================
133 |{{patron.first_given_name}} | Patron First Name
134 |{{patron.second_given_name}} | Patron Middle Name
135 |{{patron.family_name}} | Patron Last Name
136 |{{patron.suffix}} | Patron Name Suffix
137 |{{patron.card.barcode}} | Patron Barcode
138 |{{patron.expire_date}} | Account Expiration Date
139 |{{patron.money_summary.balance_owed}} | Amount Owed
140 |{{patron.alias}} | Alias
141 |{{patron.has_email}} | Has email? (true or false)
142 |{{patron.has_phone}} | Has phone? (true or false)
143 |=========================================================
145 |=========================================================
146 |Tag (Inside ng-repeat loop) | Notes
148 |{{checkout.author}} | Author
149 |{{checkout.copy_barcode}} | Barcode
150 |{{checkout.call_number.label}} | Call Number
151 |{{checkout.circ.due_date}} | Due Date
152 |{{checkout.copy.price}} | Price
153 |{{checkout.title}} | Title
154 |=========================================================
159 |=========================================================
160 |Tag (Inside ng-repeat loop) | Notes
162 |{{hold_data.author}} | Author
163 |{{hold_data.copy.barcode}} | Barcode
164 |{{hold_data.volume.label}} | Call number
165 |{{hold_data.hold.hold_type}} | Hold type
166 |{{hold_data.part.label}} | Part
167 |{{hold_data.copy.location.name}} | Shelving location
168 |{{hold.title}} | Title
169 |=========================================================
174 |=========================================================
177 |{{call_number.label}} | Call Number
178 |{{today}} | Hold available date
179 |<div ng-switch on="hold.behind_desk"><div ng-switch-when="t"><strong>Private - Hold Behind Desk</strong></div><div ng-switch-when="f"><strong>Public Holds Shelf</strong></div></div>| Hold location (Hold behind desk or public holds shelf)
180 |<ol><li ng-repeat="note in hold_notes\|filter: {slip : 't'}"><strong>{{note.title}}</strong><br/>{{note.body}}</li></ol>| Hold Notes
181 |{{hold.request_time \| date:'M/d/yyyy'}} | Hold request date
182 |{{hold.shelf_expire_time \| date:'M/d/yyyy'}}| Hold shelf expire date
183 |{{author}} | Item author
184 |{{copy.barcode}} | Item barcode
185 |{{title}} | Item title
186 |{{hold.email_notify}} | Returns true or false flag
187 |{{hold.phone_notify}} | Notification phone number
188 |{{hold.sms_notify}} | Notification SMS text number
189 |{{patron.card.barcode}} | Patron barcode
190 |{{patron.email}} | Patron email address
191 |{{patron.first_given_name}} | Patron First Name
192 |{{patron.second_given_name}} | Patron Middle Name
193 |{{patron.family_name}} | Patron Lsst Name
194 |{{patron.pref_first_given_name}} | Preferred First Name
195 |{{patron.pref_second_given_name}} | Preferred Middle Name
196 |{{patron.pref_family_name}} | Preferred Last Name
197 |{{patron.alias}} | Patron alias
198 |{{patron.pref_family_name}} | Patron Preferred Last Name
199 |{{patron.pref_first_given_name}} | Patron Preferred First Name
200 |{{patron.pref_second_given_name}} | Patron Preferred Middle Name
201 |=========================================================
204 The following will show the preferred name in place of the standard name, if no preferred name is given, than uses the standard name.
206 <span ng-if="patron.pref_family_name">{{patron.pref_family_name}}</span><span ng-if="!patron.pref_family_name">{{patron.family_name}}</span>,
207 <span ng-if="patron.pref_first_given_name">{{patron.pref_first_given_name}}</span><span ng-if="!patron.pref_first_given_name">{{patron.first_given_name}}</span>
208 <span ng-if="patron.pref_second_given_name">{{patron.pref_second_given_name}}</span><span ng-if="!patron.pref_second_given_name">{{patron.second_given_name}}</span>
215 |=========================================================
218 |{{dest_address.city}} | Destination city
219 |{{dest_courier_code}} | Destination courier code
220 |{{dest_location.name}} | Destination full name
221 |{{dest_location.shortname}} | Destination short name
222 |{{dest_address.state}} | Destination state
223 |{{dest_address.street1}} | Destination street address 1
224 |{{dest_address.street2}} | Destination street address 2
225 |{{dest_address.post_code}} | Destination zip code
226 |{{hold.behind_desk}} | Hold behind desk
227 |{{hold.request_time}} | Hold request date
228 |{{author}} | Item author
229 |{{copy.barcode}} | Item barcode
230 |{{title}} | Item title
231 |{{hold.email_notify}} | Notification email (t or f)
232 |{{patron.email}} | Notification email address
233 |{{hold.phone_notify}} | Notification phone number
234 |{{hold.sms_notify}} | Notification SMS text number
235 |{{patron.card.barcode}} | Patron barcode
236 |{{patron.first_given_name}} | Patron First Name
237 |{{patron.family_name}} | Patron Last Name
238 |{{patron.second_given_name}} | Patron Middle Name
239 |=========================================================
244 |=========================================================
247 |{{holds[0].title}} | Title
248 |=========================================================
250 |=========================================================
251 |Tag (Inside ng-repeat loop) | Notes
253 |{{hold_data.author}} | Author
254 |{{hold.copy.barcode}} | Hold target copy barcode
255 |{{hold.hold.request_time}} | Hold request date
256 |{{hold.patron_barcode}} | Patron barcode
257 |{{hold.patron_alias}} | Patron hold alias
258 |{{hold.patron_last}} | Patron Last Name
259 |=========================================================
264 |=========================================================
265 |Tag (Inside ng-repeat loop) | Notes
267 |{{hold.author}} | Author
268 |<div ng-if="hold.hold.email_notify == 't'"> {{hold.hold.requestor.email}}</div> | Notify by email (shows email only if selected)
269 |{{hold.hold.phone_notify}} | Notify by phone (shows number)
270 |{{hold.hold.sms_notify}} | Notify by SMS text (shows number)
271 |{{hold.hold.pickup_lib.name}} | Pickup library
272 |{{hold.hold.request_time}} | Request date
273 |{{hold.title}} | Title
274 |=========================================================
280 |=========================================================
281 |Tag (Inside ng-repeat loop) | Notes
283 |{{ihu.copy.barcode}} | Barcode
284 |{{ihu.num_uses}} | Number of uses
285 |=========================================================
290 |=========================================================
293 |{{copy.barcode}} | Barcode
294 |{{copy['call_number.record.simple_record.title']}}| Title
295 |=========================================================
300 |=========================================================
303 |{{patron.first_given_name}} | Patron First Name
304 |{{patron.second_given_name}} | Patron Middle Name
305 |{{patron.family_name}} | Patron Last Name
306 |{{patron.suffix}} | Patron Name Suffix
307 |{{patron.card.barcode}} | Patron Barcode
308 |{{patron.expire_date}} | Account Expiration Date
309 |{{patron.money_summary.balance_owed}} | Amount Owed
310 |{{patron.alias}} | Alias
311 |{{patron.has_email}} | Has email? (true or false)
312 |{{patron.has_phone}} | Has phone? (true or false)
313 |=========================================================
315 |=========================================================
316 |Tag (Inside ng-repeat loop) | Notes
318 |{{checkout.copy.barcode}} | Barcode
319 |{{checkout.circ.due_date}} | Due date
320 |{{checkout.title}} | Title
321 |=========================================================
326 |=========================================================
329 |{{patron.first_given_name}} | Patron First Name
330 |{{patron.second_given_name}} | Patron Middle Name
331 |{{patron.family_name}} | Patron Last Name
332 |{{address.street1}} | Street address 1
333 |{{address.street2}} | Street address 2
334 |{{address.city}} | City
335 |{{address.state}} | State
336 |{{address.post_code}} | Zip code
337 |=========================================================
342 |=========================================================
345 |{{patron.prefix}} | Patron name prefix
346 |{{patron.first_given_name}} | Patron First Name
347 |{{patron.second_given_name}} | Patron Middle Name
348 |{{patron.family_name}} | Patron Last Name
349 |{{patron.suffix}} | Patron Name suffix
350 |{{patron.card.barcode}} | Patron barcode
351 |{{patron.usrname}} | Patron user name
352 |{{patron.alias}} | Patron holds alias
353 |{{patron.dob /| date:'M/d/yyyy'}} | Date of birth (formatted)
354 |{{patron.juvenile}} | Is patron juvenile? (t or f)
355 |{{patron.ident_type.name()}} | Primary identification type
356 |{{patron.ident_value}} | Primary identification value
357 |{{patron.ident_value2}} | Parent/guardian
358 |{{patron.email}} | Email address
359 |{{patron.day_phone}} | Main/day phone number
360 |{{patron.evening_phone}} | Evening phone number
361 |{{patron.other_phone}} | Other phone number
362 |{{patron.home_ou.name()}} | Home library
363 |{{patron.profile.name()}} | Permission group (profile type)
364 |{{patron.expire_date /| date:'M/d/yyyy'}} | Expiration date (formatted)
365 |{{patron.master_account}} | Is group lead account? (t or f)
366 |{{patron.claims_returned_count}} | Claims returned count
367 |{{patron.net_access_level.name()}} | Internet access level
368 |{{patron.alert_message}} | Alert message
369 |{{patron.pref_family_name}} | Patron Preferred Last Name
370 |{{patron.pref_first_given_name}} | Patron Preferred First Name
371 |{{patron.pref_second_given_name}} | Patron Preferred Middle Name
372 |=========================================================
374 |=========================================================
375 |Tags in repeatable address block | Notes
377 |{{address.address_type}} | Address type
378 |{{address.street1}} | Street (1)
379 |{{address.street2}} | Street (2)
380 |{{address.city}} | City
381 |{{address.state}} | State
382 |{{address.post_code}} | Zip code
383 |{{address.county}} | County
384 |{{address.country}} | Country
385 |{{address.valid}} | Is address valid? (t or f)
386 |{{address.within_city_limits}} | Is address within city limits? (t or f)
387 |=========================================================
389 |=========================================================
390 |Tags in repeatable stat cats block | Notes
392 |{{entry.stat_cat.name}} | Stat cat name
393 |{{entry.stat_cat_entry}} | Stat cat value
394 |=========================================================
400 |=========================================================
403 |{{note.value}} |Note contents
404 |{{note.create_date}} |Note creation date
405 |{{note.title}} |Note title
406 |{{note.usr.card.barcode}} |Patron barcode
407 |{{note.usr.first_name}} |Patron First Name
408 |{{note.usr.family_name}} |Patron Last Name
409 |{{note.usr.second_given_name}} |Patron Middle Name
410 |=========================================================
415 |=========================================================
416 |Tag (Inside ng-repeat loop) |Notes
418 |{{renewal.copy.barcode}} |Barcode
419 |{{renewal.circ.due_date}} |Due date
420 |{{renewal.title}} |Title
421 |=========================================================
426 |=========================================================
427 |Tag (Inside ng-repeat loop) |Notes
429 |{{transit.target_copy.barcode}} |Barcode
430 |{{transit.source_send_time}} |Date sent
431 |{{transit.dest.shortname}} |Short name of destination library
432 |{{transit.source.shortname}} |Short name of sending library
433 |{{transit.target_copy.call_number.record.simple_record.title}}|Title
434 |=========================================================
439 |=========================================================
442 |{{dest_address.city}} |Destination city
443 |{{dest_courier_code}} |Destination courier code
444 |{{dest_location.name}} |Destination full name
445 |{{dest_location.shortname}} |Destination short name
446 |{{dest_address.state}} |Destination state
447 |{{dest_address.street1}} |Destination street address 1
448 |{{dest_address.street2}} |Destination street address 2
449 |{{dest_address.post_code}} |Destination zip code
450 |{{author}} |Item author
451 |{{copy.barcode}} |Item barcode
452 |{{title}} |Item title
453 |=========================================================