@@ -, +, @@ --- installer/data/mysql/atomicupdate/bug_35604.pl | 14 ++++++++++++++ installer/data/mysql/mandatory/sysprefs.sql | 1 + .../admin/preferences/interlibrary_loans.pref | 5 +++++ 3 files changed, 20 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_35604.pl --- a/installer/data/mysql/atomicupdate/bug_35604.pl +++ a/installer/data/mysql/atomicupdate/bug_35604.pl @@ -0,0 +1,14 @@ +use Modern::Perl; +return { + bug_number => "35604", + description => "Add new AutoILLBackendPriority system preferences", + up => sub { + my ($args) = @_; + my ( $dbh, $out ) = @$args{qw(dbh out)}; + + $dbh->do( + q{ INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('AutoILLBackendPriority','',NULL,'Set the automatic backend selection priority','ILLBackends'); } + ); + say $out "Added new system preference 'AutoILLBackendPriority'"; + }, +}; --- a/installer/data/mysql/mandatory/sysprefs.sql +++ a/installer/data/mysql/mandatory/sysprefs.sql @@ -313,6 +313,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('IllLog', 0, '', 'If ON, log information about ILL requests', 'YesNo'), ('ILLModule','0','If ON, enables the interlibrary loans module.','','YesNo'), ('ILLModuleDisclaimerByType','','','YAML defining disclaimer settings for each ILL request type','Textarea'), +('AutoILLBackendPriority','',NULL,'Set the automatic backend selection priority','ILLBackends'), ('ILLModuleUnmediated','0','','If enabled, try to immediately progress newly placed ILL requests.','YesNo'), ('ILLOpacbackends',NULL,NULL,'ILL backends to enabled for OPAC initiated requests','multiple'), ('ILLPartnerCode','IL','','Patrons from this patron category will be used as partners to place ILL requests with','free'), --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/interlibrary_loans.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/interlibrary_loans.pref @@ -77,3 +77,8 @@ Interlibrary loans: type: textarea syntax: text/x-yaml class: code + - + - "Select which backends will be queried for availability and in what order of priority. The first available backend will be suggested to place the request with.
" + - "If no backend is selected, automatic backend selection will not take place." + - pref: AutoILLBackendPriority + type: ill-backends --