Bugzilla – Attachment 191655 Details for
Bug 27248
Allow to use list of barcodes with batch extend due dates tool
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27248: (follow-up) Add tt filter and permission check
Bug-27248-follow-up-Add-tt-filter-and-permission-c.patch (text/plain), 7.25 KB, created by
Katrin Fischer
on 2026-01-19 15:23:53 UTC
(
hide
)
Description:
Bug 27248: (follow-up) Add tt filter and permission check
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2026-01-19 15:23:53 UTC
Size:
7.25 KB
patch
obsolete
>From b29ed8669372f281854b1eb34121c5a26c6b3aaa Mon Sep 17 00:00:00 2001 >From: Brendan Lawlor <blawlor@clamsnet.org> >Date: Thu, 15 Jan 2026 14:40:21 +0000 >Subject: [PATCH] Bug 27248: (follow-up) Add tt filter and permission check > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../modules/reports/guided_reports_start.tt | 52 ++++++++++--------- > .../modules/tools/batch_extend_due_dates.tt | 2 +- > 2 files changed, 29 insertions(+), 25 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >index 86c21a71477..6df24afcc3b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt >@@ -1053,21 +1053,23 @@ > [% END %] > </form> > >- <form method="POST" action="/cgi-bin/koha/tools/batch_extend_due_dates.pl" id="batch_extend_due_dates" target="_blank"> >- [% INCLUDE 'csrf-token.inc' %] >- <input type="hidden" name="op" value="cud-form" /> >- [% FOREACH result IN results %] >- [% FOREACH cells IN result.cells %] >- [% place = loop.index %] >- [% NEXT UNLESS cells.cell.match('^(\d+)$') %] >- [% IF header_row.$place.cell == 'itemnumber' || header_types.item(header_row.$place.cell) == 'itemnumber' %] >- [% SET batch_itemnumbers = 1 %] >- [% SET header_row.$place.has_itemnumbers = 1 %] >- <input type="hidden" name="[% header_row.$place.cell | html %]" value="[% cells.cell | html %]" /> >+ [% IF ( CAN_user_tools_batch_extend_due_dates ) %] >+ <form method="POST" action="/cgi-bin/koha/tools/batch_extend_due_dates.pl" id="batch_extend_due_dates" target="_blank"> >+ [% INCLUDE 'csrf-token.inc' %] >+ <input type="hidden" name="op" value="cud-form" /> >+ [% FOREACH result IN results %] >+ [% FOREACH cells IN result.cells %] >+ [% place = loop.index %] >+ [% NEXT UNLESS cells.cell.match('^(\d+)$') %] >+ [% IF header_row.$place.cell == 'itemnumber' || header_types.item(header_row.$place.cell) == 'itemnumber' %] >+ [% SET batch_itemnumbers = 1 %] >+ [% SET header_row.$place.has_itemnumbers = 1 %] >+ <input type="hidden" name="[% header_row.$place.cell | html %]" value="[% cells.cell | html %]" /> >+ [% END %] > [% END %] > [% END %] >- [% END %] >- </form> >+ </form> >+ [% END %] > > <form method="get" action="/cgi-bin/koha/virtualshelves/addbybiblionumber.pl" id="batch_add_to_list" target="_blank"> > [% FOREACH result IN results %] >@@ -1259,17 +1261,19 @@ > >Batch item deletion</a > > > </li> >- <li> >- <a >- href="#" >- data-submit="batch_extend_due_dates" >- data-bs-toggle="tooltip" >- data-bs-placement="right" >- title="Send visible items to batch extend due dates" >- class="dropdown-item batch_op send_to_extend_due" >- >Batch extend due dates</a >- > >- </li> >+ [% IF ( CAN_user_tools_batch_extend_due_dates ) %] >+ <li> >+ <a >+ href="#" >+ data-submit="batch_extend_due_dates" >+ data-bs-toggle="tooltip" >+ data-bs-placement="right" >+ title="Send visible items to batch extend due dates" >+ class="dropdown-item batch_op send_to_extend_due" >+ >Batch extend due dates</a >+ > >+ </li> >+ [% END %] > [% END %] > [% IF header_ro.cell == 'reserve_id' || header_types.item( header_ro.cell ) == 'reserve_id' %] > <li class="dropdown-header">Hold records</li> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt >index 09972c8d2bd..21b40c053c4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt >@@ -128,7 +128,7 @@ > <label for="barcodelist">Barcode list (one barcode per line): </label> > <textarea rows="10" cols="30" id="barcodelist" name="barcodelist"> > [%- FOREACH item IN items %] >- [%- item.barcode -%] >+ [%- item.barcode | html -%] > [% END -%] > </textarea > > >-- >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 27248
:
184562
|
184563
|
185301
|
185302
|
186205
|
186206
|
186207
|
191499
|
191500
|
191501
|
191502
|
191652
|
191653
|
191654
| 191655