LP 1319560: Fix the disappearing hold button.
authorJason Stephenson <jstephenson@mvlc.org>
Thu, 15 May 2014 15:31:56 +0000 (11:31 -0400)
committerBen Shum <bshum@biblio.org>
Fri, 19 Sep 2014 00:10:44 +0000 (20:10 -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>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/templates/opac/parts/record/summary.tt2

index 7381acd..85f92ca 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">