From: Ben Shum Date: Sun, 2 Dec 2012 05:02:25 +0000 (-0500) Subject: TPAC - hide subfield 6 and 8 from record title display X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f8e65c7070dd02bb71750f64e77297fabb80f141;p=evergreen%2Fpines.git TPAC - hide subfield 6 and 8 from record title display 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 Signed-off-by: Dan Scott --- diff --git a/Open-ILS/src/templates/opac/parts/misc_util.tt2 b/Open-ILS/src/templates/opac/parts/misc_util.tt2 index c188e97f57..f5a9cfba62 100644 --- a/Open-ILS/src/templates/opac/parts/misc_util.tt2 +++ b/Open-ILS/src/templates/opac/parts/misc_util.tt2 @@ -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(" ");