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>
(cherry picked from commit 97226193a6)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Owen Leonard 2025-08-25 16:13:02 +00:00 committed by Paul Derscheid
parent c7282c7856
commit 1a1fc99f36
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
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 %]