LP#1736419: Located URIs vs QueryParser, round 2, part deux
authorMike Rylander <mrylander@gmail.com>
Fri, 5 Jan 2018 22:04:53 +0000 (17:04 -0500)
committerKathy Lussier <klussier@masslnc.org>
Tue, 9 Jan 2018 23:59:24 +0000 (18:59 -0500)
Now we will be less strict about the 'act_as_copy' flag, and only check for
enabledness, rather than the truth of its value column.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm

index 5e5ac44..e84efa2 100644 (file)
@@ -1342,11 +1342,7 @@ sub flatten {
 
     my $lorgs = [@$aorgs];
     my $luri_as_copy_gf = $U->get_global_flag('opac.located_uri.act_as_copy');
-    push @$lorgs, @$dorgs if (
-        $luri_as_copy_gf
-        and $U->is_true($luri_as_copy_gf->enabled)
-        and $U->is_true($luri_as_copy_gf->value)
-    );
+    push @$lorgs, @$dorgs if ($luri_as_copy_gf and $U->is_true($luri_as_copy_gf->enabled));
 
     $uses_bre = 1;
     push @{$vis_filter{'b_attr'}},