1 [% PROCESS "default/opac/parts/misc_util.tt2";
3 ctx.result_start = 1 + ctx.page_size * page;
4 ctx.result_stop = 1 + 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'>
25 [% class = 'search_page_nav_link';
28 href = propagator _ '&page=' _ (page - 1);
29 ELSE; class = class _ ' invisible'; END;
31 <a class='[% class %]' href='[% href %]'
32 title='[% l("Previous page") %]'><span class="nav_arrow_fix">◄</span> Previous </a>
34 style='padding-left: 11px; padding-right:11px;'>
37 [% class = 'search_page_nav_link';
39 IF (page + 1) < page_count;
40 href = propagator _ '&page=' _ (page + 1);
41 ELSE; class = class _ ' invisible'; END;
43 <a class='[% class %]' href='[% href %]'
44 title='[% l("Next page") %]'> Next <span class="nav_arrow_fix">►</span></a>
51 [% ctx.results_count_header = PROCESS results_count_header;
52 ctx.results_count_header %]
53 <div id="result_table_div">
54 <table cellpadding="0" cellspacing="0" border="0" width="100%">
56 <td valign="top" width="1" style="padding-right:20px;">
57 <div style="width:174px;" class="hide_me" id="tehSideBar">SIDEBAR TODO
60 <td class='opac-auto-015' width="1"></td>
62 <table id="res_table" cellpadding="0" cellspacing="0"
63 border="0" width="100%" style="margin-top:10px;">
64 <tbody id="result_table">
65 [% FOR rec IN ctx.records;
66 attrs = {marc_xml => rec.marc_xml};
67 PROCESS get_marc_attrs args=attrs %]
69 <td class='result_table_row' align='left' width='100%'>
70 <table cellpadding="0" cellspacing="0" class='result_table_subtable'>
71 <tbody class='result_table_subtbody'>
72 <tr name='counts_row'>
73 <td width="58" valign="top"
74 style="font-weight:bold;padding-left:10px;"
75 name="results_row_count">[%
76 result_count; result_count = result_count + 1
78 <td class='result_table_pic_header'
79 width="78" nowrap="nowrap" valign="top">
80 [% ident = attrs.isbn_clean || attrs.upc; IF ident; %]
81 <a href="[% ctx.opac_root %]/record/[% rec.id _ propagator %]"><img alt="Image of item"
82 name='item_jacket' class='result_table_pic' width="55"
83 src='[% ctx.media_prefix %]/opac/extras/ac/jacket/small/[% ident %]' /></a><br />
86 <td class='result_table_title_cell'
87 name='result_table_title_cell'
90 <a title="[% attrs.title %]" name='item_title'
91 href="[% ctx.opac_root %]/record/[% rec.id _ propagator %]"
92 class='search_link'>[% attrs.title %]</a>
94 <span style="font-size:11px;">
96 <em><a title="[% l("Perform an Author Search") %]"
98 href="[% ctx.opac_root %]/results?qtype=author&query=[%
99 attrs.author | replace('[,\.:;]', '') | uri %]&loc=[% CGI.param('loc') | uri %]"
100 class='search_link'>[% attrs.author %]</a></em>
104 <table cellpadding="0" cellspacing="0" border="0"
105 class="results_info_table">
106 <tr name='bib_cn_list' class='result_table_title_cell'>
108 <strong>Call number:</strong>[% args.marc_cn %][%# XXX KCLS %]
111 <tr name="results_pub_tr" class="[% attrs.publisher ? '' : 'hide_me' %]">
113 <strong>Publisher:</strong>
115 <td>[% attrs.publisher; %]</td>
117 <tr name="results_isbn_tr" class="[% attrs.isbn ? '' : 'hide_me' %]">
119 <strong>ISBN:</strong>
121 <td>[% attrs.isbn %]</td>
123 <tr name="results_edition_tr" class="[% attrs.edition ? '' : 'hide_me' %]">
125 <strong>Edition:</strong>
127 <td>[% attrs.edition %]</td>
129 <tr name="results_phys_desc_tr" class="[% attrs.phys_desc ? '' : 'hide_me' %]">
130 <td nowrap="nowrap" valign="top">
131 <strong>Phys. Desc.:</strong>
139 [% l('[_1] of [quant,_2,copy,copies] available',
140 attrs.copy_counts.available, attrs.copy_counts.count) # XXX s/count/nshadow/ ?
141 #rec.copy_counts.available, rec.copy_counts.visible)
145 <div class="hide_me">
146 <span name='result_table_extra_span' class='hide_me'>
147 <span name='result_table_pub_box'
148 style='padding-left: 10px;'>
149 <span name='result_table_edition_span'
150 style='padding-left: 10px;'></span> |
151 <span name='result_table_pub_span'> </span> |
152 <span name='result_table_phys_span'> </span>
157 <!-- Copy this td for each copy count appended -->
158 <td nowrap='nowrap' name="copy_count_cell"
159 class='copy_count_cell hide_me' width="1"> </td>
160 <td name='result_table_format_cell'
161 class='result_table_format_cell' width="1">
162 [% IF attrs.format %]
163 <img alt="[% attrs.format %]" src="[% ctx.media_prefix %]/images/[% attrs.format_icon %]" />
165 <span class='hide_me opac-auto-031'>
166 <span>[% l("Match Score: ") %] </span>
167 <span name='relevancy_span'> </span>
169 <!-- Empty span used for creating unAPI links -->
170 <span class="hide_me">
171 <abbr style='padding-left: 8px;' name="unapi" class="unapi-id">
172 <!-- unAPI URI goes here -->
175 <!-- Empty span used for creating Google Book Search-->
176 <span name="googleBooksLink" class="hide_me">
177 <a style='padding-left: 8px;'
178 class='classic_link hide_me'
179 name="googleBooks-link">[% l("Browse in Google Books Search") %]</a>
182 <td nowrap='nowrap' width="1" align="right">
183 <div style="width:250px;text-align:left;">
184 <div style="float:right;">
185 <div class="results_aux_utils opac-auto-010"><a
186 href="[% ctx.opac_root %]/place_hold[% propagator; propagator.length > 1 ? "&" : ""; %]hold_target=[% rec.id %]&hold_type=T" name="place_hold_link" class="no-dec"><img
187 src="[% ctx.media_prefix %]/images/green_check.png"
188 alt="place hold" /><span
189 style="position:relative;top:-3px;left:3px;">Place Hold</span></a>
191 <div class="results_aux_utils opac-auto-011">
192 [% operation = ctx.mylist.grep(rec.id).size ? "delete" : "add";
193 label = (operation == "add") ? "Add to" : "Remove from"; %]
194 <form action="[% ctx.opac_root %]/mylist/[% operation %]" method="POST">
195 <input type="hidden" name="record" value="[% rec.id %]" />
196 <div style="position:absolute;">
197 <div style="position:relative;top:5px; left: 25px;">
198 <input type="submit" title="[% l(label _ ' my list') %]" value="[% l(label _ ' my list') %]" class="subtle-button" />
202 alt="[% l(label _ ' my list') %]"
203 src="[% ctx.media_prefix %]/images/clipboard.png" />
206 <!-- <div style="padding-top:7px;" class="results_aux_utils">
207 <a title="Reviews and More" target="_blank" class="no-dec"
208 name="reviews_and_more" href="javascript:;"><img
209 alt="reviews & more"
210 src="[% ctx.media_prefix %]/images/starz.png" /> <span
211 style="position:relative;top:-5px;">Reviews & More</span></a>
214 <div style="float:right;margin-right:17px;">
215 [% key = attrs.mattype;
216 format_desc = ctx.find_citm(key).value;
217 icon_filename = icon_by_mattype.$key;
219 <img alt="[% format_desc %]" title="[% format_desc %]"
220 src="[% ctx.media_prefix _ '/images/' _ icon_filename %]" />
226 <!-- Placeholder for ChiliFresh Review -->
227 <tr class="hide_me" name="chilifreshReview">
229 <td valign="top" colspan="5">
230 <div style="position:relative;left:-19px;">
231 <span name="chilifreshReviewLink" class="chili_review"></span>
232 <div name="chilifreshReviewResult" style="display:none"></div>
238 <div style="height:0px;border-top:1px solid #b7b7b7;border-bottom:1px solid #d4d4d4;margin:15px 0px;"></div>
239 <!-- <hr class='opac-auto-013' color="#FFCC33" /> -->
254 [% ctx.results_count_header %]
255 <!-- ChiliFresh XXX script TODO -->