From 50b4a93d3e02d48491bb5b5c95f0a869f01f86d1 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 11 Aug 2011 16:30:11 -0400 Subject: [PATCH] TTpac: more use of mkurl() and general cleanup Signed-off-by: Bill Erickson --- .../default/opac/parts/record/cnbrowse.tt2 | 28 ++++++------ .../templates/default/opac/parts/record/extras.tt2 | 12 +---- .../default/opac/parts/record/summary.tt2 | 53 +--------------------- 3 files changed, 15 insertions(+), 78 deletions(-) diff --git a/Open-ILS/web/templates/default/opac/parts/record/cnbrowse.tt2 b/Open-ILS/web/templates/default/opac/parts/record/cnbrowse.tt2 index d44c38d1ef..83621b1d82 100644 --- a/Open-ILS/web/templates/default/opac/parts/record/cnbrowse.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/record/cnbrowse.tt2 @@ -1,9 +1,5 @@ -[%- IF ctx.page == "record"; - prev_next_root = "/record/" _ ctx.bre_id _ extras_propagator; -ELSE; - cn = CGI.param('cn') | uri; - prev_next_root = "/cnbrowse?cn=" _ cn; -END -%] +[% cnoffset = CGI.param('cnoffset') || 0; %] +
@@ -14,15 +10,13 @@ END -%] - [% - l("<< Previous Page") - %] + [% l("<< Previous Page") %] [% l("Shelf Browser") %] - [% - l("Next Page >>") - %] + [% l("Next Page >>") %] @@ -36,17 +30,21 @@ END -%] PROCESS get_marc_attrs args=rec_attrs; ident = rec_attrs.isbn_clean || rec_attrs.upc; IF ident %] - [% END %]
[% cn.label %]
[% IF rec_attrs.author %]
[% rec_attrs.author %] + href="[%- + authorquery = rec_attrs.author | replace('[,\.:;]', ''); + mkurl(ctx.opac_root _ '/results', {qtype => 'author', query => authorquery}, 1) + -%]">[% rec_attrs.author | html_entity %]
[% END %]
[% cn.owning_lib.name %]
diff --git a/Open-ILS/web/templates/default/opac/parts/record/extras.tt2 b/Open-ILS/web/templates/default/opac/parts/record/extras.tt2 index b4ea965af8..d22377aed9 100644 --- a/Open-ILS/web/templates/default/opac/parts/record/extras.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/record/extras.tt2 @@ -37,17 +37,7 @@