Limit display to 856 with ind1 = 4 and ind2 = 0 or 1.
authorJason Stephenson <jstephenson@mvlc.org>
Mon, 21 Nov 2011 18:47:30 +0000 (13:47 -0500)
committerDan Scott <dscott@laurentian.ca>
Mon, 21 Nov 2011 19:08:26 +0000 (14:08 -0500)
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>
Open-ILS/src/templates/opac/parts/misc_util.tt2

index 1657bd6..db30d6b 100644 (file)
@@ -39,7 +39,7 @@
 
         # 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"]');