LP 1319560: Fix the disappearing hold button.
authorJason Stephenson <jstephenson@mvlc.org>
Thu, 15 May 2014 15:31:56 +0000 (11:31 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Thu, 15 May 2014 15:42:10 +0000 (11:42 -0400)
Staff discovered an issue with the tt2 changes that caused the
place hold button to disappear when it shouldn't. Changing an &&
back to || seems to fix this.

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

index 30ddd2b..b61106e 100644 (file)
@@ -43,7 +43,7 @@
             [%- search_ou = ctx.search_ou;
                 IF ctx.place_unfillable ||
                     ( attrs.marc_xml.findnodes('//*[local-name()="holdings" and @has_holdable="true"]').size > 0
-                        && (ctx.holds_block.enabled != 'true' && !attrs.org_copy_counts.$search_ou.available)
+                        && (ctx.holds_block.enabled != 'true' || !attrs.org_copy_counts.$search_ou.available)
                     )
              %]
             <div class="rdetail_aux_utils place_hold">