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

(-)a/Koha/SuggestionEngine/Plugin/AuthorityFile.pm (-1 / +1 lines)
Lines 80-86 sub get_suggestions { Link Here
80
          {
80
          {
81
            'search'  => "an=$auth->{'authid'}",
81
            'search'  => "an=$auth->{'authid'}",
82
            relevance => $count--,
82
            relevance => $count--,
83
            label     => $auth->{summary}->{authorized}->[0]
83
            label     => $auth->{summary}->{authorized}->[0]->{heading}
84
          };
84
          };
85
    }
85
    }
86
    return \@results;
86
    return \@results;
(-)a/t/SuggestionEngine_AuthorityFile.t (-2 / +1 lines)
Lines 22-28 $module->mock('SearchAuthorities', sub { Link Here
22
                    'reported_tag' => undef,
22
                    'reported_tag' => undef,
23
                    'even' => 0,
23
                    'even' => 0,
24
                    'summary' => {
24
                    'summary' => {
25
                        'authorized' => [ 'Cooking' ],
25
                        'authorized' => [ { 'heading' => 'Cooking' } ],
26
                        'otherscript' => [],
26
                        'otherscript' => [],
27
                        'seefrom' => [ 'Cookery' ],
27
                        'seefrom' => [ 'Cookery' ],
28
                        'notes' => [ 'Your quintessential poor heading selection' ],
28
                        'notes' => [ 'Your quintessential poor heading selection' ],
29
- 

Return to bug 8209