IF ctx.result_stop > ctx.hit_count; ctx.result_stop = ctx.hit_count; END;
result_count = ctx.result_start;
+
%]
[% PROCESS "opac/parts/result/paginate.tt2" %]
[% ctx.results_count_header = PROCESS results_count_header;
ctx.results_count_header %]
+[% IF ctx.bookbag %]
+<div id="result-bookbag-heading">
+ <div class="result-bookbag-name">[% ctx.bookbag.name | html %]</div>
+ <div class="result-bookbag-description">[% ctx.bookbag.description | html %]</div>
+</div>
+[% END %]
<div id="result_table_div">
<div class="facet_sidebar">
[% INCLUDE "opac/parts/staff_saved_searches.tt2" %]
<tbody id="result_table">
[% FOR rec IN ctx.records;
attrs = {marc_xml => rec.marc_xml};
- PROCESS get_marc_attrs args=attrs %]
+ PROCESS get_marc_attrs args=attrs;
+ IF CGI.param('detail_record_view');
+ attrs.title = attrs.title_extended;
+ END;
+ -%]
<tr class="result_table_row">
- <td class="result_table_row" align='left' width='100%'>
- <table cellpadding="0" cellspacing="0" class='result_table_subtable'>
- <tbody class='result_table_subtbody'>
- <tr name='counts_row'>
- <td valign="top" class="results_row_count"
- name="results_row_count">[%
+ <td class="results_row_count" name="results_row_count">[%
result_count; result_count = result_count + 1
%].</td>
- <td class='result_table_pic_header' align='center'
- width="78" nowrap="nowrap" valign="top">
+ <td class='result_table_pic_header'>
[% ident = attrs.isbn_clean || attrs.upc; IF ident; %]
<a href="[% mkurl(ctx.opac_root _ '/record/' _ rec.id) %]"><img alt="[% l('Image of item') %]"
name='item_jacket' class='result_table_pic' width="55"
src='[% ctx.media_prefix %]/opac/extras/ac/jacket/small/[% ident | uri %]' /></a><br />
[% END %]
</td>
- <td class='result_table_title_cell' name='result_table_title_cell' valign="top">
+ <td class='result_table_title_cell' name='result_table_title_cell'>
<div class="bold">
<a name='record_[% rec.id %]' name='item_title'
href="[% mkurl(ctx.opac_root _ '/record/' _ rec.id) %]"
authorquery = attrs.author | replace('[,\.:;]', '');
mkurl(ctx.opac_root _ '/results', {qtype => 'author', query => authorquery}, ['page'])
-%]">[% attrs.author | html %]</a></em>
-
- [% attrs.pubdate | html %]
</div>
<table cellpadding="0" cellspacing="0" border="0"
class="results_info_table">
[% IF CGI.param('detail_record_view') %]
<!-- These fields are visible when viewing the results page in 'detailed' mode -->
- [% IF attrs.publisher %]
+ [% IF attrs.pubinfo %]
<tr name="results_pub_tr">
<td valign="top">
<strong>[% l('Publisher:') %]</strong>
</td>
- <td>[% attrs.publisher | html %]</td>
+ <td>[% attrs.pubinfo | html %]</td>
</tr>
[% END %]
[% IF attrs.isbns.size > 0 %]
</tr>
[% END %]
[%- IF openurl.enabled == 'true';
- FOR issn IN args.issns;
- sfx = ResolverResolver.resolve_issn(issn, openurl.baseurl);
- FOR res IN sfx;
+ FOREACH issn IN args.issns;
+ NEXT IF issn == '';
+ res_urls = ResolverResolver.resolve_issn(issn, openurl.baseurl);
+ FOREACH res IN res_urls;
%]
<tr name="results_issn_tr">
<td valign="top">
<span>[% l('I have checked this item out before') %]</span>
</div>
[% END %]
+ [% IF ctx.bookbag;
+ rec_id = rec.id;
+ FOR note IN ctx.bookbag_items_by_bre_id.$rec_id.notes %]
+ <div class="result-bookbag-item-note">
+ [% note.note | html %]
+ </div>
+ [% END %]
+ [% END %]
</div>
</td>
<td nowrap='nowrap' width="1" align="right">
<div class="result_table_utils_cont">
<div class="result_table_utils">
+[%- search_ou = ctx.search_ou;
+ num_holdable_copies = attrs.marc_xml.findnodes('//*[local-name()="holdings" and @has_holdable="true"]').size || 0;
+ IF ctx.place_unfillable ||
+ ( num_holdable_copies > 0
+ && (ctx.holds_block.enabled != 'true' || attrs.org_copy_counts.$search_ou.available == 0)
+ )
+%]
<div class="results_aux_utils place_hold"><a
href="[% mkurl(ctx.opac_root _ '/place_hold',
{hold_target => rec.id, hold_type => 'T', hold_source_page => mkurl()}) %]"
src="[% ctx.media_prefix %]/images/green_check.png"
alt=""/><span class="result_place_hold">[% l('Place Hold') %]</span></a>
</div>
+[%- END -%]
<div class="results_aux_utils result_util">
- [%
+ [% IF ctx.user;
+ INCLUDE "opac/parts/bookbag_actions.tt2";
+ %]
+ [% ELSE;
operation = ctx.mylist.grep(rec.id).size ? "delete" : "add";
label = (operation == "add") ? l("Add to my list") : l("Remove from my list");
href = mkurl(ctx.opac_root _ '/mylist/' _ operation,
<img src="[% ctx.media_prefix %]/images/clipboard.png" alt="" />
[% label %]
</a>
+ [% END %]
</div>
[% IF ENV.OILS_CONTENT_CAFE_USER %]
<div class="results_aux_utils result_util">
</td>
</tr>
[%- END %]
- </tbody>
- </table>
- </td>
- </tr>
[% END %]
</tbody>
</table>