Bug 38928: (QA follow-up)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit ce15eacc5e)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Baptiste Wojtkowski 2025-06-13 10:29:11 +02:00 committed by Paul Derscheid
parent 9c1de15a5f
commit 72f202dfad
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 2 additions and 2 deletions

View File

@ -1095,7 +1095,7 @@ sub _openurl_to_ill {
# Otherwise, pass it through untransformed and maybe move it
# to our custom parameters array
if ( !exists $ignore->{$meta_key} ) {
if ($meta_key eq 'id' || $meta_key eq 'rft_id') {
if ( $meta_key eq 'id' || $meta_key eq 'rft_id' ) {
if ( $params->{other}->{$meta_key} =~ /:/ ) {
my ( $k, $v ) = split /:/, $params->{other}->{$meta_key}, 2;
if ( defined $k && defined $v ) {
@ -1104,7 +1104,7 @@ sub _openurl_to_ill {
} else {
$return->{doi} = $params->{other}->{$meta_key};
}
}else{
} else {
push @{$custom_key}, $meta_key;
push @{$custom_value}, $params->{other}->{$meta_key};
}