From: Kathy Lussier Date: Fri, 1 Aug 2014 11:44:24 +0000 (-0400) Subject: lp1350827 Non-located URI display changes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=59e0c71bd99283b36d9447596af29366f8b0c11e;p=working%2FEvergreen.git lp1350827 Non-located URI display changes Make non-located URI's display in a similar fashion as located URI's. Now, the label will come from either $y or $3 in that order and the access note will come from either $z or $2 in that order. Also, we'll now support display of the URI with a 1 in ind1. Signed-off-by: Kathy Lussier --- diff --git a/Open-ILS/src/templates/opac/parts/misc_util.tt2 b/Open-ILS/src/templates/opac/parts/misc_util.tt2 index 4a0cf58533..d266b9237c 100644 --- a/Open-ILS/src/templates/opac/parts/misc_util.tt2 +++ b/Open-ILS/src/templates/opac/parts/misc_util.tt2 @@ -282,10 +282,10 @@ # Extract the 856 URLs that are not otherwise represented by asset.uri's args.online_res = []; - FOR node IN xml.findnodes('//*[@tag="856" and @ind1="4" and (@ind2="0" or @ind2="1")]'); + FOR node IN xml.findnodes('//*[@tag="856" and (@ind1="1" or @ind1="4") and (@ind2="0" or @ind2="1")]'); IF node.findnodes('./*[@code="9" or @code="w" or @code="n"]'); NEXT; END; # asset.uri's - label = node.findnodes('./*[@code="y"]'); - notes = node.findnodes('./*[@code="z" or @code="3"]'); + label = node.findnodes('./*[@code="y" or @code="3"][1]'); + notes = node.findnodes('./*[@code="z" or @code="2"][1]'); FOR href IN node.findnodes('./*[@code="u"]'); NEXT UNLESS href; # it's possible for multiple $u's to exist within 1 856 tag.