Bugzilla – Attachment 174099 Details for
Bug 38376
ILL Standard form does not consider id in openURL
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38376: Add id to openURL as DOI
Bug-38376-Add-id-to-openURL-as-DOI.patch (text/plain), 1.47 KB, created by
David Nind
on 2024-11-06 22:23:59 UTC
(
hide
)
Description:
Bug 38376: Add id to openURL as DOI
Filename:
MIME Type:
Creator:
David Nind
Created:
2024-11-06 22:23:59 UTC
Size:
1.47 KB
patch
obsolete
>From 2fa9c4adf8fc4beb6b49d44fa43e215f21aac79a Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >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 <david@davidnind.com> >--- > 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 d11d6f338d..41fc046bff 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.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38376
:
174073
|
174099
|
174286