]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/opac/record/print.tt2
24cb94ee2730c43008f5cab7c962f7a1e67aa391
[Evergreen.git] / Open-ILS / src / templates / opac / record / print.tt2
1 [% PROCESS 'opac/parts/header.tt2' %]
2 <html>
3     <head>
4         <meta charset="utf-8">
5         <title>[% l('Print Record') %]</title>
6         <style type="text/css" media="print">.noprint {display: none}</style>
7     </head>
8     <body onload="if (document.getElementById('printable-record')) window.print();">
9         [% IF ctx.printable_record.template_output %]
10         <tt id="printable-record">
11             [% ctx.printable_record.template_output.data %]
12         </tt>
13         [% ELSE %]
14         <div class="noprint print-error">
15             [% l(
16                 'Error printing record: [_1]',
17                     (ctx.printable_record.textcode ? ctx.printable_record.textcode _ ' / ' _ ctx.printable_record.desc : 0) ||
18                     ctx.printable_record.error_output.data ||
19                     l('No record data returned from server')
20                 ) | html %]
21         </div>
22         [% END %]
23         <div class='noprint'>
24             <hr />
25             <p>[ <a href="[% mkurl(ctx.opac_root  _ '/record/' _ ctx.bre_id) %]">[% l("Back to Record") %]</a> ]</p>
26         </div>
27     </body>
28 </html>