[Koha-bugs] [Bug 33780] Multi-line TT comment: [%% item.object.itemnotes.replace('\n', '

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 25 15:17:15 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33780

--- Comment #4 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 151677
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=151677&action=edit
Bug 33780: Use TT html_line_break filter to format itemnotes

This patch removes a snippet of TT code which was causing problems with
translation. Putting HTML inside a TT replace() method resulted in TT
code being processed for translation.

To test, apply the patch and edit an item record's public note field so
that it contains line breaks ("\n"). Since the notes field in the editor
is a text field, you might want to update the record in the database:

update items set itemnotes = "Line 1\nLine 2\n\n\n\nLine 3" where
biblionumber = 228;

View the bibliographic details page in the staff interface. The note in
the holdings table should have the correct line breaks. If you inspect
the HTML you should see that each "\n" has been replaced with "<br />"

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list