[% 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 %]
SIDEBAR TODO
[% FOR rec IN ctx.records; attrs = {marc_xml => rec.marc_xml}; PROCESS get_marc_attrs args=attrs %] [% 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'; FOR issn IN args.issns; sfx = ResolverResolver.resolve_issn(issn, openurl.baseurl); FOR res IN sfx; %] [% END %] [% END %] [% END %] [% IF attrs.edition %] [% END %] [% IF attrs.phys_desc %] [% END %] [% FOR uri IN args.uris %] [% END %] [% IF args.holdings.size > 0 %] [% 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 %]
[% FOR copy IN args.holdings %] [% END %]
[% l('Library') %] [% l('Shelving location') %] [% l('Call number') %] [% l('Status') %]
[% copy.library | html %] [% copy.location | html %] [% copy.label | html %] [% copy.status | html %]
[% l('[_1] of [quant,_2,copy,copies] available', attrs.copy_counts.available, attrs.copy_counts.count) # XXX s/count/nshadow/ ? #rec.copy_counts.available, rec.copy_counts.visible) %]
| |
[% IF attrs.format_icon %] [% attrs.format_label | html %] [% END %] [% l("Browse in Google Books Search") %]
[% operation = ctx.mylist.grep(rec.id).size ? "delete" : "add"; label = (operation == "add") ? l("Add to my list") : l("Remove from my list"); %] [% label %]
[% ctx.results_count_header %]