From d9fac3e6133c13a9992bc0af3ef951fdd0cb9ea3 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 11 Aug 2011 11:56:41 -0400 Subject: [PATCH] TTpac: start using mkurl(); more todo.. Signed-off-by: Bill Erickson --- .../default/opac/parts/record/summary.tt2 | 39 +++++++++------------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/Open-ILS/web/templates/default/opac/parts/record/summary.tt2 b/Open-ILS/web/templates/default/opac/parts/record/summary.tt2 index c7486d9083..bf386c23ff 100644 --- a/Open-ILS/web/templates/default/opac/parts/record/summary.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/record/summary.tt2 @@ -19,23 +19,24 @@ [% END %] [% IF ctx.copies.size >= ctx.copy_limit %] [% END %] @@ -208,18 +207,12 @@ [% IF ctx.copy_limit != more_copies_limit AND ctx.copies.size >= ctx.copy_limit %]
- [% cgi = CGI(); - SET x = cgi.param('copy_limit', more_copies_limit); - SET x = cgi.param('copy_offset', 0); %] - 1, "-query" => 1) %]">[% l('Show more copies') %] + [% l('Show more copies') %]
[% ELSIF ctx.copy_limit == more_copies_limit %]
- [% cgi = CGI(); - SET x = cgi.param('copy_limit', '0'); # 0 == fall back to default - SET x = cgi.param('copy_offset', '0'); %] - 1, "-query" => 1) %]">[% l('Show fewer copies') %] + [% l('Show fewer copies') %]
[% END %] -- 2.11.0
- [% attrs.title_extended %]
+ [% attrs.title_extended | html_entity %]
[% IF attrs.author %] [% l("Author") %]: [% attrs.author %] + href="[%- + authorquery = attrs.author | replace('[,\.:;]'); + mkurl(ctx.opac_root _ '/results', {qtype => 'author', query => authorquery}) + -%]">[% attrs.author | html_entity %] [% END %]
[% @@ -162,11 +163,11 @@ copy_info.status_holdable == 't'); IF overall_holdable; l("Place on"); %] - [% l("copy") %] + [% l("copy") %] [% IF copy_info.call_number != last_cn; last_cn = copy_info.call_number; l(" / "); %] - [% l("volume") %] + [% l("volume") %] [% END; ELSE; l("No"); @@ -189,16 +190,14 @@ new_offset = ctx.copy_offset - ctx.copy_limit; IF new_offset < 0; new_offset = 0; END %]
- « [% - l('Previous [_1]', ctx.copy_offset - new_offset) - %] + « [% + l('Previous [_1]', ctx.copy_offset - new_offset) %] - [% - l('Next [_1]', ctx.copy_limit) - %] » + [% + l('Next [_1]', ctx.copy_limit) %] »