From 2799cac081c08a260f67e643cbc8e0d640d25d4c Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 7 Feb 2023 14:48:02 +0000 Subject: [PATCH] Bug 21548: ILLLIBS patron category / partner_code seems extraneous This patch updates the default partner category used by the partner_code config to be in line with sample data in sample_patrons.yml Preparation: Apply patch Enable ILLModule sys pref Install an ILL backend (e.g. FreeForm) Add this change to your koha-conf.xml Flush, restart. Search for patron of category inter-library loan and assign a primary e-mail address to it Test plan: Create an ILL request and click 'place request with partners' Verify that the 'select partner libraries' has the correct patron of IL category Run tests and ensure they pass: prove t/db_dependent/Illrequest/Config.t prove t/Koha/Config.t Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi --- Koha/Illrequest/Config.pm | 4 ++-- debian/templates/koha-conf-site.xml.in | 4 ++-- etc/koha-conf.xml | 4 ++-- .../intranet-tmpl/prog/en/modules/about.tt | 2 +- .../prog/en/modules/ill/ill-requests.tt | 2 +- t/Koha/Config.t | 2 +- t/data/koha-conf.xml | 4 ++-- t/db_dependent/Illrequest/Config.t | 22 +++++++++---------- 8 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Koha/Illrequest/Config.pm b/Koha/Illrequest/Config.pm index 82b77685ac..02dac2ca65 100644 --- a/Koha/Illrequest/Config.pm +++ b/Koha/Illrequest/Config.pm @@ -255,7 +255,7 @@ sub _load_configuration { limits => {}, digital_recipients => {}, prefixes => {}, - partner_code => 'ILLLIBS', + partner_code => 'IL', raw_config => $xml_config, }; @@ -319,7 +319,7 @@ sub _load_configuration { if ( $reply_date && 'hide' eq $reply_date ); # ILL Partners - $configuration->{partner_code} = $xml_config->{partner_code} || 'ILLLIBS'; + $configuration->{partner_code} = $xml_config->{partner_code} || 'IL'; return $configuration; } diff --git a/debian/templates/koha-conf-site.xml.in b/debian/templates/koha-conf-site.xml.in index 187150fa6a..9feb9bf5b0 100644 --- a/debian/templates/koha-conf-site.xml.in +++ b/debian/templates/koha-conf-site.xml.in @@ -390,8 +390,8 @@ __END_SRU_PUBLICSERVER__ - branch: send the ILL to the branch email --> branch - ILLLIBS + - By default this is set to 'IL' --> + IL branch - ILLLIBS + - By default this is set to 'IL' --> + IL branch - ILLLIBS + - By default this is set to 'IL' --> + IL