From 19f958041036886ee03277a0dd6db6015c2142dc Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 25 Oct 2024 15:54:49 +0000 Subject: [PATCH] Bug 38276: Add DOI to openURL 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&doi=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 DOI is considered a custom field, and the actual DOI native field is not populated. 5) Apply patch. Repeat 4. Notice the native field is populated and is no longer a custom field entry. Original patch: https://github.com/PTFS-Europe/koha-ill-freeform/commit/6f00282af427aae632c274e647ef0d61a78fd819 Signed-off-by: David Nind Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- 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 98e9cf463a..bb03a9bd33 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', + doi => 'doi', year => 'year', title => 'title', author => 'author', -- 2.39.5