[open-ils-commits] [GIT] Evergreen ILS branch master updated. 18bc30fe1aecdf19a21aaecd769c3ac3194b8fea

Evergreen Git git at git.evergreen-ils.org
Sat Mar 17 00:14:57 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  18bc30fe1aecdf19a21aaecd769c3ac3194b8fea (commit)
      from  364e37ddaba69149f6ce7820dffdbc2246592bd8 (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 18bc30fe1aecdf19a21aaecd769c3ac3194b8fea
Author: Ben Shum <bshum at biblio.org>
Date:   Fri Mar 16 22:55:07 2012 -0400

    Tpac - add additional subfields for title in search results
    
    Originally, titles in Tpac only showed based on tag 245 subfield a.
    This sometimes led to difficulty identifying specific records from
    each other if it was part of a set or had additional title information
    in other subfields.
    
    Modified default title function to include the following:
    
    subfield b = remainder of title
    subfield n = number of part/section of a work
    subfield p = name of part/section of a work
    
    Signed-off-by: Ben Shum <bshum at biblio.org>
    Signed-off-by: Dan Scott <dan at coffeecode.net>

diff --git a/Open-ILS/src/templates/opac/parts/misc_util.tt2 b/Open-ILS/src/templates/opac/parts/misc_util.tt2
index 95c6f4a..25a8362 100644
--- a/Open-ILS/src/templates/opac/parts/misc_util.tt2
+++ b/Open-ILS/src/templates/opac/parts/misc_util.tt2
@@ -15,8 +15,12 @@
         args.issn = xml.findnodes('//*[@tag="022"]/*[@code="a"]').textContent;
         args.author = xml.findnodes('//*[@tag="100"]/*[@code="a"]').textContent;
 
+        # Include subfields 'abnp' to generate a more comprehensive title display in search results
+        titresults = xml.findnodes('//*[@tag="245"]/*[@code="a" or @code="b" or @code="n" or @code="p"]');
+        titresults_content = [];
+            FOR sub IN titresults; titresults_content.push(sub.textContent); END;
+        args.title = titresults_content.join(" ");
         # Avoid ugly trailing syntax on brief titles
-        args.title = xml.findnodes('//*[@tag="245"]/*[@code="a"]').textContent;
         args.title = args.title | replace('[:;/]$', '');
 
         # Provide correct spacing between the subfields

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

Summary of changes:
 Open-ILS/src/templates/opac/parts/misc_util.tt2 |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list