From d8688878c37ddd25f97f7896ea928405c61aeb37 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 24 Mar 2025 16:39:39 +0000 Subject: [PATCH] Bug 39444: Make Standard consider pubmedid field This field may be added by a plugin or jQuery, so Standard should consider it as a possibility. This patch does not change anything for existing users that do not add a 'pubmed id' field themselves. 1) Enable ILLModule 2) Install the ILL Actions plugin: https://github.com/PTFS-Europe/koha-plugin-ill-actions/releases/tag/v2.0.1 3) Create a new ILL request: http://localhost:8081/cgi-bin/koha/ill/ill-requests.pl?method=create&backend=Standard 4) Pick type: 'Journal article', notice a top pop-up for DOI/PubMed ID now shows. This is coming from the plugin. 5) Add something to the pubmedid input like '123'. Notice the metadata is auto-filled. 6) Add a patron cardnumber '42'. Notice the library is automatically picked. Click 'Create'. 7) On the manage request screen, notice the PubMed ID is not shown. This is because it was not saved. 8) Apply patch and repeat. Signed-off-by: Jeremy Evans --- Koha/ILL/Backend/Standard.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Koha/ILL/Backend/Standard.pm b/Koha/ILL/Backend/Standard.pm index 4f8f3a5ade..3379bd1d52 100644 --- a/Koha/ILL/Backend/Standard.pm +++ b/Koha/ILL/Backend/Standard.pm @@ -946,6 +946,8 @@ sub _get_core_fields { published_date => 'Publication date', published_place => 'Place of publication', publisher => 'Publisher', + pubmedid => 'PubMed ID', + pmid => 'PubMed ID', sponsor => 'Sponsor', studio => 'Studio', title => 'Title', -- 2.39.5