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

(-)a/C4/Linker/Default.pm (-10 / +11 lines)
Lines 30-41 sub get_link { Link Here
30
    my $heading     = shift;
30
    my $heading     = shift;
31
    my $behavior    = shift || 'default';
31
    my $behavior    = shift || 'default';
32
    my $search_form = $heading->search_form();
32
    my $search_form = $heading->search_form();
33
    my $auth_type = $heading->auth_type();
33
    my $authid;
34
    my $authid;
34
    my $fuzzy = 0;
35
    my $fuzzy = 0;
35
36
36
    if ( $self->{'cache'}->{$search_form}->{'cached'} ) {
37
    if ( $self->{'cache'}->{$search_form.$auth_type}->{'cached'} ) {
37
        $authid = $self->{'cache'}->{$search_form}->{'authid'};
38
        $authid = $self->{'cache'}->{$search_form.$auth_type}->{'authid'};
38
        $fuzzy  = $self->{'cache'}->{$search_form}->{'fuzzy'};
39
        $fuzzy  = $self->{'cache'}->{$search_form.$auth_type}->{'fuzzy'};
39
    }
40
    }
40
    else {
41
    else {
41
42
Lines 72-80 sub get_link { Link Here
72
            }
73
            }
73
        }
74
        }
74
75
75
        $self->{'cache'}->{$search_form}->{'cached'} = 1;
76
        $self->{'cache'}->{$search_form.$auth_type}->{'cached'} = 1;
76
        $self->{'cache'}->{$search_form}->{'authid'} = $authid;
77
        $self->{'cache'}->{$search_form.$auth_type}->{'authid'} = $authid;
77
        $self->{'cache'}->{$search_form}->{'fuzzy'}  = $fuzzy;
78
        $self->{'cache'}->{$search_form.$auth_type}->{'fuzzy'}  = $fuzzy;
78
    }
79
    }
79
    return $self->SUPER::_handle_auth_limit($authid), $fuzzy;
80
    return $self->SUPER::_handle_auth_limit($authid), $fuzzy;
80
}
81
}
Lines 84-94 sub update_cache { Link Here
84
    my $heading     = shift;
85
    my $heading     = shift;
85
    my $authid      = shift;
86
    my $authid      = shift;
86
    my $search_form = $heading->search_form();
87
    my $search_form = $heading->search_form();
88
    my $auth_type = $heading->auth_type();
87
    my $fuzzy = 0;
89
    my $fuzzy = 0;
88
90
89
    $self->{'cache'}->{$search_form}->{'cached'} = 1;
91
    $self->{'cache'}->{$search_form.$auth_type}->{'cached'} = 1;
90
    $self->{'cache'}->{$search_form}->{'authid'} = $authid;
92
    $self->{'cache'}->{$search_form.$auth_type}->{'authid'} = $authid;
91
    $self->{'cache'}->{$search_form}->{'fuzzy'}  = $fuzzy;
93
    $self->{'cache'}->{$search_form.$auth_type}->{'fuzzy'}  = $fuzzy;
92
}
94
}
93
95
94
sub flip_heading {
96
sub flip_heading {
95
- 

Return to bug 21450