[% PROCESS "default/opac/parts/marc_misc.tt2"; q = query | url; np_link = '?query=' _ q; IF loc; np_link = np_link _ "&loc=" _ loc; END; IF depth or depth == 0; np_link = np_link _ "&depth=" _ depth; END; 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 %]
Search Results [% l("Results") %] [% ctx.result_start %]  - [% ctx.result_stop %]  [% l("of") %] [% ctx.hit_count %] (page [% page + 1 %]  [% l("of") %] [% page_count %]) [% IF page > 0 %] Previous [% END %] [% IF (page + 1) < page_count %] Next [% END %]
[% 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; %] Image of item
[% END %]
[% attrs.author %]    [% attrs.pubdate %]
Call number: [% args.kcls_cn %]
Publisher: [% attrs.publisher; %]
ISBN: [% attrs.isbn %]
Edition: [% attrs.edition %]
Phys. Desc.: [% args.phys_desc %]

| |
Format [% l("Match Score: ") %] [% l("Browse in Google Books Search") %]
[% key = attrs.mattype; format_desc = ctx.find_citm(key).value; icon_filename = icon_by_mattype.$key; IF icon_filename; %] [% format_desc %] [% END %]
[% ctx.results_count_header %]