Skip to content

Commit

Permalink
Revert VIAF.pm to main
Browse files Browse the repository at this point in the history
  • Loading branch information
moseshll committed Mar 13, 2024
1 parent 643ac41 commit 7a57a7c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cgi/VIAF.pm
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ sub GetVIAFData
{
return {'author' => $ref->[0]->[0],
'birth_year' => $ref->[0]->[1], 'death_year' => $ref->[0]->[2],
'country' => $ref->[0]->[3], 'viafID' => $ref->[0]->[4],
'author_url' => 'http://viaf.org/viaf/' . $ref->[0]->[4]};
'country' => $ref->[0]->[3], 'viafID' => $ref->[0]->[4]};
}
}
$author =~ s/["#]//g;
Expand Down Expand Up @@ -95,7 +94,6 @@ sub GetVIAFData
'country,viafID) VALUES (?,?,?,?,?,?)';
$self->PrepareSubmitSql($sql, $author, $ret->{'author'}, $ret->{'birth_year'},
$ret->{'death_year'}, $ret->{'country'}, $ret->{'viafID'});
$ret->{'author_url'} = 'http://viaf.org/viaf/' . $ret->{'viafID'};
}
$ret->{'url'} = $url;
return $ret;
Expand Down

0 comments on commit 7a57a7c

Please sign in to comment.