From 4fb4e3df754cc0e7437276a9db72c9b0be5ddba2 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Mon, 13 Aug 2012 16:50:33 -0400 Subject: [PATCH] TPAC: Make call number browse record links retain search lib In addition to maintaining scope for the call number browse search results, we also need to maintain the scope for the links for the call number records in the results themselves (for example, the "retrieve this record" link, or the "search for this author" link). Signed-off-by: Dan Scott Signed-off-by: Ben Shum --- .../src/templates/opac/parts/record/cnbrowse.tt2 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2 b/Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2 index a9f77b6849..661c1320f7 100644 --- a/Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2 @@ -23,8 +23,10 @@ - [% tr_open = 0; FOR cn IN ctx.browsed_call_numbers %] - [%- IF loop.index % 3 == 0; tr_open = 1 %] + [%- tr_open = 0; + PROCESS get_library; + FOR cn IN ctx.browsed_call_numbers; + IF loop.index % 3 == 0; tr_open = 1 %] [% END -%] @@ -32,20 +34,20 @@ PROCESS get_marc_attrs args=rec_attrs; ident = rec_attrs.isbn_clean || rec_attrs.upc; IF ident %] - [% END %]
[% cn.label | html %]
[% rec_attrs.title | html %] + href="[% mkurl(ctx.opac_root _ '/record/' _ cn.record.id, {$loc_name => loc_value}, 1) %]">[% rec_attrs.title | html %]
[% IF rec_attrs.author %][% END %]
[% cn.owning_lib.name | html %]
-- 2.43.2