Bugzilla – Attachment 191182 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
22ae87d.patch (text/plain), 2.67 KB, created by
Jonathan Druart
on 2026-01-09 14:54:54 UTC
(
hide
)
Description:
Bug 41582: Tidy kohaTable - opac-illrequests.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-01-09 14:54:54 UTC
Size:
2.67 KB
patch
obsolete
>From 22ae87d7cf575b40d2a37ff9115ac893b2b2881b 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 > >--- > .../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.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 41582
:
191174
|
191175
|
191176
|
191177
|
191178
|
191179
|
191180
|
191181
| 191182 |
191183
|
191184
|
191185
|
191186
|
191187
|
191188