From f8e65c7070dd02bb71750f64e77297fabb80f141 Mon Sep 17 00:00:00 2001 From: Ben Shum Date: Sun, 2 Dec 2012 00:02:25 -0500 Subject: [PATCH] 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 --- Open-ILS/src/templates/opac/parts/misc_util.tt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(" "); -- 2.11.0