Bugzilla – Attachment 173680 Details for
Bug 34324
Merge OPACProblemReport and CatalogConcern functions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34324: Add preview to catalog concerns summary table
Bug-34324-Add-preview-to-catalog-concerns-summary-.patch (text/plain), 1.95 KB, created by
Martin Renvoize (ashimema)
on 2024-10-29 15:46:39 UTC
(
hide
)
Description:
Bug 34324: Add preview to catalog concerns summary table
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-10-29 15:46:39 UTC
Size:
1.95 KB
patch
obsolete
>From 3c6c63a5cbd95c93ebb4e27c8e855d8c0e753230 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 28 Dec 2023 12:47:40 +0000 >Subject: [PATCH] Bug 34324: Add preview to catalog concerns summary table > >This patch adds the first 80 characters of the body of the message as a >preview in the details field of the summary page of catalog concerns. > >This is to bring us more in line with what OPAC Problem reports >currently displays in it's table. >--- > .../prog/en/modules/cataloguing/concerns.tt | 11 +++++++++-- > 1 file changed, 9 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt >index ab01dab6e5e..e1db6d574fb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/concerns.tt >@@ -152,10 +152,17 @@ > result += '<span><a role="button" href="#" class="detail-trigger"><i class="fa fa-comment" aria-hidden="true"></i> ' + row.updates_count + '</a></span>'; > } > >- // Hidden detail content > result += '</div>'; >+ >+ // Short summary >+ let summary = row.body; >+ if ( summary.length > 80 ) { >+ summary = summary.substring(0, 80) + "..."; >+ } >+ result += '<div class="wrapfix">' + summary + '</div>'; >+ >+ // Hidden detail content > result += '<div id="detail_' + row.ticket_id + '" style="display:none">' + row.body + '</div>'; >- > return result; > }, > "searchable": true, >-- >2.47.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 34324
:
160199
|
160200
|
160201
|
160202
|
160203
|
160204
|
160205
|
160206
|
173580
|
173581
|
173582
|
173583
|
173584
|
173585
|
173586
|
173587
|
173671
|
173672
|
173673
|
173674
|
173675
|
173676
|
173677
|
173678
|
173679
| 173680