Block "Place Hold" link in TPAC if item is available
authorArt Rhyno <art632000@yahoo.ca>
Fri, 27 Jul 2012 15:39:14 +0000 (11:39 -0400)
committerDan Scott <dscott@laurentian.ca>
Wed, 1 Aug 2012 14:27:13 +0000 (10:27 -0400)
Suppress the display of the "Place Hold" link based on whether an item
is available. This is set as a preference in config.tt2. Some sites
may want the ability to place holds regardless of availability.

Signed-off-by: Art Rhyno <art632000@yahoo.ca>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Conflicts:
Open-ILS/src/templates/opac/parts/config.tt2

Open-ILS/src/templates/opac/parts/config.tt2

index bb08435..f23ef4d 100644 (file)
@@ -8,8 +8,11 @@
 ##############################################################################
 # Holds blocking
 ##############################################################################
-# Block the ability to place holds if item is available
-ctx.holds_block.enabled = 'true';
+# Prevent the "Place hold" link from being displayed if a copy is available.
+# This is not perfect, given the umpteen different types of holds that are
+# possible, but addresses the major use case for libraries that don't want
+# to fetch copies from the shelves.
+ctx.holds_block.enabled = 'false';
 
 ##############################################################################
 # RefWorks configuration