use Carp;
use base qw(Koha::SuggestionEngine::Base);
-our $NAME = 'AuthorityFile';
-our $VERSION = '1.0';
+
+=head2 NAME
+ my $name = $plugin->NAME;
+
+=cut
+
+sub NAME {
+ return 'AuthorityFile';
+}
+
+=head2 VERSION
+ my $version = $plugin->VERSION;
+
+=cut
+
+sub VERSION {
+ return '1.1';
+}
=head2 get_suggestions
{
'search' => "an=$auth->{'authid'}",
relevance => $count--,
- label => $auth->{summary}->{authorized}->[0]
+ label => $auth->{summary}->{authorized}->[0]->{heading}
};
}
return \@results;
}
+
+1;