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