@@ -, +, @@ IndependentBranches is off superserials Manage subscriptions from any branch (only applies when IndependentBranches is used) - would be good to rewrite this to be more clean. --- serials/checkexpiration.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- a/serials/checkexpiration.pl +++ a/serials/checkexpiration.pl @@ -81,7 +81,9 @@ if ($date) { $subscription->{expirationdate} = $expirationdate; next if $expirationdate !~ /\d{4}-\d{2}-\d{2}/; # next if not in ISO format. next if $subscription->{closed}; - if ( ( ref $flags->{serials} and $flags->{serials}->{superserials} ) + if ( !C4::Context->preference("IndependentBranches") + or C4::Context->IsSuperLibrarian() + or ( ref $flags->{serials} and $flags->{serials}->{superserials} ) or ( !ref $flags->{serials} and $flags->{serials} == 1 ) ) { $subscription->{cannotedit} = 0; @@ -107,7 +109,8 @@ if ($date) { my $branchname; my $branches_loop; -if ( C4::Context->IsSuperLibrarian() +if ( !C4::Context->preference("IndependentBranches") + or C4::Context->IsSuperLibrarian() or ( ref $flags->{serials} and $flags->{serials}->{superserials} ) or ( !ref $flags->{serials} and $flags->{serials} == 1 ) ) { --