Lines 33-38
sub get_link {
Link Here
|
33 |
my $auth_type = $heading->auth_type(); |
33 |
my $auth_type = $heading->auth_type(); |
34 |
my $authid; |
34 |
my $authid; |
35 |
my $fuzzy = 0; |
35 |
my $fuzzy = 0; |
|
|
36 |
my $match_count; |
36 |
|
37 |
|
37 |
if ( $self->{'cache'}->{$search_form.$auth_type}->{'cached'} ) { |
38 |
if ( $self->{'cache'}->{$search_form.$auth_type}->{'cached'} ) { |
38 |
$authid = $self->{'cache'}->{$search_form.$auth_type}->{'authid'}; |
39 |
$authid = $self->{'cache'}->{$search_form.$auth_type}->{'authid'}; |
Lines 42-47
sub get_link {
Link Here
|
42 |
|
43 |
|
43 |
# look for matching authorities |
44 |
# look for matching authorities |
44 |
my $authorities = $heading->authorities(1); # $skipmetadata = true |
45 |
my $authorities = $heading->authorities(1); # $skipmetadata = true |
|
|
46 |
$match_count = scalar @$authorities; |
45 |
|
47 |
|
46 |
if ( $behavior eq 'default' && $#{$authorities} == 0 ) { |
48 |
if ( $behavior eq 'default' && $#{$authorities} == 0 ) { |
47 |
$authid = $authorities->[0]->{'authid'}; |
49 |
$authid = $authorities->[0]->{'authid'}; |
Lines 77-83
sub get_link {
Link Here
|
77 |
$self->{'cache'}->{$search_form.$auth_type}->{'authid'} = $authid; |
79 |
$self->{'cache'}->{$search_form.$auth_type}->{'authid'} = $authid; |
78 |
$self->{'cache'}->{$search_form.$auth_type}->{'fuzzy'} = $fuzzy; |
80 |
$self->{'cache'}->{$search_form.$auth_type}->{'fuzzy'} = $fuzzy; |
79 |
} |
81 |
} |
80 |
return $self->SUPER::_handle_auth_limit($authid), $fuzzy; |
82 |
return $self->SUPER::_handle_auth_limit($authid), $fuzzy, $match_count; |
81 |
} |
83 |
} |
82 |
|
84 |
|
83 |
sub update_cache { |
85 |
sub update_cache { |
84 |
- |
|
|