From: Billy Horn Date: Wed, 24 Aug 2016 16:31:22 +0000 (-0700) Subject: CAT-76 Remove author subfield 'e' from TPAC display/links X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e5f8a477a7b8863476ea3c452022daa38823015a;p=working%2FEvergreen.git CAT-76 Remove author subfield 'e' from TPAC display/links Avoid displaying 1XX or 7XX subfield 'e' values for authors and prevent said values from populating auto-generated author search links. Commit msg modified by Bill for clarity. Signed-off-by: Billy Horn --- diff --git a/KCLS/openils/var/templates_kcls/opac/parts/misc_util.tt2 b/KCLS/openils/var/templates_kcls/opac/parts/misc_util.tt2 index 60ebd7b2de..a626c3bad0 100644 --- a/KCLS/openils/var/templates_kcls/opac/parts/misc_util.tt2 +++ b/KCLS/openils/var/templates_kcls/opac/parts/misc_util.tt2 @@ -7,7 +7,7 @@ FOR node IN xml.findnodes('//*[@tag="' _ target_field _ '"]'); raw_vals = []; core_val = ''; - FOR subnode IN node.findnodes('./*[not(contains("w 0 4 5 6 8 9", @code))]'); + FOR subnode IN node.findnodes('./*[not(contains("w e 0 4 5 6 8 9", @code))]'); raw_vals.push(subnode.textContent()); END; core_val = raw_vals.join(" "); diff --git a/KCLS/openils/var/templates_kcls/opac/parts/record/authors.tt2 b/KCLS/openils/var/templates_kcls/opac/parts/record/authors.tt2 index 088631a653..6ab4ed80f4 100644 --- a/KCLS/openils/var/templates_kcls/opac/parts/record/authors.tt2 +++ b/KCLS/openils/var/templates_kcls/opac/parts/record/authors.tt2 @@ -30,7 +30,7 @@ BLOCK build_author_links; FOR subfield IN node.childNodes; NEXT UNLESS subfield.nodeName == "subfield"; code = subfield.getAttribute('code'); - NEXT UNLESS code.match('[a-z]'); + NEXT UNLESS code.match('[a-d, f-z]'); term = subfield.textContent | html; author_content.push(term); END;