LP 1319560: Another fix for summary.tt2.
authorJason Stephenson <jstephenson@mvlc.org>
Mon, 19 May 2014 13:19:49 +0000 (09:19 -0400)
committerBen Shum <bshum@biblio.org>
Fri, 19 Sep 2014 00:10:52 +0000 (20:10 -0400)
Argument "" isn't numeric in numeric gt (>) at
/openils/var/templates/opac/parts/record/summary.tt2 line 56.

It was apparently coming from the .size and not where I thought.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/templates/opac/parts/record/summary.tt2

index 85f92ca..10bba56 100644 (file)
@@ -42,7 +42,7 @@
         <div id="rdetail_actions_div">
             [%- search_ou = ctx.search_ou;
                 IF ctx.place_unfillable ||
-                    ( attrs.marc_xml.findnodes('//*[local-name()="holdings" and @has_holdable="true"]').size > 0
+                    ( attrs.marc_xml.findnodes('//*[local-name()="holdings" and @has_holdable="true"]').size
                         && (ctx.holds_block.enabled != 'true' || !attrs.org_copy_counts.$search_ou.available)
                     )
              %]