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 %]
18 <div id="result-bookbag-heading">
19 <div class="result-bookbag-name">[% ctx.bookbag.name | html %]</div>
20 <div class="result-bookbag-description">[% ctx.bookbag.description | html %]</div>
23 <div id="result_table_div">
24 <div class="facet_sidebar">
25 [% INCLUDE "opac/parts/staff_saved_searches.tt2" %]
26 [% INCLUDE 'opac/parts/result/facets.tt2' %]
28 <div class="result_block">
29 <table cellpadding="0" cellspacing="0"
30 border="0" style="margin-top:10px;">
31 <tbody id="result_table">
32 [% FOR rec IN ctx.records;
33 attrs = {marc_xml => rec.marc_xml};
34 PROCESS get_marc_attrs args=attrs;
35 IF CGI.param('detail_record_view');
36 attrs.title = attrs.title_extended;
39 <tr class="result_table_row">
40 <td class="results_row_count" name="results_row_count">[%
41 result_count; result_count = result_count + 1
43 <td class='result_table_pic_header'>
44 [% ident = attrs.isbn_clean || attrs.upc; IF ident; %]
45 <a href="[% mkurl(ctx.opac_root _ '/record/' _ rec.id) %]"><img alt="[% l('Image of item') %]"
46 name='item_jacket' class='result_table_pic' width="55"
47 src='[% ctx.media_prefix %]/opac/extras/ac/jacket/small/[% ident | uri %]' /></a><br />
50 <td class='result_table_title_cell' name='result_table_title_cell'>
52 <a name='record_[% rec.id %]' name='item_title'
53 href="[% mkurl(ctx.opac_root _ '/record/' _ rec.id) %]"
54 [% HTML.attributes(title => l('Display record details for "[_1]"', attrs.title)) %]
55 class='search_link'>[% attrs.title | html %]</a>
59 <em><a title="[% l("Perform an Author Search") %]"
62 authorquery = attrs.author | replace('[,\.:;]', '');
63 mkurl(ctx.opac_root _ '/results', {qtype => 'author', query => authorquery}, ['page'])
64 -%]">[% attrs.author | html %]</a></em>
66 [% attrs.pubdate | html %]
68 <table cellpadding="0" cellspacing="0" border="0"
69 class="results_info_table">
70 [% IF args.holdings.size > 0 %]
71 <tr name='bib_cn_list' class='result_table_title_cell'>
73 <strong>[% l('Call number:') %]</strong>
75 <td>[% args.holdings.0.label | html %]</td>
79 [% IF CGI.param('detail_record_view') %]
80 <!-- These fields are visible when viewing the results page in 'detailed' mode -->
82 [% IF attrs.publisher %]
83 <tr name="results_pub_tr">
85 <strong>[% l('Publisher:') %]</strong>
87 <td>[% attrs.publisher | html %]</td>
90 [% IF attrs.isbns.size > 0 %]
91 <tr name="results_isbn_tr">
93 <strong>[% l('ISBN:') %]</strong>
95 <td>[% attrs.isbns.0 | html %]</td>
98 [%- IF openurl.enabled == 'true';
99 FOREACH issn IN args.issns;
101 res_urls = ResolverResolver.resolve_issn(issn, openurl.baseurl);
102 FOREACH res IN res_urls;
104 <tr name="results_issn_tr">
106 <strong><a href="[% res.target_url %]">
107 [% res.public_name | html %]</a></strong>
109 <td>[% res.target_coverage | html %]</td>
115 [% IF attrs.edition %]
116 <tr name="results_edition_tr">
118 <strong>[% l('Edition:') %]</strong>
120 <td>[% attrs.edition | html %]</td>
123 [% IF attrs.phys_desc %]
124 <tr name="results_phys_desc_tr">
125 <td nowrap="nowrap" valign="top">
126 <strong>[% l('Phys. Desc.:') %]</strong>
129 [% args.phys_desc | html %]
133 [% FOR uri IN args.uris %]
134 <tr name='bib_uri_list' class='result_table_title_cell'>
136 <strong>[% l('Electronic resource') %]</strong>
138 <td><a href="[% uri.href %]">[% uri.link | html %]</a>[% ' - ' _ uri.note | html IF uri.note %]</td>
141 [%- IF args.holdings.size > 0;
142 FOREACH copy IN args.holdings;
143 IF copy.part_label != '';
149 <tr name='bib_cn_list' class='result_table_title_cell'>
151 <table class='result_holdings_table'>
153 <th>[% l('Library') %]</th>
154 <th>[% l('Shelving location') %]</th>
155 <th>[% l('Call number') %]</th>
156 [%- IF has_parts == 'true'; %]
157 <th>[% l('Part') %]</th>
159 <th>[% l('Status') %]</th>
162 [% FOR copy IN args.holdings %]
164 <td>[% copy.library | html %]</td>
165 <td>[% copy.location | html %]</td>
166 <td>[% copy.label | html %]</td>
167 [%- IF has_parts == 'true'; %]
168 <td>[% copy.part_label %]</td>
170 <td>[% copy.status | html %]</td>
177 [%- has_parts = 'false';
180 [% END %] <!-- END detail_record_view -->
182 [% PROCESS "opac/parts/result/copy_counts.tt2" %]
183 [% IF rec.user_circulated %]
184 <div class="result_item_circulated">
185 <img src="[% ctx.media_prefix %]/images/green_check.png" alt="[% l('Checked Out Before') %]"/>
186 <span>[% l('I have checked this item out before') %]</span>
191 FOR note IN ctx.bookbag_items_by_bre_id.$rec_id.notes %]
192 <div class="result-bookbag-item-note">
193 [% note.note | html %]
200 <td name='result_table_format_cell' class='result_table_format_cell' width="1">
202 [% IF attrs.format_icon %]
203 <img title="[% attrs.format_label | html %]" alt="[% attrs.format_label | html %]" src="[% attrs.format_icon %]" />
207 <abbr class="unapi-id" title='tag:[% ctx.hostname %],[% date.format(date.now, '%Y') %]:biblio-record_entry/[% rec.id %]'></abbr>
209 <!-- Empty span used for creating Google Book Search-->
210 <span name="googleBooksLink" class="hide_me">
211 <a style='padding-left: 8px;'
212 class='classic_link hide_me'
213 name="googleBooks-link">[% l("Browse in Google Books Search") %]</a>
216 <td nowrap='nowrap' width="1" align="right">
217 <div class="result_table_utils_cont">
218 <div class="result_table_utils">
219 [%- search_ou = ctx.search_ou;
220 num_holdable_copies = attrs.marc_xml.findnodes('//*[local-name()="holdings" and @has_holdable="true"]').size || 0;
221 IF ctx.place_unfillable ||
222 ( num_holdable_copies > 0
223 && (ctx.holds_block.enabled != 'true' || attrs.org_copy_counts.$search_ou.available == 0)
226 <div class="results_aux_utils place_hold"><a
227 href="[% mkurl(ctx.opac_root _ '/place_hold',
228 {hold_target => rec.id, hold_type => 'T', hold_source_page => mkurl()}) %]"
229 name="place_hold_link" class="no-dec"><img
230 src="[% ctx.media_prefix %]/images/green_check.png"
231 alt=""/><span class="result_place_hold">[% l('Place Hold') %]</span></a>
234 <div class="results_aux_utils result_util">
236 INCLUDE "opac/parts/bookbag_actions.tt2";
239 operation = ctx.mylist.grep(rec.id).size ? "delete" : "add";
240 label = (operation == "add") ? l("Add to my list") : l("Remove from my list");
241 href = mkurl(ctx.opac_root _ '/mylist/' _ operation,
242 {record => rec.id, anchor => 'record_' _ rec.id}, 1);
244 <a href="[% href %]" class="no-dec">
245 <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="" />
250 [% IF ENV.OILS_CONTENT_CAFE_USER %]
251 <div class="results_aux_utils result_util">
252 <a title="[% l('Reviews and More') %]" target='_blank'
253 href="[% ctx.proto %]://contentcafe2.btol.com/ContentCafeClient/ContentCafe.aspx?UserID=[%-
254 ENV.OILS_CONTENT_CAFE_USER %]&Password=[%-
255 ENV.OILS_CONTENT_CAFE_PASS %]&ItemKey=[% ident | uri %]&Options=Y">
256 <img src='[% ctx.media_prefix %]/images/starz.png'/>
257 <span class="results_reviews">[% l('Reviews & More') %]</span>
265 [%- IF ENV.OILS_CHILIFRESH_ACCOUNT %]
268 <td align='center'> <!-- Chilifresh reviews link -->
269 <span class="chili_review" id="isbn_[% attrs.isbn_clean | html %]"> </span>
274 <td colspan='5'> <!-- Chilifresh reviews panel -->
275 <div id="chili_review_[% attrs.isbn_clean | html %]" style="display: none;" align="center"></div>
285 [% ctx.results_count_header %]