Filter out copies that have a monograph part designator when the hold is a non-P...
authorMike Rylander <mrylander@gmail.com>
Fri, 24 Jun 2011 18:55:49 +0000 (14:55 -0400)
committerJason Etheridge <jason@esilibrary.com>
Thu, 7 Jul 2011 19:36:47 +0000 (15:36 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm

index c9743e2..ca1e0df 100644 (file)
@@ -1270,7 +1270,8 @@ sub new_hold_copy_targeter {
                                                isTrue($_->location->holdable) && 
                                                isTrue($_->holdable) &&
                                                !isTrue($_->deleted) &&
-                                               (isTrue($hold->mint_condition) ? isTrue($_->mint_condition) : 1)
+                                               (isTrue($hold->mint_condition) ? isTrue($_->mint_condition) : 1) &&
+                                               ($hold->hold_type ne 'P' ? @{ $_->part_maps } == 0 : 1)
                                        } @$all_copies;
 
                        # let 'em know we're still working