Bug 40602: Broken HTML showing in Alert 'subscriptions' tab

This patch adds handling of the "no-html" flag to patron-title.inc. The
OPAC alert subscriptions page passes the "no-html" flag but the include
file wasn't written to include it.

To test, apply the patch and log in to the OPAC as a user who has a
title (salutation).

- Add a serial subscription and set a notification template
- Go to the OPAC and subscribe to the email notification for this
  subscription
- Go to the patron account > Alert subscriptions tab
- Verify that the last column shows an "Unsubscribe from email alerts"
  button.
- There should be no errant HTML.

Sponsored-by: Athens County Public Libraries
Signed-off-by: Noah Tremblay <noah.tremblay@inlibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Owen Leonard 2025-08-25 16:13:02 +00:00 committed by Lucas Gass
parent 3b041f4cf0
commit 97226193a6
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 5 additions and 1 deletions

View File

@ -2,7 +2,11 @@
[% patron.surname | html %][% IF patron.othernames %]([% patron.othernames | html %])[%- END -%]
[%- ELSE -%]
[%- IF patron.title -%]
<span class="patron-title">[% patron.title | html %]</span>
[%- IF no_html -%]
[% patron.title | html %]
[%- ELSE -%]
<span class="patron-title"></span>
[%- END -%]
[%- END -%]
[% patron.preferred_name | html %]
[% patron.middle_name | html %]