]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/opac/record/print.tt2
LP#1721575: Batch Actions In the Public Catalog
[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             [% IF ctx.redirect_to %]
26             <p>[ <a href="[% ctx.redirect_to | html %]">[% l("Return") %]</a> ] </p>
27             [% ELSE %]
28             <p>[ <a href="[% mkurl(ctx.opac_root  _ '/record/' _ ctx.bre_id) %]">[% l("Back to Record") %]</a> ]</p>
29             [% END %]
30         </div>
31     </body>
32 </html>