Added call number to various dialogs and printtemplates
that lacked them.
Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
<span>[% l('Author:') %]</span>
<span>{{author}}</span>
</div>
+ <div>
+ <span>[% l('Call Number:') %]</span>
+ <span>{{call_number.prefix}} {{call_number.label}} {{call_number.suffix}}</span>
+ </div>
<br/>
<div>
<span>[% l('Author:') %]</span>
<span>{{author}}</span>
</div>
+ <div>
+ <span>[% l('Call Number:') %]</span>
+ <span>{{call_number.prefix}} {{call_number.label}} {{call_number.suffix}}</span>
+ </div>
<div ng-if="patron">
<br/>
<div>[% |l %]
<!--
Template for printing hold request slips. Fields include:
+* call_number.label/prefix/suffix
* hold.behind_desk
* copy.barcode
* title
[% 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/>
var print_context = {
copy : egCore.idl.toHash(evt.payload.copy),
title : evt.title,
- author : evt.author
- }
+ author : evt.author,
+ call_number : egCore.idl.toHash(evt.payload.volume)
+ };
+
+ var acn = print_context.call_number; // fix up pre/suffixes
+ if (acn.prefix == -1) acn.prefix = "";
+ if (acn.suffix == -1) acn.suffix = "";
if (data.transit) {
// route_dialog includes the "route to holds shelf"