Bug 29897: Remove 'linkage' leftover
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 29 Jul 2022 16:28:03 +0000 (18:28 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 9 Aug 2022 13:58:48 +0000 (10:58 -0300)
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Authority.pm
t/db_dependent/Koha/Authorities.t

index 0a6d30c..ff45d20 100644 (file)
@@ -136,9 +136,8 @@ sub get_identifiers {
     for my $field ( $record->field('024') ) {
         my $sf_2 = $field->subfield('2');
         my $sf_a = $field->subfield('a');
-        my $sf_6 = $field->subfield('6');
         next unless $sf_2 && $sf_a;
-        push @identifiers, {source => $sf_2, number => $sf_a, linkage => $sf_6};
+        push @identifiers, {source => $sf_2, number => $sf_a, };
     }
 
     return \@identifiers;
index a9c507d..5dbfaaa 100755 (executable)
@@ -276,12 +276,10 @@ subtest 'get_identifiers' => sub {
             {
                 source  => 'orcid',
                 number  => '0000-0002-1234-5678',
-                linkage => 'https://orcid.org/0000-0002-1234-5678'
             },
             {
                 source => 'scopus',
                 number => '01234567890',
-                linkage => 'https://www.scopus.com/authid/detail.uri?authorId=01234567890'
             }
         ]
     );