[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. 9eeb9e6b251d77915d9033f49186a3b376f30f2c

Evergreen Git git at git.evergreen-ils.org
Fri Aug 31 14:45:02 EDT 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_2 has been updated
       via  9eeb9e6b251d77915d9033f49186a3b376f30f2c (commit)
      from  2cd6ebfb6d173fbe43f8902e54086c9e58fd1813 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9eeb9e6b251d77915d9033f49186a3b376f30f2c
Author: Dan Scott <dscott at laurentian.ca>
Date:   Mon Aug 13 16:50:33 2012 -0400

    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 <dscott at laurentian.ca>
    Signed-off-by: Ben Shum <bshum at biblio.org>

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>
             </thead>
             <tbody>
-            [% 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 %]
                 <tr class='cn_browse_row'>
                 [% END -%]
                     <td class='cn_browse_item' width='25%' valign='top'>
@@ -32,20 +34,20 @@
                             PROCESS get_marc_attrs args=rec_attrs;
                             ident = rec_attrs.isbn_clean || rec_attrs.upc;
                             IF ident %]
-                        <a href="[% mkurl(ctx.opac_root _ '/record/' _ cn.record.id, {}, 1) %]"><img height='60' width='50' 
+                        <a href="[% mkurl(ctx.opac_root _ '/record/' _ cn.record.id, {$loc_name => loc_value}, 1) %]"><img height='60' width='50' 
                             class='cn_browse_info' name='cn_browse_pic' border='0'
                             src="[% ctx.media_prefix %]/opac/extras/ac/jacket/small/[% ident | uri %]" /></a>
                         [% END %]
                         <div class='cn_browse_info bold' name='cn_browse_cn'>[% cn.label | html %]</div>
                         <div class='cn_browse_info'>
                             <a name='cn_browse_title' class='classic_link' 
-                                href="[% mkurl(ctx.opac_root _ '/record/' _ cn.record.id, {}, 1) %]">[% rec_attrs.title | html %]</a>
+                                href="[% mkurl(ctx.opac_root _ '/record/' _ cn.record.id, {$loc_name => loc_value}, 1) %]">[% rec_attrs.title | html %]</a>
                         </div>
                         [% IF rec_attrs.author %]<div class='cn_browse_info'>
                             <a name='cn_browse_author' class='classic_link'
                                 href="[%-
                                     authorquery = rec_attrs.author | replace('[,\.:;]', '');
-                                    mkurl(ctx.opac_root _ '/results', {qtype => 'author', query => authorquery}, 1)
+                                    mkurl(ctx.opac_root _ '/results', {qtype => 'author', query => authorquery, $loc_name => loc_value}, 1)
                                     -%]">[% rec_attrs.author | html %]</a>
                         </div>[% END %]
                         <div class='cn_browse_info' name='cn_browse_lib'>[% cn.owning_lib.name | html %]</div>

-----------------------------------------------------------------------

Summary of changes:
 .../src/templates/opac/parts/record/cnbrowse.tt2   |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list