From 330f585650b9f3910914c924bf79fe1b8949c5b2 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 6 Nov 2024 11:31:03 +0000 Subject: [PATCH] Bug 38376: Add id to openURL as DOI Test plan: 1) Enable ILLModule 2) Login on OPAC (if you haven't already) 3) Access the following openURL link: localhost:8080/cgi-bin/koha/opac-illrequests.pl?atitle=Music%20in%20an%20Emergent%20History%20of%20Psychology.&aulast=Klempe%20SH&backend=Standard&cardnumber=kohaadmin&custom_field=example1&date=2024&id=10.1007%2Fs12124-023-09778-9&genre=article&issn=19363567&issue=1&custom_field2=example2&method=create&opac=1&openurl=1&pages=1-11&spage=1&title=Integrative%20psychological%20%26%20behavioral%20science&volume=58 4) Notice the 'id' is considered a custom field, and is not converted into the DOI native field. 5) Apply patch. Restart plack. Repeat 4. Notice the native field is populated and a custom field entry no longer exists. Signed-off-by: David Nind Signed-off-by: Martin Renvoize --- Koha/ILL/Backend/Standard.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/ILL/Backend/Standard.pm b/Koha/ILL/Backend/Standard.pm index d11d6f338d0..41fc046bfff 100644 --- a/Koha/ILL/Backend/Standard.pm +++ b/Koha/ILL/Backend/Standard.pm @@ -1047,6 +1047,7 @@ sub _openurl_to_ill { isbn => 'isbn', issn => 'issn', rft_id => 'doi', + id => 'doi', doi => 'doi', year => 'year', title => 'title', -- 2.47.0