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

Evergreen Git git at git.evergreen-ils.org
Fri Feb 15 13:17:56 EST 2013


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  bea6cffd710e3f1e05803d8152f41dbe7635f328 (commit)
      from  3f30b4cfbd811dec7ed63f06089369a532fe4b71 (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 bea6cffd710e3f1e05803d8152f41dbe7635f328
Author: Ben Shum <bshum at biblio.org>
Date:   Wed Oct 10 17:00:54 2012 -0400

    LP1071505 - Add 264 RDA tag to TPAC pubinfo display
    
    Prior to this, TPAC only retrieved the 260 tag for publication info. Allow for
    the possibility that the 264 tag might exist and contain relevant information.
    Special note: the 264 tag must have a second indicator value of 1 to be meant
    for publication statement.
    
    Also, this only picks out the first 260 or 264 tags in any given bib record.
    
    Approach inspired by Dan Scott's approach taken for finding edition statements.
    
    Signed-off-by: Ben Shum <bshum at biblio.org>
    Signed-off-by: Dan Wells <dbw2 at calvin.edu>

diff --git a/Open-ILS/src/templates/opac/parts/misc_util.tt2 b/Open-ILS/src/templates/opac/parts/misc_util.tt2
index c871c89..cb00059 100644
--- a/Open-ILS/src/templates/opac/parts/misc_util.tt2
+++ b/Open-ILS/src/templates/opac/parts/misc_util.tt2
@@ -134,19 +134,25 @@
         args.title_extended = (args.titles.size) ? args.titles.0 : '';
 
         args.pubplaces = [];
-        FOR sub IN xml.findnodes('//*[@tag="260"]/*[@code="a"]');
+        pubplace_hunt = xml.findnodes('//*[@tag="260"]/*[@code="a"]') ||
+            xml.findnodes('//*[@tag="264" and @ind2="1"]/*[@code="a"]');
+        FOR sub IN pubplace_hunt;
             args.pubplaces.push(sub.textContent);
         END;
         args.pubplace = (args.pubplaces.size) ? args.pubplaces.0 : '';
 
         args.publishers = [];
-        FOR sub IN xml.findnodes('//*[@tag="260"]/*[@code="b"]');
+        publishers_hunt = xml.findnodes('//*[@tag="260"]/*[@code="b"]') ||
+            xml.findnodes('//*[@tag="264" and @ind2="1"]/*[@code="b"]');
+        FOR sub IN publishers_hunt;
             args.publishers.push(sub.textContent);
         END;
         args.publisher = (args.publishers.size) ? args.publishers.0 : '';
 
         args.pubdates = [];
-        FOR sub IN xml.findnodes('//*[@tag="260"]/*[@code="c"]');
+        pubdates_hunt = xml.findnodes('//*[@tag="260"]/*[@code="c"]') || 
+            xml.findnodes('//*[@tag="264" and @ind2="1"]/*[@code="c"]');
+        FOR sub IN pubdates_hunt;
             args.pubdates.push(sub.textContent);
         END;
         args.pubdate = (args.pubdates.size) ? args.pubdates.0 : '';

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

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


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list