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

(-)a/Koha/SearchEngine/Elasticsearch/Search.pm (-7 / +4 lines)
Lines 207-218 sub search_auth_compat { Link Here
207
        my $record = $es_record->{'_source'};
207
        my $record = $es_record->{'_source'};
208
        my %result;
208
        my %result;
209
209
210
        # I wonder if these should be real values defined in the mapping
210
        # We are using the authid to create links, we should honor the authid as stored in the db, not
211
        # rather than hard-coded conversions.
211
        # the 001 which, in some circumstances, can contain other data
212
        #my $record    = $_[0];
212
        my $authid = $es_record->{_id};
213
        # Handle legacy nested arrays indexed with splitting enabled.
213
214
        my $authid = $record->{ 'local-number' }[0];
215
        $authid = @$authid[0] if (ref $authid eq 'ARRAY');
216
214
217
        $result{authid} = $authid;
215
        $result{authid} = $authid;
218
216
219
- 

Return to bug 25229