Bugzilla – Attachment 154290 Details for
Bug 34431
Distinguish between status and status alias in ILL UI
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34431: Show both status and status_alias - if exists - in table column
Bug-34431-Show-both-status-and-statusalias---if-ex.patch (text/plain), 2.00 KB, created by
Pedro Amorim
on 2023-08-04 16:07:38 UTC
(
hide
)
Description:
Bug 34431: Show both status and status_alias - if exists - in table column
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2023-08-04 16:07:38 UTC
Size:
2.00 KB
patch
obsolete
>From d262caeee568fec7aa5b3fc043b3ddad9496c052 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Fri, 4 Aug 2023 16:02:40 +0000 >Subject: [PATCH] Bug 34431: Show both status and status_alias - if exists - in > table column > >--- > .../intranet-tmpl/prog/js/ill-list-table.js | 20 +++++++++++++------ > 1 file changed, 14 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js >index 9419b0fa5d..b9877e3eb3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js >@@ -51,6 +51,19 @@ $(document).ready(function() { > return ''; > } > >+ function display_request_status(row) { >+ let status = row._strings.status.str; >+ let status_alias = row._strings.status_av ? >+ row._strings.status_av.str ? >+ row._strings.status_av.str : >+ row._strings.status_av.code : >+ null; >+ >+ let status_label = status + (status_alias ? " <i><strong>"+status_alias+"</strong></i>" : ""); >+ >+ return status_label; >+ } >+ > // At the moment, the only prefilter possible is borrowernumber > // see ill/ill-requests.pl and members/ill-requests.pl > let additional_prefilters = {}; >@@ -294,12 +307,7 @@ $(document).ready(function() { > "data": "status", > "orderable": true, > "render": function(data, type, row, meta) { >- let status_label = row._strings.status_av ? >- row._strings.status_av.str ? >- row._strings.status_av.str : >- row._strings.status_av.code : >- row._strings.status.str >- return escape_str(status_label); >+ return display_request_status(row); > } > }, > { >-- >2.30.2
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 34431
:
154034
|
154035
|
154036
|
154037
|
154289
|
154290
|
154291
|
154292
|
154301
|
154405
|
154406
|
154407
|
154408
|
154409
|
154410
|
154999
|
161104
|
161105
|
161106
|
161107
|
161108
|
161109
|
161110
|
161129
|
161130
|
161131
|
161132
|
161133
|
161134
|
161135