3 #body_table { width: 100%; margin-top: 20px; }
4 #left_block { width: 15%; vertical-align: top; }
5 #right_block { width: auto; vertical-align: top;}
6 #record_table { border-collapse: collapse; width:100%; }
7 #record_table td { padding: 3px; border-bottom: 1px solid #ddd; }
8 #record_table tr:nth-child(odd) { background-color:#ded; }
9 #form_div { text-align: center; width: 100%; margin-top: 10px;}
10 #links_div { margin-bottom: 10px; padding: 5px;}
17 WRAPPER "default/opac/base.tt2";
18 PROCESS "default/opac/common.tt2";
19 ctx.page_title = "Results";
20 page = CGI.param('page') || 0;
21 query = CGI.param('query');
22 page_count = POSIX.ceil(ctx.hit_count / ctx.page_size);
26 <form action='./results' method='GET'>
27 <input type='text' name='query' size='50' value='[% query %]'/>
28 <input type='submit'/>
29 <input type='hidden' name='page' value='0'/>
33 <table id='body_table'>
38 <div><a href='home'>Home</a></div>
39 <div><a href='myopac'>Account</a></div>
40 <div><a href='logout'>Logout</a></div>
44 <tr><td colspan='2' style='border-bottom:1px solid #9A9'>Signed in as [% ctx.user.usrname %]</td></tr>
45 <tr><td>Total Holds</td><td>[% ctx.user_stats.holds.total %]</td></tr>
46 <tr><td>Ready Holds</td><td>[% ctx.user_stats.holds.ready %]</td></tr>
47 <tr><td>Items Out</td><td>[% ctx.user_stats.checkouts.out %]</td></tr>
48 <tr><td>Fines</td><td>$[% ctx.user_stats.fines.balance_owed %]</td></tr>
52 login = CGI.url("-path" => 1).replace('^http:', 'https:').replace('/results','/login');
53 origin = CGI.url("-absolute" => 1, "-path" => 1, "-query" => 1) | uri
55 <a href='[% login _ '?origin=' _ origin %]'>Login</a>
59 [% FOR facet_type IN ctx.search_facets.keys %]
60 <b>[% facet_type %]</b>
62 [% FOR facet IN ctx.search_facets.$facet_type.keys %]
63 <li>[% facet %] / [% ctx.search_facets.$facet_type.$facet %]</li>
71 <span>Hits: [% ctx.hit_count %] / Page [% page + 1 %] of [% page_count %]</span>
72 <a [% IF page > 0 %] href='?page=[% page - 1 %]&query=[% query | uri %]' [% END %]>Prev</a>
73 <a [% IF (page + 1) < page_count %] href='?page=[% page + 1 %]&query=[% query | uri %]' [% END %]>Next</a>
75 <table id='record_table'>
77 FOR rec IN ctx.records;
78 attrs = {marc_xml => rec.marc_xml};
79 PROCESS get_marc_attrs args=attrs;
82 <td style='width:52px;height:72px'>
84 <img width='50' height='70' src='/opac/extras/ac/jacket/small/[% attrs.isbn_clean || attrs.upc %]'/>
89 <a href='rdetail?record=[% rec.bre.id %]'>[% attrs.title %]</a>
90 <span style='padding-left:10px;'>[% rec.copy_counts.available %] / [% rec.copy_counts.visible %]</span>
92 <div>[% attrs.author %]</div>
93 <div>[% attrs.isbn || attrs.issn || attrs.upc %] [% attrs.publisher %] [% attrs.pubdate %]</div>