Minor modification to Open-ILS/src/templates/opac/parts/
misc_util.tt2 that limits the display of 856 urls to that have
indicator 1 equal to 4 and indicator 2 equal to 0 or 1. These should
be those that point directly to the resource.
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
# Extract the 856 URLs that are not otherwise represented by asset.uri's
args.online_res = [];
- FOR node IN xml.findnodes('//*[@tag="856"]');
+ FOR node IN xml.findnodes('//*[@tag="856" and @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"]');