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

(-)a/Koha/Authority.pm (-2 / +1 lines)
Lines 136-144 sub get_identifiers { Link Here
136
    for my $field ( $record->field('024') ) {
136
    for my $field ( $record->field('024') ) {
137
        my $sf_2 = $field->subfield('2');
137
        my $sf_2 = $field->subfield('2');
138
        my $sf_a = $field->subfield('a');
138
        my $sf_a = $field->subfield('a');
139
        my $sf_6 = $field->subfield('6');
140
        next unless $sf_2 && $sf_a;
139
        next unless $sf_2 && $sf_a;
141
        push @identifiers, {source => $sf_2, number => $sf_a, linkage => $sf_6};
140
        push @identifiers, {source => $sf_2, number => $sf_a, };
142
    }
141
    }
143
142
144
    return \@identifiers;
143
    return \@identifiers;
(-)a/t/db_dependent/Koha/Authorities.t (-3 lines)
Lines 276-287 subtest 'get_identifiers' => sub { Link Here
276
            {
276
            {
277
                source  => 'orcid',
277
                source  => 'orcid',
278
                number  => '0000-0002-1234-5678',
278
                number  => '0000-0002-1234-5678',
279
                linkage => 'https://orcid.org/0000-0002-1234-5678'
280
            },
279
            },
281
            {
280
            {
282
                source => 'scopus',
281
                source => 'scopus',
283
                number => '01234567890',
282
                number => '01234567890',
284
                linkage => 'https://www.scopus.com/authid/detail.uri?authorId=01234567890'
285
            }
283
            }
286
        ]
284
        ]
287
    );
285
    );
288
- 

Return to bug 29897