1 [% PROCESS "default/opac/parts/marc_misc.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'>
26 <a class='search_page_nav_link'
27 href="[% propagator _ '&page=' _ (page - 1) %]"
28 title='[% l("Previous page") %]'>
29 <span class="nav_arrow_fix">◄</span> Previous
33 style='padding-left: 11px; padding-right:11px;'>
36 [% IF (page + 1) < page_count %]
37 <a class='search_page_nav_link'
38 href="[% propagator _ '&page=' _ (page + 1) %]"
39 title='[% l("Next page") %]'>
40 Next <span class="nav_arrow_fix">►</span>
49 [% ctx.results_count_header = PROCESS results_count_header;
50 ctx.results_count_header %]
51 <div id="result_table_div">
52 <table cellpadding="0" cellspacing="0" border="0" width="100%">
54 <td valign="top" width="1" style="padding-right:20px;">
55 <div style="width:174px;" class="hide_me" id="tehSideBar">SIDEBAR TODO
58 <td class='opac-auto-015' width="1"></td>
60 <table id="res_table" cellpadding="0" cellspacing="0"
61 border="0" width="100%" style="margin-top:10px;">
62 <tbody id="result_table">
63 [% FOR rec IN ctx.records;
64 attrs = {marc_xml => rec.marc_xml};
65 PROCESS get_marc_attrs args=attrs %]
67 <td class='result_table_row' align='left' width='100%'>
68 <table cellpadding="0" cellspacing="0" class='result_table_subtable'>
69 <tbody class='result_table_subtbody'>
70 <tr name='counts_row'>
71 <td width="58" valign="top"
72 style="font-weight:bold;padding-left:10px;"
73 name="results_row_count">[%
74 result_count; result_count = result_count + 1
76 <td class='result_table_pic_header'
77 width="78" nowrap="nowrap" valign="top">
78 [% ident = attrs.isbn_clean || attrs.upc; IF ident; %]
79 <a href="[% ctx.opac_root %]/record/[% rec.bre.id _ propagator %]"><img alt="Image of item"
80 name='item_jacket' class='result_table_pic' width="55"
81 src='[% ctx.media_prefix %]/opac/extras/ac/jacket/small/[% ident %]' /></a><br />
84 <td class='result_table_title_cell'
85 name='result_table_title_cell'
88 <a title="[% attrs.title %]" name='item_title'
89 href="[% ctx.opac_root %]/record/[% rec.bre.id _ propagator %]"
90 class='search_link'>[% attrs.title %]</a>
92 <span style="font-size:11px;">
95 <a title="[% l("Perform an Author Search") %]"
97 href="[% ctx.opac_root %]/results?qtype=author&query=[% attrs.author | replace('[,\.:;]', '') | uri %]&loc=[% CGI.param('loc') | uri %]"
98 class='search_link'>[% attrs.author %]</a>
102 <table cellpadding="0" cellspacing="0" border="0"
103 class="results_info_table">
104 <tr name='bib_cn_list' class='result_table_title_cell'>
106 <strong>Call number:</strong>
110 <tr name="results_pub_tr" class="[% attrs.publisher ? '' : 'hide_me' %]">
112 <strong>Publisher:</strong>
114 <td>[% attrs.publisher; %]</td>
116 <tr name="results_isbn_tr" class="[% attrs.isbn ? '' : 'hide_me' %]">
118 <strong>ISBN:</strong>
120 <td>[% attrs.isbn %]</td>
122 <tr name="results_edition_tr" class="[% attrs.edition ? '' : 'hide_me' %]">
124 <strong>Edition:</strong>
126 <td>[% attrs.edition %]</td>
128 <tr name="results_phys_desc_tr" class="[% attrs.phys_desc ? '' : 'hide_me' %]">
129 <td nowrap="nowrap" valign="top">
130 <strong>Phys. Desc.:</strong>
138 [% l('[_1] of [quant,_2,copy,copies] available',
139 rec.copy_counts.available, rec.copy_counts.visible) %]
142 <div class="hide_me">
143 <span name='result_table_extra_span' class='hide_me'>
144 <span name='result_table_pub_box'
145 style='padding-left: 10px;'>
146 <span name='result_table_edition_span'
147 style='padding-left: 10px;'></span> |
148 <span name='result_table_pub_span'> </span> |
149 <span name='result_table_phys_span'> </span>
154 <!-- Copy this td for each copy count appended -->
155 <td nowrap='nowrap' name="copy_count_cell"
156 class='copy_count_cell hide_me' width="1"> </td>
157 <td name='result_table_format_cell'
158 class='result_table_format_cell' align="center" width="1"
159 style="padding:0px 10px;">
160 <img alt="Format" src="" class="hide_me" name="" />
161 <span class='hide_me opac-auto-031'>
162 <span>[% l("Match Score: ") %] </span>
163 <span name='relevancy_span'> </span>
165 <!-- Empty span used for creating unAPI links -->
166 <span class="hide_me">
167 <abbr style='padding-left: 8px;' name="unapi" class="unapi-id">
168 <!-- unAPI URI goes here -->
171 <!-- Empty span used for creating Google Book Search-->
172 <span name="googleBooksLink" class="hide_me">
173 <a style='padding-left: 8px;'
174 class='classic_link hide_me'
175 name="googleBooks-link">[% l("Browse in Google Books Search") %]</a>
178 <td nowrap='nowrap' width="1" align="right">
179 <div style="width:250px;text-align:left;">
180 <div style="float:right;">
181 <div class="results_aux_utils opac-auto-010"><a
182 href="[% ctx.opac_root %]/place_hold[% propagator; propagator.length > 1 ? "&" : ""; %]hold_target=[% rec.bre.id %]&hold_type=T" name="place_hold_link" class="no-dec"><img
183 src="[% ctx.media_prefix %]/images/green_check.png"
184 alt="place hold" /><span
185 style="position:relative;top:-3px;left:3px;">Place Hold</span></a>
187 <div class="results_aux_utils opac-auto-011">
188 [% operation = ctx.mylist.grep(rec.bre.id).size ? "delete" : "add";
189 label = (operation == "add") ? "Add to" : "Remove from"; %]
190 <form action="[% ctx.opac_root %]/mylist/[% operation %]" method="POST">
191 <input type="hidden" name="record" value="[% rec.bre.id %]" />
192 <div style="position:absolute;">
193 <div style="position:relative;top:5px; left: 25px;">
194 <input type="submit" title="[% l(label _ ' my list') %]" value="[% l(label _ ' my list') %]" class="subtle-button" />
198 alt="[% l(label _ ' my list') %]"
199 src="[% ctx.media_prefix %]/images/clipboard.png" />
202 <!-- <div style="padding-top:7px;" class="results_aux_utils">
203 <a title="Reviews and More" target="_blank" class="no-dec"
204 name="reviews_and_more" href="javascript:;"><img
205 alt="reviews & more"
206 src="[% ctx.media_prefix %]/images/starz.png" /> <span
207 style="position:relative;top:-5px;">Reviews & More</span></a>
210 <div style="float:right;margin-right:17px;">
211 [% key = attrs.mattype;
212 format_desc = ctx.find_citm(key).value;
213 icon_filename = icon_by_mattype.$key;
215 <img alt="[% format_desc %]" title="[% format_desc %]"
216 src="[% ctx.media_prefix _ '/images/' _ icon_filename %]" />
222 <!-- Placeholder for ChiliFresh Review -->
223 <tr class="hide_me" name="chilifreshReview">
225 <td valign="top" colspan="5">
226 <div style="position:relative;left:-19px;">
227 <span name="chilifreshReviewLink" class="chili_review"></span>
228 <div name="chilifreshReviewResult" style="display:none"></div>
234 <div style="height:0px;border-top:1px solid #b7b7b7;border-bottom:1px solid #d4d4d4;margin:15px 0px;"></div>
235 <!-- <hr class='opac-auto-013' color="#FFCC33" /> -->
250 [% ctx.results_count_header %]
251 <!-- ChiliFresh XXX script TODO -->