From 5a9cdfe597cc34b97f7b7d320edf03b1f5f9ba12 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 files 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 a9f77b6..661c132 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 %]
-- 1.7.2.5