Bugzilla – Attachment 181118 Details for
Bug 38441
Allow for an ILL history check workflow stage
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38441: Style updates for staffnotes
Bug-38441-Style-updates-for-staffnotes.patch (text/plain), 2.73 KB, created by
Tomás Cohen Arazi (tcohen)
on 2025-04-17 18:16:09 UTC
(
hide
)
Description:
Bug 38441: Style updates for staffnotes
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2025-04-17 18:16:09 UTC
Size:
2.73 KB
patch
obsolete
>From 7ade654db62370b059f309a0ec4c5a7637d9958d Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Fri, 15 Nov 2024 11:19:00 -0100 >Subject: [PATCH] Bug 38441: Style updates for staffnotes > >- Use pre for staffnotes in staff illview >- Ensure <pre> has same font-family as rest of the page >- Render html for staff notes in list. Truncate to 100 chars max > >Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 4 ++++ > koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js | 6 +++++- > 3 files changed, 10 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >index d8a1d8aca37..21cb1a51378 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >@@ -3918,6 +3918,10 @@ input.renew { > max-height: 70vh; > } > } >+ >+ pre { >+ font-family: inherit; >+ } > } > > .ill-view-panel { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt >index ea284e9aefa..160e5167c2c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt >@@ -659,7 +659,7 @@ > [% IF request.notesstaff %] > <li class="notesstaff"> > <span class="label notes_staff">Staff notes:</span> >- <p>[% request.notesstaff | $raw %]</p> >+ <pre>[% request.notesstaff | $raw %]</pre> > </li> > [% END %] > [% IF request.notesopac %] >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 0fc313a2213..5bb38ed9e70 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js >@@ -454,7 +454,11 @@ $(document).ready(function () { > data: "staff_notes", > orderable: true, > render: function (data, type, row, meta) { >- return escape_str(data); >+ if (data?.length > 100) { >+ data = data.substr(0, 100) + "..."; >+ } >+ >+ return data; > }, > }, > { >-- >2.49.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 38441
:
174604
|
174605
|
174606
|
174607
|
174608
|
174609
|
174610
|
174611
|
175300
|
175301
|
175302
|
175303
|
175304
|
175305
|
175306
|
175307
|
176507
|
176508
|
176509
|
176510
|
176511
|
176512
|
176513
|
176514
|
176561
|
176566
|
176573
|
176829
|
179800
|
179801
|
179802
|
179803
|
179804
|
179805
|
179806
|
179807
|
179808
|
179809
|
179810
|
179811
|
180034
|
180035
|
180036
|
180037
|
180038
|
180039
|
180040
|
180041
|
180042
|
180043
|
180044
|
180045
|
180907
|
180908
|
180909
|
180910
|
180911
|
180912
|
180913
|
180914
|
180915
|
180916
|
180917
|
180918
|
180919
|
181072
|
181111
|
181112
|
181113
|
181114
|
181115
|
181116
|
181117
|
181118
|
181119
|
181120
|
181121
|
181122
|
181123
|
181124
|
181125
|
181126
|
181593
|
181594
|
181595
|
181596
|
181597
|
181598
|
181599
|
181600
|
181601
|
181602
|
181603
|
181604
|
181605
|
181606
|
181607