Bugzilla – Attachment 191377 Details for
Bug 41568
Tidy kohaTable block - circ
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41568: Tidy kohaTable - circ/curbside_pickups.tt
Bug-41568-Tidy-kohaTable---circcurbsidepickupstt.patch (text/plain), 3.25 KB, created by
Owen Leonard
on 2026-01-13 18:12:09 UTC
(
hide
)
Description:
Bug 41568: Tidy kohaTable - circ/curbside_pickups.tt
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2026-01-13 18:12:09 UTC
Size:
3.25 KB
patch
obsolete
>From 8531e31dd219eb2d82fe5bea7202bf98915ad772 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jan 2026 12:01:11 +0100 >Subject: [PATCH] Bug 41568: Tidy kohaTable - circ/curbside_pickups.tt > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../prog/en/modules/circ/curbside_pickups.tt | 24 +++++++++++-------- > 1 file changed, 14 insertions(+), 10 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt >index 7360ff45386..1c447c0764e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt >@@ -472,7 +472,19 @@ > <script> > let pickups = [% To.json(curbside_pickups.unblessed) | $raw %]; > let policy = [% To.json(policy.unblessed) | $raw %]; >+ let opening_slots = [% To.json(policy.opening_slots.unblessed) | $raw %]; >+ >+ let dt_settings = []; >+ dt_settings.push( [% TablesSettings.GetTableSettings('circ', 'curbside_pickups', 'to_be_stagedt', 'json') | $raw %] ); >+ dt_settings.push( [% TablesSettings.GetTableSettings('circ', 'curbside_pickups', 'staged_and_readyt', 'json') | $raw %] ); >+ dt_settings.push( [% TablesSettings.GetTableSettings('circ', 'curbside_pickups', 'patron_is_outsidet', 'json') | $raw %] ); >+ dt_settings.push( [% TablesSettings.GetTableSettings('circ', 'curbside_pickups', 'delivered_todayt', 'json') | $raw %] ); >+ >+ const tab = "[% tab | html %]"; > >+ </script> >+ >+ <script> > let existingPickupMoments = []; > pickups.forEach(function(pickup){ > let scheduled_pickup_datetime = pickup.scheduled_pickup_datetime; >@@ -481,7 +493,6 @@ > existingPickupMoments.push(pickupMoment); > }); > >- let opening_slots = [% To.json(policy.opening_slots.unblessed) | $raw %]; > let slots_per_day = {}; > opening_slots.forEach(function(slot){ > let day = slot.day; >@@ -495,9 +506,9 @@ > $('#find-patron').focus(); > }); > >- [% IF tab == 'schedule-pickup_panel' %] >+ if (tab == 'schedule-pickup_panel'){ > $('#find-patron').focus(); >- [% END %] >+ } > > const pickup_date = document.querySelector("#pickup_date"); > if ( pickup_date ) { >@@ -629,13 +640,6 @@ > > set_interval_if_needed(); > >- >- let dt_settings = []; >- dt_settings.push( [% TablesSettings.GetTableSettings('circ', 'curbside_pickups', 'to_be_stagedt', 'json') | $raw %] ); >- dt_settings.push( [% TablesSettings.GetTableSettings('circ', 'curbside_pickups', 'staged_and_readyt', 'json') | $raw %] ); >- dt_settings.push( [% TablesSettings.GetTableSettings('circ', 'curbside_pickups', 'patron_is_outsidet', 'json') | $raw %] ); >- dt_settings.push( [% TablesSettings.GetTableSettings('circ', 'curbside_pickups', 'delivered_todayt', 'json') | $raw %] ); >- > let dt_tables = new Array("to_be_stagedt", "staged_and_readyt", "patron_is_outsidet", "delivered_todayt"); > dt_tables.forEach(function( id, index ){ > $("#" + id).kohaTable({ >-- >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 41568
:
191111
|
191112
|
191113
|
191114
|
191115
|
191116
|
191117
|
191118
|
191119
|
191120
|
191121
|
191122
|
191123
|
191375
|
191376
| 191377 |
191378
|
191379
|
191380
|
191381
|
191382
|
191383
|
191384
|
191385
|
191386
|
191387
|
191388