From: Jason Stephenson Date: Fri, 29 Jun 2018 15:36:30 +0000 (-0400) Subject: Lp 1779319: Add ISBN subfield q to OPAC display. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=cc9e8b7f10a17bbb5618e873fadbcfb28c36338f;p=working%2FEvergreen.git Lp 1779319: Add ISBN subfield q to OPAC display. Many new MARC records come with the format and extra information in the 020 subfield q instead of tacked on the end of the subfield a. This patch appends the content of the subfield q to the ISBN output in misc_util.tt2. To test, first find a record with a 020 subfield q and look it up in the OPAC or staff client. Note that the subfield q information does not display after the ISBN. Apply this patch and look the record up again. Now, the subfield q should display after the ISBN. Signed-off-by: Jason Stephenson --- diff --git a/Open-ILS/src/templates/opac/parts/misc_util.tt2 b/Open-ILS/src/templates/opac/parts/misc_util.tt2 index 6f3d18bf8c..431db99205 100644 --- a/Open-ILS/src/templates/opac/parts/misc_util.tt2 +++ b/Open-ILS/src/templates/opac/parts/misc_util.tt2 @@ -182,7 +182,12 @@ args.isbns = []; FOR isbn IN xml.findnodes('//*[@tag="020"]/*[@code="a"]'); - args.isbns.push(isbn.textContent); + text = isbn.textContent; + FOR q IN isbn.findnodes('../*[@code="q"]'); + text = text _ ' ' _ q.textContent; + LAST; # Should only be 1, but just makin' sure. + END; + args.isbns.push(text); END; # UPCs can be identified either by ind1="1" or subfield 2 of "upc"