1 [% PROCESS "default/opac/parts/misc_util.tt2";
3 ctx.result_start = 1 + ctx.page_size * page;
4 ctx.result_stop = ctx.page_size * (page + 1);
5 IF ctx.result_stop > ctx.hit_count; ctx.result_stop = ctx.hit_count; END;
7 result_count = ctx.result_start;
9 <div style="height: 10px;"></div>
10 [% BLOCK results_count_header %]
11 <div class="results_header_nav1">
12 <table cellpadding="0" cellspacing="0" border="0" width="100%">
14 <td class="h1" width="116">[% l('Search Results') %]</td>
15 <td valign="bottom" nowrap="nowrap" class="result_number">
16 [% |l(ctx.result_start, ctx.result_stop, ctx.hit_count) %]
17 Results <strong>[_1]</strong> - <strong>[_2]</strong> of <strong>[_3]</strong>
19 <span style='padding-left: 6px;'>
20 [% |l(page + 1, page_count) %](page <strong>[_1]</strong> of <strong>[_2]</strong>)[% END %]
23 <td align="right" valign="bottom">
24 <span class='start_end_links_span'>
26 [% class = 'search_page_nav_link';
29 href = mkurl('', {page => page - 1});
30 ELSE; class = class _ ' invisible'; END;
32 <a class='[% class %]' href='[% href %]'
33 title='[% l("Previous page") %]'><span class="nav_arrow_fix">◄</span> [% l('Previous') %] </a>
35 <span style='padding-left: 11px; padding-right:11px;'>
36 [% # show links to 4 previous pages, the current page, and 3 more pages.
39 WHILE (pageitr = pageitr + 1) < page_count;
40 IF pageitr < 0; NEXT; END;
41 IF pageitr == page; %]
42 <span class='results-paginator-selected'>[% pageitr + 1%]</span>
44 <a href="[% mkurl('', {page => pageitr}) %]">[% pageitr + 1%]</a>
47 IF added == 8; LAST; END;
52 [% class = 'search_page_nav_link';
54 IF (page + 1) < page_count;
55 href = mkurl('', {page => page + 1});
56 ELSE; class = class _ ' invisible'; END;
58 <a class='[% class %]' href='[% href %]'
59 title='[% l("Next page") %]'> [% l('Next') %] <span class="nav_arrow_fix">►</span></a>
66 [% ctx.results_count_header = PROCESS results_count_header;
67 ctx.results_count_header %]
68 <div id="result_table_div">
69 <table cellpadding="0" cellspacing="0" border="0" width="100%">
71 <td valign="top" width="1" style="padding-right:20px;">
72 <div style="width:174px;" class="hide_me" id="tehSideBar">SIDEBAR TODO
75 <td class='opac-auto-015' width="1"></td>
77 <table id="res_table" cellpadding="0" cellspacing="0"
78 border="0" width="100%" style="margin-top:10px;">
79 <tbody id="result_table">
80 [% FOR rec IN ctx.records;
81 attrs = {marc_xml => rec.marc_xml};
82 PROCESS get_marc_attrs args=attrs %]
84 <td class='result_table_row' align='left' width='100%'>
85 <table cellpadding="0" cellspacing="0" class='result_table_subtable'>
86 <tbody class='result_table_subtbody'>
87 <tr name='counts_row'>
88 <td width="58" valign="top"
89 style="font-weight:bold;padding-left:10px;"
90 name="results_row_count">[%
91 result_count; result_count = result_count + 1
93 <td class='result_table_pic_header' align='center'
94 width="78" nowrap="nowrap" valign="top">
95 [% ident = attrs.isbn_clean || attrs.upc; IF ident; %]
96 <a href="[% mkurl(ctx.opac_root _ '/record/' _ rec.id) %]"><img alt="[% l('Image of item') %]"
97 name='item_jacket' class='result_table_pic' width="55"
98 src='[% ctx.media_prefix %]/opac/extras/ac/jacket/small/[% ident %]' /></a><br />
101 <td class='result_table_title_cell'
102 name='result_table_title_cell'
105 <a title="[% attrs.title %]" name='item_title'
106 href="[% mkurl(ctx.opac_root _ '/record/' _ rec.id) %]"
107 class='search_link'>[% attrs.title | html_entity%]</a>
109 <div style="font-size:11px;">
111 <em><a title="[% l("Perform an Author Search") %]"
114 authorquery = attrs.author | replace('[,\.:;]', '');
115 mkurl(ctx.opac_root _ '/results', {qtype => 'author', query => authorquery})
116 -%]">[% attrs.author | html_entity %]</a></em>
120 <table cellpadding="0" cellspacing="0" border="0"
121 class="results_info_table">
122 <tr name='bib_cn_list' class='result_table_title_cell'>
124 <strong>[% l('Call number:') %]</strong>
126 <td>[% args.holdings.0 %]</td>
128 <tr name="results_pub_tr" class="[% attrs.publisher ? '' : 'hide_me' %]">
130 <strong>[% l('Publisher:') %]</strong>
132 <td>[% attrs.publisher; %]</td>
134 <tr name="results_isbn_tr" class="[% attrs.isbns.0 ? '' : 'hide_me' %]">
136 <strong>[% l('ISBN:') %]</strong>
138 <td>[% attrs.isbns.0 %]</td>
140 <tr name="results_edition_tr" class="[% attrs.edition ? '' : 'hide_me' %]">
142 <strong>[% l('Edition:') %]</strong>
144 <td>[% attrs.edition %]</td>
146 <tr name="results_phys_desc_tr" class="[% attrs.phys_desc ? '' : 'hide_me' %]">
147 <td nowrap="nowrap" valign="top">
148 <strong>[% l('Phys. Desc.:') %]</strong>
156 [% l('[_1] of [quant,_2,copy,copies] available',
157 attrs.copy_counts.available, attrs.copy_counts.count) # XXX s/count/nshadow/ ?
158 #rec.copy_counts.available, rec.copy_counts.visible)
162 <div class="hide_me">
163 <span name='result_table_extra_span' class='hide_me'>
164 <span name='result_table_pub_box'
165 style='padding-left: 10px;'>
166 <span name='result_table_edition_span'
167 style='padding-left: 10px;'></span> |
168 <span name='result_table_pub_span'> </span> |
169 <span name='result_table_phys_span'> </span>
175 <td name='result_table_format_cell' class='result_table_format_cell' width="1">
177 [% IF attrs.format_icon %]
178 <img title="[% attrs.format_label %]" alt="[% attrs.format_label %]" src="[% attrs.format_icon %]" />
182 <abbr class="unapi-id" title='tag:[% ctx.hostname %],[% date.format(date.now, '%Y') %]:biblio-record_entry/[% rec.id %]'></abbr>
184 <!-- Empty span used for creating Google Book Search-->
185 <span name="googleBooksLink" class="hide_me">
186 <a style='padding-left: 8px;'
187 class='classic_link hide_me'
188 name="googleBooks-link">[% l("Browse in Google Books Search") %]</a>
192 <td nowrap='nowrap' width="1" align="right">
193 <div style="width:250px;text-align:left;">
194 <div style="float:right;">
195 <div class="results_aux_utils opac-auto-010"><a
196 href="[% mkurl(ctx.opac_root _ '/place_hold', {hold_target => rec.id, hold_type => 'T'}) %]"
197 name="place_hold_link" class="no-dec"><img
198 src="[% ctx.media_prefix %]/images/green_check.png"
199 alt="[% l('Place hold') %]"/><span style="position:relative;top:-3px;left:3px;">[% l('Place Hold') %]</span></a>
201 <div class="results_aux_utils opac-auto-011">
202 [% operation = ctx.mylist.grep(rec.id).size ? "delete" : "add";
203 label = (operation == "add") ? l("Add to") : l("Remove from"); %]
204 <form action="[% ctx.opac_root %]/mylist/[% operation %]" method="POST">
205 <input type="hidden" name="record" value="[% rec.id %]" />
206 <div style="position:absolute;">
207 <div style="position:relative;top:5px; left: 25px;">
208 <input type="submit" title="[% '[_1] my list' | l(label) %]"
209 value="[% '[_1] my list' | l(label) %]" class="subtle-button" />
213 alt="[% '[_1] my list' | l(label) %]"
214 src="[% ctx.media_prefix %]/images/clipboard.png" />
223 <td align='center'> <!-- Chilifresh reviews link -->
224 <div class="chili_review" id="isbn_[% attrs.isbn_clean %]"> </div>
229 <td colspan='5'> <!-- Chilifrehs reviews panel -->
230 <div id="chili_review_[% attrs.isbn_clean %]" style="display: none;" align="center" width="100%"></div>
233 <tr><td colspan="5"><div style="height:0px;border-top:1px solid #b7b7b7;border-bottom:1px solid #d4d4d4;margin:15px 0px;"></div></td></tr>
246 [% ctx.results_count_header %]