Bugzilla – Attachment 173469 Details for
Bug 33484
Ability to remember user's selected table configuration and search filters for tables
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33484: Fix libraries table
Bug-33484-Fix-libraries-table.patch (text/plain), 6.10 KB, created by
Jonathan Druart
on 2024-10-28 09:45:54 UTC
(
hide
)
Description:
Bug 33484: Fix libraries table
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-10-28 09:45:54 UTC
Size:
6.10 KB
patch
obsolete
>From 162396a44e39e4a11d71e73336261e1fb7985a79 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 16 Oct 2024 09:54:50 +0200 >Subject: [PATCH] Bug 33484: Fix libraries table > >We added columns to the table but never displayed them, and they were >not part of the columns settings. >I am not sure what was the purpose of that but it looks completely >wrong. If we want to restore them it should be done correctly (ie. add >them back to the column list and add the new ones to the columns >settings). > >Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../prog/en/modules/admin/branches.tt | 66 ++----------------- > 1 file changed, 5 insertions(+), 61 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >index 67f25fab373..363a8b57da9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >@@ -666,7 +666,7 @@ > 'embed': [ 'smtp_server', 'library_hours' ], > 'emptyTable': '<div class="alert alert-info">'+_("There are no libraries defined.")+' <a href="/cgi-bin/koha/admin/branches.pl?op=add_form">'+_("Start defining libraries")+'</a>.</div>', > "columnDefs": [ { >- "targets": [0,1,3,4,7,10,11,12,13,14,15,16,17], >+ "targets": [1,3,4,5,6], > "render": function (data, type, row, meta) { > if ( type == 'display' ) { > if ( data != null ) { >@@ -694,7 +694,7 @@ > "orderable": true > }, > { >- "data": function( row, type, val, meta ) { >+ "render": function( data, type, row, meta ) { > const library_info = []; > if ( row.address1 != null ) library_info.push(row.address1.escapeHtml()); > if ( row.address2 != null ) library_info.push(row.address2.escapeHtml()); >@@ -754,7 +754,7 @@ > return '<a href="/cgi-bin/koha/admin/smtp_servers.pl?op=edit_form&smtp_server_id='+encodeURIComponent(data.smtp_server_id)+'">'+data.name.escapeHtml()+'</a>'; > } > else { >- return _("Default"); >+ return _("Default").escapeHtml(); > } > }, > "searchable": false, >@@ -780,7 +780,7 @@ > for (let i = calendarFirstDayOfWeek; counter < 7; i++) { > const day = i % 7; // Wrap around the day using modulo operator > result += '<tr id="hours_'+day+'">'; >- result += '<td>'+daysOfWeek[day]+'</td>'; >+ result += '<td>'+daysOfWeek[day].escapeHtml()+'</td>'; > result += '<td><span>'; > result += row.library_hours[day].open_time != null ? $kohatime(row.library_hours[day].open_time): ''; > result += '</span></td>'; >@@ -792,7 +792,7 @@ > } > result += '</tbody></table>'; > } else { >- result = _("Library hours not set"); >+ result = _("Library hours not set").escapeHtml(); > } > return result; > }, >@@ -814,62 +814,6 @@ > "searchable": false, > "orderable": false > }, >- { >- "data": "address1", >- "searchable": true, >- "visible": false, >- "orderable": false >- }, >- { >- "data": "address2", >- "searchable": true, >- "visible": false, >- "orderable": false >- }, >- { >- "data": "address3", >- "searchable": true, >- "visible": false, >- "orderable": false >- }, >- { >- "data": "city", >- "searchable": true, >- "visible": false, >- "orderable": false >- }, >- { >- "data": "state", >- "searchable": true, >- "visible": false, >- "orderable": false >- }, >- { >- "data": "postal_code", >- "searchable": true, >- "visible": false, >- "orderable": false >- }, >- { >- "data": "country", >- "searchable": true, >- "visible": false, >- "orderable": false >- }, >- { >- "data": function( row, type, val, meta ) { >- return ''; // provisional placeholder for opac_info >- }, >- "searchable": false, >- "visible": false, >- "orderable": false >- }, >- { >- "data": "notes", >- "searchable": true, >- "visible": false, >- "orderable": false >- } > ] > }, table_settings); > >-- >2.34.1
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 33484
:
149444
|
149445
|
149447
|
149448
|
149449
|
149925
|
149926
|
149927
|
149928
|
149929
|
149930
|
149974
|
149975
|
149976
|
149977
|
149978
|
149979
|
173443
|
173444
|
173445
|
173446
|
173447
|
173448
|
173449
|
173450
|
173451
|
173452
|
173453
|
173454
|
173455
|
173456
|
173457
|
173458
|
173459
|
173460
|
173461
|
173462
|
173463
|
173464
|
173465
|
173466
|
173467
|
173468
| 173469 |
173470
|
173471
|
173472
|
173473
|
173474
|
173475
|
173476
|
173477
|
173478
|
173479
|
173480
|
173481
|
173482
|
173483
|
173484
|
173485
|
173486
|
173546
|
173606
|
173607
|
173985
|
174219