Lines 399-405
my %is_nolimit = map { $_ => 1 } @nolimits;
Link Here
|
399 |
if($params->{'multibranchlimit'}) { |
399 |
if($params->{'multibranchlimit'}) { |
400 |
my $search_group = Koha::Library::Groups->find( $params->{multibranchlimit} ); |
400 |
my $search_group = Koha::Library::Groups->find( $params->{multibranchlimit} ); |
401 |
my @libraries = $search_group->all_libraries; |
401 |
my @libraries = $search_group->all_libraries; |
402 |
my $multibranch = '('.join( " or ", map { 'branch: ' . $_->id } @libraries ) .')'; |
402 |
my $multibranch = '('.join( " or ", map { 'branch: ' . $_->branchcode } @libraries ) .')'; |
403 |
push @limits, $multibranch if ($multibranch ne '()'); |
403 |
push @limits, $multibranch if ($multibranch ne '()'); |
404 |
} |
404 |
} |
405 |
|
405 |
|