From: Dan Scott Date: Mon, 13 Aug 2012 20:50:33 +0000 (-0400) Subject: TPAC: Make call number browse record links retain search lib X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5a9cdfe597cc34b97f7b7d320edf03b1f5f9ba12;p=contrib%2FConifer.git 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 --- 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 %]