Bugzilla – Attachment 175832 Details for
Bug 35604
ILL - Allow for automatic backend selection
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35604: ILL request creation with AutoILLBackendPriority enabled
Bug-35604-ILL-request-creation-with-AutoILLBackend.patch (text/plain), 4.60 KB, created by
Pedro Amorim
on 2024-12-20 12:11:24 UTC
(
hide
)
Description:
Bug 35604: ILL request creation with AutoILLBackendPriority enabled
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-12-20 12:11:24 UTC
Size:
4.60 KB
patch
obsolete
>From 5f8806a5c3faa111108336fc4c1a472a0c1b5885 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Mon, 18 Dec 2023 16:11:09 -0100 >Subject: [PATCH] Bug 35604: ILL request creation with AutoILLBackendPriority > enabled > >Signed-off-by: David Nind <david@davidnind.com> >--- > 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 2e9bfb837d7..8c40cf2659a 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" %] >-<h2>Create a manual ILL request</h2> >+[% IF Koha.Preference('AutoILLBackendPriority') %] >+ <h2>Create an automatic ILL request</h2> >+[% ELSE %] >+ <h2>Create a manual ILL request</h2> >+[% END %] > <form id="create_form" method="POST" action=""> > [% INCLUDE 'csrf-token.inc' %] > <fieldset class="rows"> >diff --git a/Koha/ILL/Backend/opac-includes/create.inc b/Koha/ILL/Backend/opac-includes/create.inc >index 3e8f5581c4e..346376bb898 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" %] >@@ -29,7 +30,11 @@ > [% SET opac = whole.value.other.opac %] > > [% IF whole.stage == "form" %] >-<h2>Create a manual ILL request</h2> >+[% IF Koha.Preference('AutoILLBackendPriority') %] >+ <h2>Create an automatic ILL request</h2> >+[% ELSE %] >+ <h2>Create a manual ILL request</h2> >+[% END %] > <form id="create_form" method="POST" action=""> > [% INCLUDE 'csrf-token.inc' %] > <fieldset class="rows"> >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 702681c69ab..bbf1139a85a 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 %] > <div id="toolbar" class="btn-toolbar ill-toolbar"> > [% IF backends_available %] >- [% IF backends.size > 1 %] >+ [% IF Koha.Preference('AutoILLBackendPriority') %] >+ <a id="ill-new" class="btn btn-default" href="/cgi-bin/koha/ill/ill-requests.pl?method=create&backend=Standard"> >+ <i class="fa fa-plus"></i> New auto ILL request >+ </a> >+ [% ELSIF backends.size > 1 %] > <div class="dropdown btn-group"> > <button class="btn btn-default dropdown-toggle" type="button" id="ill-backend-dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> > <i class="fa fa-plus"></i> New ILL request >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt >index 1bb129242f5..851e7111981 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt >@@ -119,7 +119,11 @@ > > [% IF can_patron_place_ill_in_opac %] > <div id="illrequests-create-button" class="dropdown btn-group"> >- [% IF backends.size > 1 %] >+ [% IF Koha.Preference('AutoILLBackendPriority') %] >+ <a id="ill-new" class="btn btn-primary" href="/cgi-bin/koha/opac-illrequests.pl?method=create&backend=Standard"> >+ <i class="fa fa-plus" aria-hidden="true"></i> Create a new request >+ </a> >+ [% ELSIF backends.size > 1 %] > <button class="btn btn-primary dropdown-toggle" type="button" id="ill-backend-dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> > <i class="fa fa-plus" aria-hidden="true"></i> Create a new request <span class="caret"></span> > </button> >-- >2.43.0
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 35604
:
160035
|
164883
|
164884
|
164885
|
164886
|
164887
|
164888
|
165135
|
165164
|
165165
|
165294
|
165295
|
165296
|
165297
|
165298
|
165299
|
165300
|
166897
|
166898
|
166899
|
166900
|
166901
|
166902
|
166903
|
166995
|
166996
|
166997
|
166998
|
166999
|
167000
|
167001
|
171326
|
171327
|
171328
|
171329
|
171330
|
171331
|
171332
|
174515
|
174516
|
174517
|
174518
|
174519
|
174520
|
174521
|
174522
|
174524
|
174792
|
175828
|
175829
|
175830
|
175831
|
175832
|
175833
|
175834
|
175835
|
175836
|
176036
|
176261
|
176262
|
176263
|
176264
|
176265
|
176266
|
176267
|
176268
|
176269
|
176270
|
176572
|
176662
|
176681
|
176682
|
176683
|
176684
|
176685
|
176686
|
176687
|
176688
|
176689
|
176690
|
176691
|
176692