[% PROCESS "default/opac/parts/misc_util.tt2"; ctx.result_start = 1 + ctx.page_size * page; ctx.result_stop = 1 + ctx.page_size * (page + 1); IF ctx.result_stop > ctx.hit_count; ctx.result_stop = ctx.hit_count; END; result_count = ctx.result_start; %]
[% BLOCK results_count_header %]
[% l('Search Results') %] [% |l(ctx.result_start, ctx.result_stop, ctx.hit_count) %] Results [_1] - [_2] of [_3] [% END %] [% |l(page + 1, page_count) %](page [_1] of [_2])[% END %] [% class = 'search_page_nav_link'; href = '#'; IF page > 0; href = propagator _ '&page=' _ (page - 1); ELSE; class = class _ ' invisible'; END; %] [% l('Previous') %] [% class = 'search_page_nav_link'; href = '#'; IF (page + 1) < page_count; href = propagator _ '&page=' _ (page + 1); ELSE; class = class _ ' invisible'; END; %] [% l('Next') %]
[% END %] [% 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 %]    [% attrs.pubdate %]
[% l('Call number:') %] [% args.holdings.0 %]
[% l('Publisher:') %] [% attrs.publisher; %]
[% l('ISBN:') %] [% attrs.isbn %]
[% l('Edition:') %] [% attrs.edition %]
[% l('Phys. Desc.:') %] [% args.phys_desc %]
[% 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 %] [% END %] [% l("Browse in Google Books Search") %]
[% operation = ctx.mylist.grep(rec.id).size ? "delete" : "add"; label = (operation == "add") ? l("Add to") : l("Remove from"); %]
[% ctx.results_count_header %]