[open-ils-commits] [GIT] Evergreen ILS branch master updated. 66ea9fe2da42bd55b2c1100d12ca4cd2e2615649

Evergreen Git git at git.evergreen-ils.org
Fri Oct 26 10:45:35 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, master has been updated
       via  66ea9fe2da42bd55b2c1100d12ca4cd2e2615649 (commit)
      from  81f20bb285bdda845cf7ad4b54e974b85d33c8bb (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 66ea9fe2da42bd55b2c1100d12ca4cd2e2615649
Author: Dan Scott <dscott at laurentian.ca>
Date:   Fri Oct 26 00:52:11 2012 -0400

    TPAC: don't repeat subfields in record content notes
    
    Given a MARC field like "500 $a 1 $b 2 $c 3", the content note would
    display as "1 1 2 1 2 3" as each subfield was appended to the total
    set of notes.
    
    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/contents.tt2 b/Open-ILS/src/templates/opac/parts/record/contents.tt2
index 956a72d..1fb0eb5 100644
--- a/Open-ILS/src/templates/opac/parts/record/contents.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/contents.tt2
@@ -162,9 +162,10 @@ BLOCK render_contents;
             code = subfield.getAttribute('code');
             NEXT UNLESS code.match('[a-z]');
             all_content.push(subfield.textContent);
-            total_contents = all_content.join(" ").replace('\s+$', '');
-        %] [% total_contents %][%- END;
-        IF all_terms.size; "<br/>"; END;
+        END;
+        total_contents = all_content.join(" ").replace('\s+$', '');
+        %] [% total_contents;
+        IF total_contents.size; "<br/>"; END;
     END;
 END 
 %]

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

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


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list