[% PROCESS "opac/parts/misc_util.tt2"; USE ResolverResolver; ctx.result_start = 1 + ctx.page_size * page; ctx.result_stop = ctx.page_size * (page + 1); 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 %]
[% ctx.bookbag.name | html %]
[% ctx.bookbag.description | html %]
[% END %]
[% INCLUDE "opac/parts/staff_saved_searches.tt2" %] [% INCLUDE 'opac/parts/result/facets.tt2' %]
[% FOR rec IN ctx.records; attrs = {marc_xml => rec.marc_xml}; PROCESS get_marc_attrs args=attrs; IF CGI.param('detail_record_view'); attrs.title = attrs.title_extended; END; -%] [%- IF ENV.OILS_CHILIFRESH_ACCOUNT %] [%- END %] [% END %]
[% result_count; result_count = result_count + 1 %]. [% ident = attrs.isbn_clean || attrs.upc; IF ident; %] [% l('Image of item') %]
[% END %]
[% attrs.author | html %]    [% attrs.pubdate | html %]
[% IF args.holdings.size > 0 %] [% END %] [% IF CGI.param('detail_record_view') %] [% IF attrs.publisher %] [% END %] [% IF attrs.isbns.size > 0 %] [% END %] [%- IF openurl.enabled == 'true'; FOREACH issn IN args.issns; NEXT IF issn == ''; res_urls = ResolverResolver.resolve_issn(issn, openurl.baseurl); FOREACH res IN res_urls; %] [% END %] [% END %] [% END %] [% IF attrs.edition %] [% END %] [% IF attrs.phys_desc %] [% END %] [% FOR uri IN args.uris %] [% END %] [%- IF args.holdings.size > 0; FOREACH copy IN args.holdings; IF copy.part_label != ''; has_parts = 'true'; LAST; END; END; %] [%- has_parts = 'false'; END; %] [% END %]
[% l('Call number:') %] [% args.holdings.0.label | html %]
[% l('Publisher:') %] [% attrs.publisher | html %]
[% l('ISBN:') %] [% attrs.isbns.0 | html %]
[% res.public_name | html %] [% res.target_coverage | html %]
[% l('Edition:') %] [% attrs.edition | html %]
[% l('Phys. Desc.:') %] [% args.phys_desc | html %]
[% l('Electronic resource') %] [% uri.link | html %][% ' - ' _ uri.note | html IF uri.note %]
[%- IF has_parts == 'true'; %] [%- END %] [% FOR copy IN args.holdings %] [%- IF has_parts == 'true'; %] [%- END %] [% END %]
[% l('Library') %] [% l('Shelving location') %] [% l('Call number') %][% l('Part') %][% l('Status') %]
[% copy.library | html %] [% copy.location | html %] [% copy.label | html %][% copy.part_label %][% copy.status | html %]
[% PROCESS "opac/parts/result/copy_counts.tt2" %] [% IF rec.user_circulated %]
[% l('Checked Out Before') %] [% l('I have checked this item out before') %]
[% END %] [% IF ctx.bookbag; rec_id = rec.id; FOR note IN ctx.bookbag_items_by_bre_id.$rec_id.notes %]
[% note.note | html %]
[% END %] [% END %]
[% IF attrs.format_icon %] [% attrs.format_label | html %] [% END %] [% l("Browse in Google Books Search") %]
[% IF ctx.user; dsetting = "opac.default_list"; tclass = (ctx.user_setting_map.$dsetting) ? "temporary" : (ctx.bookbags.size) ? "temporary divider" : "temporary"; href = mkurl(ctx.opac_root _ '/mylist/add', {record => rec.id, anchor => 'record_' _ rec.id}, 1); %]
  • [% l("Add to my list") %]
    • [% l('Temporary List') %]
    • [% IF ctx.user_setting_map.$dsetting; class = (ctx.bookbags.size) ? "default divider" : "default"; label = (ctx.default_bookbag) ? ctx.default_bookbag : l('Default List'); href = mkurl(ctx.opac_root _ '/myopac/list/update', {action => 'add_rec', list => ctx.user_setting_map.$dsetting, record => rec.id, anchor => 'record_' _ rec.id}, 1); %]
    • [% label %]
    • [% END %] [% IF ctx.bookbags.size; i = 0; FOREACH bag IN ctx.bookbags; href = mkurl(ctx.opac_root _ '/myopac/list/update', {action => 'add_rec', list => bag.id, record => rec.id, anchor => 'record_' _ rec.id}, 1); i = i + 1; IF i == ctx.bookbags.size; %]
    • [% ELSE %]
    • [% END %] [% bag.name %]
    • [% END; END %]
    • [% l('See All') %]
    • [% l('Add to new list') %]
[% 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, {record => rec.id, anchor => 'record_' _ rec.id}, 1); %] [% label %] [% END %]
[% IF ENV.OILS_CONTENT_CAFE_USER %] [% END %]
[% ctx.results_count_header %]