View | Details | Raw Unified | Return to bug 8436
Collapse All | Expand All

(-)a/serials/checkexpiration.pl (-3 / +5 lines)
Lines 81-87 if ($date) { Link Here
81
        $subscription->{expirationdate} = $expirationdate;
81
        $subscription->{expirationdate} = $expirationdate;
82
        next if $expirationdate !~ /\d{4}-\d{2}-\d{2}/; # next if not in ISO format.
82
        next if $expirationdate !~ /\d{4}-\d{2}-\d{2}/; # next if not in ISO format.
83
        next if $subscription->{closed};
83
        next if $subscription->{closed};
84
        if (   ( ref $flags->{serials} and $flags->{serials}->{superserials} )
84
        if (   !C4::Context->preference("IndependentBranches") 
85
            or C4::Context->IsSuperLibrarian()
86
            or ( ref $flags->{serials} and $flags->{serials}->{superserials} )
85
            or ( !ref $flags->{serials} and $flags->{serials} == 1 ) )
87
            or ( !ref $flags->{serials} and $flags->{serials} == 1 ) )
86
        {
88
        {
87
            $subscription->{cannotedit} = 0;
89
            $subscription->{cannotedit} = 0;
Lines 107-113 if ($date) { Link Here
107
109
108
my $branchname;
110
my $branchname;
109
my $branches_loop;
111
my $branches_loop;
110
if (   C4::Context->IsSuperLibrarian()
112
if (  !C4::Context->preference("IndependentBranches")
113
    or C4::Context->IsSuperLibrarian()
111
    or ( ref $flags->{serials}  and $flags->{serials}->{superserials} )
114
    or ( ref $flags->{serials}  and $flags->{serials}->{superserials} )
112
    or ( !ref $flags->{serials} and $flags->{serials} == 1 ) )
115
    or ( !ref $flags->{serials} and $flags->{serials} == 1 ) )
113
{
116
{
114
- 

Return to bug 8436