[% clear_params = ['action', 'hold', 'pickup_lib', 'ac', 'copy_limit', 'copy_offset', 'list'] %]
[% trail = CGI.param('trail');
trail = trail ? trail.split('/') : [];
FOR page_id IN trail;
page = ctx.kpac_config.pages.page.$page_id %]
[% page.name | html %]
[% END %]
[% IF ctx.page != 'index' AND ctx.page != 'category' %]
[% l('search results') | html %]
[% IF ctx.page != 'rresult' %]
[% tlen = 18; # TODO config?
title = attrs.title || '';
IF title.length > tlen;
title = l('[_1]...', title.substr(0, tlen - 3));
END;
# I know there's a way to do this all w/ substr,
# but it's trying my patience. this works.
%]
[% title | html %]
[% l('Get it') %]
[% END %]
[% END %]