Bug 25379: Add raw filter to circulation note on checkin page

This is a consistency patch: we already allow adding HTML tags
to the patron circulation note and the contents display
correctly in the patron account and in the patron search results
in the staff interface. But the HTML tags are printed on the
checkins page.

To test:
* Add a circulation note including HTML tags to a patron
  Example: <h1>This patron is great!</h1>
* Check an item out to this patron
* Verify that the note displays formatted in patron search results
* Verify that the note displays formatted in the patron record
* Return the item
* Verify the note shows the printed tags
* Apply patch
* Check item out again and check it in again
* Verify the note now displays correctly in list of checkins

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 2608e405de)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
Katrin Fischer 2023-03-17 21:36:23 +00:00 committed by Matt Blenkinsop
parent 512a31dfff
commit 5475c1812f

View file

@ -1283,7 +1283,7 @@
</td>
<td class="ci-note">
[% IF ( riloo.patron.borrowernotes ) %]
<p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | html %]</span></p>
<p><span class="circ-hlt patron-note">[% riloo.patron.borrowernotes | $raw %]</span></p>
[% END %]
[% IF ( riloo.itemnote ) %]
<p><span class="circ-hlt item-note-public">[% riloo.itemnote | html %]</span></p>