From 22c60f1fde273bf408d2e129a213e37516b74b91 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 18 Dec 2023 16:11:09 -0100 Subject: [PATCH] Bug 35604: ILL request creation with AutoILLBackendPriority enabled --- Koha/ILL/Backend/intra-includes/create.inc | 7 ++++++- Koha/ILL/Backend/opac-includes/create.inc | 7 ++++++- koha-tmpl/intranet-tmpl/prog/en/includes/ill-toolbar.inc | 6 +++++- .../opac-tmpl/bootstrap/en/modules/opac-illrequests.tt | 6 +++++- 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/Koha/ILL/Backend/intra-includes/create.inc b/Koha/ILL/Backend/intra-includes/create.inc index 1df44f2974..d34218bd69 100644 --- a/Koha/ILL/Backend/intra-includes/create.inc +++ b/Koha/ILL/Backend/intra-includes/create.inc @@ -1,3 +1,4 @@ +[% USE Koha %] [% SET koha_version = Koha.Version %] [% cwd = whole.cwd %] [% PROCESS "${cwd}/shared-includes/form_input_helpers.inc" %] @@ -16,7 +17,11 @@ [% END %] [% IF whole.stage == "form" %] -

Create a manual ILL request

+[% IF Koha.Preference('AutoILLBackendPriority') %] +

Create an automatic ILL request

+[% ELSE %] +

Create a manual ILL request

+[% END %]
[% INCLUDE 'csrf-token.inc' %]
diff --git a/Koha/ILL/Backend/opac-includes/create.inc b/Koha/ILL/Backend/opac-includes/create.inc index 13078deae2..6beb4514d3 100644 --- a/Koha/ILL/Backend/opac-includes/create.inc +++ b/Koha/ILL/Backend/opac-includes/create.inc @@ -1,3 +1,4 @@ +[% USE Koha %] [% PROCESS 'i18n.inc' %] [% cwd = whole.cwd %] [% PROCESS "${cwd}/shared-includes/form_input_helpers.inc" %] @@ -19,7 +20,11 @@ [% SET opac = whole.value.other.opac %] [% IF whole.stage == "form" %] -

Create a manual ILL request

+[% IF Koha.Preference('AutoILLBackendPriority') %] +

Create an automatic ILL request

+[% ELSE %] +

Create a manual ILL request

+[% END %] [% INCLUDE 'csrf-token.inc' %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/ill-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/ill-toolbar.inc index ad219397b9..b8c07c1e0c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/ill-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/ill-toolbar.inc @@ -2,7 +2,11 @@ [% IF Koha.Preference('ILLModule') && CAN_user_ill %]
[% IF backends_available %] - [% IF backends.size > 1 %] + [% IF Koha.Preference('AutoILLBackendPriority') %] + + New auto ILL request + + [% ELSIF backends.size > 1 %]