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>
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(" ");