TPAC - hide subfield 6 and 8 from record title display
authorBen Shum <bshum@biblio.org>
Sun, 2 Dec 2012 05:02:25 +0000 (00:02 -0500)
committerBen Shum <bshum@biblio.org>
Sat, 19 Jan 2013 21:09:15 +0000 (16:09 -0500)
Record display previously showed every subfield associated with tag 245
to display the title in TPAC's record view.  Hide subfields 6 and 8
because they only show linkage information that does not contribute to
the actual title content.

Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates/opac/parts/misc_util.tt2

index c188e97..f5a9cfb 100644 (file)
@@ -42,7 +42,7 @@
         args.title = args.title | replace('[:;/]$', '');
 
         # Provide correct spacing between the subfields
-        titsubs = xml.findnodes('//*[@tag="245"]/*[@code]');
+        titsubs = xml.findnodes('//*[@tag="245"]/*[(@code) and (@code != "6") and (@code != "8")]');
         titsubs_content = [];
             FOR sub IN titsubs; titsubs_content.push(sub.textContent); END;
         args.title_extended = titsubs_content.join(" ");