Bugzilla – Attachment 189620 Details for
Bug 41249
ILL batches should be compatible with AutoILLBackendPriority
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41249: Update toolbar batches button logic
Bug-41249-Update-toolbar-batches-button-logic.patch (text/plain), 2.95 KB, created by
Pedro Amorim
on 2025-11-14 16:33:02 UTC
(
hide
)
Description:
Bug 41249: Update toolbar batches button logic
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2025-11-14 16:33:02 UTC
Size:
2.95 KB
patch
obsolete
>From 0f476f997dbea299edfba32f260a9d1cdc06d098 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@openfifth.co.uk> >Date: Thu, 13 Nov 2025 14:15:45 +0000 >Subject: [PATCH] Bug 41249: Update toolbar batches button logic > >Same behaviour as regular 'new ILL request' button, i.e. if AutoILLBackendPriorty sys pref is being used, do not present the backend options upon clicking 'new batch' >--- > .../prog/en/includes/ill-toolbar.inc | 24 +++++++++++-------- > 1 file changed, 14 insertions(+), 10 deletions(-) > >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 1c85da4f629..027da3ba215 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/ill-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/ill-toolbar.inc >@@ -26,16 +26,20 @@ > [% END %] > [% IF have_batch.size > 0 && metadata_enrichment_services %] > <div id="ill-batch"> >- <div class="dropdown btn-group"> >- <button class="btn btn-default dropdown-toggle" type="button" id="ill-batch-backend-dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> >- <i class="fa fa-plus"></i> New ILL requests batch >- </button> >- <ul class="dropdown-menu" aria-labelledby="ill-batch-backend-dropdown"> >- [% FOREACH backend IN have_batch %] >- <li><a class="dropdown-item" href="#" role="button" onclick="window.openBatchModal(null, '[% backend | html %]')">[% backend | html %]</a></li> >- [% END %] >- </ul> >- </div> >+ [% IF Koha.Preference('AutoILLBackendPriority') %] >+ <a class="btn btn-default" href="#" role="button" onclick="window.openBatchModal(null, 'Standard')"> <i class="fa fa-plus"></i> New ILL requests batch </a> >+ [% ELSE %] >+ <div class="dropdown btn-group"> >+ <button class="btn btn-default dropdown-toggle" type="button" id="ill-batch-backend-dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> >+ <i class="fa fa-plus"></i> New ILL requests batch >+ </button> >+ <ul class="dropdown-menu" aria-labelledby="ill-batch-backend-dropdown"> >+ [% FOREACH backend IN have_batch %] >+ <li><a class="dropdown-item" href="#" role="button" onclick="window.openBatchModal(null, '[% backend | html %]')">[% backend | html %]</a></li> >+ [% END %] >+ </ul> >+ </div> >+ [% END %] > <a class="btn btn-default" type="button" href="/cgi-bin/koha/ill/ill-requests.pl?method=batch_list"> <i class="fa fa-tasks"></i> Batch requests </a> > </div> > [% END %] >-- >2.39.5
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 41249
:
189619
| 189620 |
189621
|
189622