[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 18:49:41 CEST 2023


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

Lucas Gass <lucas at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #151677|0                           |1
        is obsolete|                            |

--- Comment #7 from Lucas Gass <lucas at bywatersolutions.com> ---
Created attachment 151703
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=151703&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 />"

Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>

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


More information about the Koha-bugs mailing list