Bugzilla – Attachment 191458 Details for
Bug 41582
Tidy kohaTable block - opac
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41582: Tidy kohaTable - opac-illrequests.tt
Bug-41582-Tidy-kohaTable---opac-illrequeststt.patch (text/plain), 2.72 KB, created by
Owen Leonard
on 2026-01-14 19:37:54 UTC
(
hide
)
Description:
Bug 41582: Tidy kohaTable - opac-illrequests.tt
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2026-01-14 19:37:54 UTC
Size:
2.72 KB
patch
obsolete
>From d9727e96aebff5eea4cafb2ad16ab3c0fb81e58d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 9 Jan 2026 10:13:39 +0100 >Subject: [PATCH] Bug 41582: Tidy kohaTable - opac-illrequests.tt > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../bootstrap/en/modules/opac-illrequests.tt | 32 +++++++++++-------- > 1 file changed, 18 insertions(+), 14 deletions(-) > >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 cd17cee4906..6ac225c6431 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt >@@ -406,6 +406,23 @@ > > [% BLOCK jsinclude %] > [% INCLUDE 'datatables.inc' %] >+ <script> >+ const logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]"; >+ [% IF services_json.length > 0 %] >+ var services = [% services_json | $raw %]; >+ [% ELSE %] >+ var services = []; >+ [% END %] >+ [% IF auto_backends_json.length > 0 %] >+ var auto_backends = [% auto_backends_json | $raw %]; >+ [% ELSE %] >+ var auto_backends = []; >+ [% END %] >+ [% IF metadata.length > 0 %] >+ var metadata = "[% metadata | $raw %]"; >+ [% END %] >+ </script> >+ > <script> > function display_extended_attribute(row, type) { > var arr = $.grep(row.extended_attributes, ( x => x.type === type )); >@@ -433,7 +450,7 @@ > dom: '<"dt-info"i><"top pager"<"table_entries"lp>t<"bottom pager"pi>', > paging: true, > embed: ['+strings','extended_attributes'], >- ajax: { url: '/api/v1/public/patrons/[% logged_in_user.borrowernumber | uri %]/ill/requests' }, >+ ajax: { url: `/api/v1/public/patrons/${logged_in_user_borrowernumber}/ill/requests` }, > columnDefs: [ { > render: function (data, type, row, meta) { > if ( data && type == 'display' ) { >@@ -503,19 +520,6 @@ > ] > }); > $("#backend-dropdown-options").removeClass("nojs"); >- [% IF services_json.length > 0 %] >- var services = [% services_json | $raw %]; >- [% ELSE %] >- var services = []; >- [% END %] >- [% IF auto_backends_json.length > 0 %] >- var auto_backends = [% auto_backends_json | $raw %]; >- [% ELSE %] >- var auto_backends = []; >- [% END %] >- [% IF metadata.length > 0 %] >- var metadata = "[% metadata | $raw %]"; >- [% END %] > </script> > [% IF op == 'availability' %] > [% Asset.js("js/ill-availability.js") | $raw %] >-- >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 41582
:
191174
|
191175
|
191176
|
191177
|
191178
|
191179
|
191180
|
191181
|
191182
|
191183
|
191184
|
191185
|
191186
|
191187
|
191188
|
191450
|
191451
|
191452
|
191453
|
191454
|
191455
|
191456
|
191457
| 191458 |
191459
|
191460
|
191461
|
191462
|
191463
|
191464
|
191465
|
191569