1 [% PROCESS "opac/parts/misc_util.tt2";
5 ctx.result_start = 1 + ctx.page_size * page;
6 ctx.result_stop = ctx.page_size * (page + 1);
7 IF ctx.result_stop > ctx.hit_count; ctx.result_stop = ctx.hit_count; END;
9 result_count = ctx.result_start;
13 [% PROCESS "opac/parts/result/paginate.tt2" %]
14 [% ctx.results_count_header = PROCESS results_count_header;
15 ctx.results_count_header %]
17 <div id="result-bookbag-heading">
18 <div class="result-bookbag-name">[% ctx.bookbag.name | html %]</div>
19 <div class="result-bookbag-description">[% ctx.bookbag.description | html %]</div>
22 <div id="result_table_div">
23 <div class="facet_sidebar_hidden" id="facet_sidebar">
24 [% INCLUDE "opac/parts/staff_saved_searches.tt2" %]
25 [% INCLUDE 'opac/parts/result/facets.tt2' %]
27 <div id="result_block" class="result_block_visible">
28 <table cellpadding="0" cellspacing="0"
29 border="0" style="margin-top:10px;">
30 <tbody id="result_table">
31 [% FOR rec IN ctx.records;
32 attrs = {marc_xml => rec.marc_xml};
33 PROCESS get_marc_attrs args=attrs;
34 IF CGI.param('detail_record_view');
35 attrs.title = attrs.title_extended;
38 <tr class="result_table_row">
39 <td class="results_row_count" name="results_row_count">[%
40 result_count; result_count = result_count + 1
42 <td class='result_table_pic_header'>
43 <a href="[% mkurl(ctx.opac_root _ '/record/' _ rec.id) %]"><img alt="[% l('Image of item') %]"
44 name='item_jacket' class='result_table_pic' width="55"
45 src='[% ctx.media_prefix %]/opac/extras/ac/jacket/small/r/[% rec.id | uri %]' /></a><br />
47 <td class='result_table_title_cell' name='result_table_title_cell'>
48 <div class="result_metadata">
49 <abbr class="unapi-id" title='tag:[% ctx.hostname %],[% date.format(date.now, '%Y') %]:biblio-record_entry/[% rec.id %]'></abbr>
50 <a class='record_title' name='record_[% rec.id %]' name='item_title'
51 href="[% mkurl(ctx.opac_root _ '/record/' _ rec.id) %]"
52 [% HTML.attributes(title => l('Display record details for "[_1]"', attrs.title)) %]
53 class='search_link'>[% attrs.title | html %]</a>
55 FOR entry IN attrs.graphic_titles;
56 FOR alt IN entry.graphic;
59 diratt = ' dir="' _ alt.dir _ '"';
62 <div class="graphic880"[% diratt %]>
63 [% alt.value | html %]
71 <a title="[% l("Perform an Author Search") %]"
72 class="record_author" name='item_author'
74 authorquery = attrs.author | replace('[#"^$\+\-,\.:;&|\[\]()]', ' ');
75 mkurl(ctx.opac_root _ '/results', {qtype => 'author', query => authorquery}, ['page'])
76 -%]">[% attrs.author | html %]</a>
78 FOR entry IN attrs.graphic_authors;
79 FOR alt IN entry.graphic;
82 diratt = ' dir="' _ alt.dir _ '"';
85 <div class="graphic880"[% diratt %]>
86 [% alt.value | html %]
94 <div id='bib_format' class='result_table_title_cell'>
95 [%- IF attrs.format_label; %]
96 <img title="[% attrs.format_label | html %]" alt="[% attrs.format_label | html %]" src="[% attrs.format_icon %]" /> [% attrs.format_label; %]
98 [%- UNLESS CGI.param('detail_record_view')
99 OR (show_more_details.default == 'true'
100 OR show_more_details.default == 'hide');
102 pubdate_clean = attrs.pubdate | html;
103 l(" ([_1])", pubdate_clean);
108 <span name="googleBooksLink" class="hide_me">
109 <a style='padding-left: 8px;'
110 class='classic_link hide_me'
111 name="googleBooks-link">[% l("Browse in Google Books Search") %]</a>
113 <table cellpadding="0" cellspacing="0" border="0"
114 class="results_info_table">
115 [% IF args.holdings.size > 0 %]
116 <tr name='bib_cn_list' class='result_table_title_cell'>
118 <strong>[% l('Call number:') %]</strong>
120 <td>[% args.holdings.0.label | html %]</td>
124 [% IF CGI.param('detail_record_view') %]
125 <!-- These fields are visible when viewing the results page in 'detailed' mode -->
127 [% IF attrs.pubinfo %]
128 <tr name="results_pub_tr">
130 <strong>[% l('Publisher:') %]</strong>
132 <td>[% attrs.pubinfo | html %]
134 FOR entry IN attrs.graphic_pubinfos;
135 FOR alt IN entry.graphic;
138 diratt = ' dir="' _ alt.dir _ '"';
141 <div class="graphic880"[% diratt %]>
142 [% alt.value | html %]
151 [% IF attrs.isbns.size > 0 %]
152 <tr name="results_isbn_tr">
154 <strong>[% l('ISBN:') %]</strong>
156 <td>[% attrs.isbns.0 | html %]</td>
159 [%- IF attrs.issns.size > 0 %]
160 <tr name="results_issn_tr">
162 <strong>[% l('ISSN:') %]</strong>
164 <td>[% attrs.issns.0 | html %]</td>
167 [%- IF openurl.enabled == 'true';
168 FOREACH issn IN args.issns;
170 res_urls = ResolverResolver.resolve_issn(issn, openurl.baseurl);
171 FOREACH res IN res_urls;
173 <tr name="results_issn_tr">
175 <strong><a href="[% res.target_url %]">
176 [% res.public_name | html %]</a></strong>
178 <td>[% res.target_coverage | html %]</td>
184 [% IF attrs.edition %]
185 <tr name="results_edition_tr">
187 <strong>[% l('Edition:') %]</strong>
189 <td>[% attrs.edition | html %]
191 FOR entry IN attrs.graphic_editions;
192 FOR alt IN entry.graphic;
195 diratt = ' dir="' _ alt.dir _ '"';
198 <div class="graphic880"[% diratt %]>
199 [% alt.value | html %]
208 [% IF attrs.phys_desc %]
209 <tr name="results_phys_desc_tr">
210 <td nowrap="nowrap" valign="top">
211 <strong>[% l('Phys. Desc.:') %]</strong>
214 [% args.phys_desc | html %]
218 [% FOR uri IN args.uris %]
219 <tr name='bib_uri_list' class='result_table_title_cell'>
221 <strong>[% l('Electronic resource') %]</strong>
223 <td><a href="[% uri.href %]">[% uri.link | html %]</a>[% ' - ' _ uri.note | html IF uri.note %]</td>
226 [%- IF args.holdings.size > 0;
227 FOREACH copy IN args.holdings;
228 IF copy.part_label != '';
234 <tr name='bib_cn_list' class='result_table_title_cell'>
236 <table class='result_holdings_table'>
238 <th>[% l('Library') %]</th>
239 <th>[% l('Shelving location') %]</th>
240 <th>[% l('Call number') %]</th>
241 [%- IF has_parts == 'true'; %]
242 <th>[% l('Part') %]</th>
244 <th>[% l('Status') %]</th>
247 [% FOR copy IN args.holdings %]
251 org_name = ctx.get_aou(copy.circ_lib).name;
252 org_sname = ctx.get_aou(copy.circ_lib).shortname;
253 lib_url = ctx.get_org_setting(copy.circ_lib, 'lib.info_url');
254 prefer_external_url = ctx.get_org_setting(copy.circ_lib, 'lib.prefer_external_url');
255 UNLESS lib_url && prefer_external_url;
256 lib_url = mkurl(ctx.opac_root _ '/library/' _ ctx.get_aou(copy.circ_lib).shortname, {}, 1);
258 IF lib_url; '<a property="seller" typeof="Library" href="'; lib_url | url; '">'; END;
259 '<span property="name">'; org_name | html; '</span>';
260 IF lib_url; '</a>'; END;
263 <td>[% copy.location | html %]</td>
264 <td>[% copy.label | html %]</td>
265 [%- IF has_parts == 'true'; %]
266 <td>[% copy.part_label %]</td>
268 <td>[% copy.status | html %]</td>
275 [%- has_parts = 'false';
278 [% END %] <!-- END detail_record_view -->
280 [% PROCESS "opac/parts/result/copy_counts.tt2" %]
281 [% IF rec.user_circulated %]
282 <div class="result_item_circulated">
283 <img src="[% ctx.media_prefix %]/images/green_check.png" alt="[% l('Checked Out Before') %]"/>
284 <span>[% l('I have checked this item out before') %]</span>
289 FOR note IN ctx.bookbag_items_by_bre_id.$rec_id.notes %]
290 <div class="result-bookbag-item-note">
291 [% note.note | html %]
296 <div class="result_table_utils_cont">
297 <div class="result_table_utils">
298 [%- search_ou = ctx.search_ou;
299 num_holdable_copies = attrs.marc_xml.findnodes('//*[local-name()="holdings" and @has_holdable="true"]').size || 0;
300 IF ctx.place_unfillable ||
301 ( num_holdable_copies > 0
302 && (ctx.holds_block.enabled != 'true' || attrs.org_copy_counts.$search_ou.available == 0)
305 <div class="results_aux_utils place_hold"><a
306 href="[% mkurl(ctx.opac_root _ '/place_hold',
307 {hold_target => rec.id, hold_type => 'T', hold_source_page => mkurl()}, ['query']) %]"
308 name="place_hold_link" class="no-dec"><img
309 src="[% ctx.media_prefix %]/images/green_check.png"
310 alt=""/><span class="result_place_hold">[% l('Place Hold') %]</span></a>
313 <div class="results_aux_utils result_util">
315 INCLUDE "opac/parts/bookbag_actions.tt2";
318 operation = ctx.mylist.grep(rec.id).size ? "delete" : "add";
319 label = (operation == "add") ? l("Add to my list") : l("Remove from my list");
320 href = mkurl(ctx.opac_root _ '/mylist/' _ operation,
321 {record => rec.id, anchor => 'record_' _ rec.id}, 1);
323 <a href="[% href %]" class="no-dec">
324 <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="" />
329 [% IF ENV.OILS_CONTENT_CAFE_USER %]
330 [% ident = attrs.isbn_clean || attrs.upc %]
331 <div class="results_aux_utils result_util">
332 <a title="[% l('Reviews and More') %]" target='_blank'
333 href="[% ctx.ext_proto %]://contentcafe2.btol.com/ContentCafeClient/ContentCafe.aspx?UserID=[%-
334 ENV.OILS_CONTENT_CAFE_USER %]&Password=[%-
335 ENV.OILS_CONTENT_CAFE_PASS %]&ItemKey=[% ident | uri %]&Options=Y">
336 <img src='[% ctx.media_prefix %]/images/starz.png'/>
337 <span class="results_reviews">[% l('Reviews & More') %]</span>
347 [%- IF ENV.OILS_CHILIFRESH_ACCOUNT %]
350 <td align='center'> <!-- Chilifresh reviews link -->
351 <span class="chili_review" id="isbn_[% attrs.isbn_clean | html %]"> </span>
356 <td colspan='5'> <!-- Chilifresh reviews panel -->
357 <div id="chili_review_[% attrs.isbn_clean | html %]" style="display: none;" align="center"></div>
366 <div class="result_footer_nav1">
367 [% ctx.results_count_header %]
370 resultBlock = document.querySelector('#result_block');
371 resultButton = document.querySelector('#return_to_hits');
372 facetSidebar = document.querySelector('#facet_sidebar');
373 facetButton = document.querySelector('#refine_hits');
374 function getFacety() {
375 resultBlock.setAttribute('class', 'result_block_hidden');
376 resultButton.setAttribute('class', 'results_header_btns result_block_visible');
377 facetSidebar.setAttribute('class', 'facet_sidebar_visible');
378 facetButton.setAttribute('class', 'result_block_hidden');
379 window.location.hash = 'return_to_hits';
381 function getResulty() {
382 resultBlock.setAttribute('class', 'result_block_visible');
383 resultButton.setAttribute('class', 'result_block_hidden');
384 facetSidebar.setAttribute('class', 'facet_sidebar_hidden');
385 facetButton.setAttribute('class', 'results_header_btns result_block_visible');
386 window.location.hash = 'refine_hits';