HomeCirculationPrinter Templates : Hold Shelf Slip : what am I doing wrong?

Printer Templates : Hold Shelf Slip : what am I doing wrong?


<!--
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)




-->
<p style="padding-top:30px">
<b>
<font size="5">
{{hold.shelf_expire_time | date:'M/d'}}
<div ng-if="hold.sms_notify"> Notify : T {{hold.sms_notify}}</div>
<div>
<span ng-if="hold.email_notify> Notify : E {{patron.email}}</span>
<span ng-if="!hold.email_notify">
<span ng-if="hold.phone_notify"> Notify : P {{hold.phone_notify}},</span>
<span ng-if="!hold.phone_notify"> Notify : D {{patron.day_phone}},</span>
</div>
<div>
<span ng-if="patron.alias">{{patron.alias}}</span>
<span ng-if="!patron.alias">
<span ng-if="patron.pref_family_name">{{patron.pref_family_name}},</span>
<span ng-if="!patron.pref_family_name">{{patron.family_name}},</span>
<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>
<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>
</div>
</b>
<font size="3">
<div>
<div ng-switch on="hold.behind_desk">
<div ng-switch-when="t">
Route to the <strong>Private Hold Shelf</strong>.
</div>
<div ng-switch-when="f">
Route to the <strong>Hold Shelf</strong>.
</div>
</div>
<br/>
Hold Shelf Expire Date: {{hold.shelf_expire_time | date:'M/d/yyyy'}}<div>
Barcode: {{copy.barcode}}</div>
Title: {{title}}</div>

Call Number: {{call_number.prefix}} {{call_number.label}} {{call_number.suffix}}</div>




<br/>




<div>
<div>Hold for patron:
<span ng-if="patron.alias">{{patron.alias}}</span>
<span ng-if="!patron.alias">
<span ng-if="patron.pref_family_name">{{patron.pref_family_name}},</span>
<span ng-if="!patron.pref_family_name">{{patron.family_name}},</span>
<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>
<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>
</span>
</div>
<div ng-if="hold.sms_notify"> Notify : T {{hold.sms_notify}}</div>
<div>
<span ng-if="hold.email_notify> Notify : E {{patron.email}}</span>
<span ng-if="!hold.email_notify">
<span ng-if="hold.phone_notify"> Notify : P {{hold.phone_notify}},</span>
<span ng-if="!hold.phone_notify"> Notify : D {{patron.day_phone}},</span>
</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>
</span>
</div>
<br/>




<div>Request Date: {{hold.request_time | date:$root.egDateAndTimeFormat}}</div>




<div>Printed: {{today | date:$root.egDateAndTimeFormat}} @ {{current_location.shortname}}</div>
<p style="padding-bottom:160px">
</p>
</div>
Kean | email
Aug 31 2020, 10:16 AM
My test account seems to of not been updating correctly as I changed the information. I finally tried the code below with my supervisor on his account and it worked. I'll be updating my work on my github @ https://github.com/Innarri/EVERGREEN-Print-Templates

<!--
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)


<!--
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)




-->
<p style="padding-top:30px">
<b>
<font size="6">
<div>{{hold.shelf_expire_time | date:'M/d'}} </div>
<div>
<span ng-if="patron.alias">{{patron.alias}}</span>
<span ng-if="!patron.alias">
<span ng-if="patron.pref_family_name">{{patron.pref_family_name}},</span>
<span ng-if="!patron.pref_family_name">{{patron.family_name}},</span>
<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>
<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>
</div>
<div>
Notify :
<span ng-if="hold.phone_notify"> P, </span>
<span ng-if="patron.day_phone"> DP, </span>
<span ng-if="hold.sms_notify"> T, </span>
<span ng-if="hold.email_notify == 't'"> E, </span>
</div>
</b>
<font size="3">
<div>
<div ng-switch on="hold.behind_desk">
<div ng-switch-when="t">
Route to the <strong>Private Hold Shelf</strong>.
</div>
<div ng-switch-when="f">
Route to the <strong>Hold Shelf</strong>.
</div>
</div>
<br/>
Hold Shelf Expire Date: {{hold.shelf_expire_time | date:'M/d/yyyy'}}<div>
Barcode: {{copy.barcode}}</div>
Title: {{title}}</div>

Call Number: {{call_number.prefix}} {{call_number.label}} {{call_number.suffix}}</div>




<br/>




<div>
<div>Hold for patron:
<span ng-if="patron.alias">{{patron.alias}}</span>
<span ng-if="!patron.alias">
<span ng-if="patron.pref_family_name">{{patron.pref_family_name}},</span>
<span ng-if="!patron.pref_family_name">{{patron.family_name}},</span>
<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>
<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>
</span>
</div>
<b>
<div> Notify by : </div>
<div ng-if="hold.phone_notify"> Phone: {{hold.phone_notify}}</div>
<div ng-if="patron.day_phone"> Daytime Phone: {{patron.day_phone}},</div>
<div ng-if="hold.sms_notify"> Text: {{hold.sms_notify}}</div>
<div ng-if="hold.email_notify == 't'"> Email: {{patron.email}}</div>
</b>
<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>
</span>
</div>
<br/>




<div>Request Date: {{hold.request_time | date:$root.egDateAndTimeFormat}}</div>
<div>Printed: {{today | date:$root.egDateAndTimeFormat}} @ {{current_location.shortname}}</div>
<div> PT 2020.09.01</div>
<p style="padding-bottom:160px">
</p>
</div>
Kean | email
1 week, 1 day since original post
Post a Reply






Subscribe to replies via email