Bug 30568: Correct reference to patron_title in patron-title.inc

In the staff interface we set the class for the patron's title (Mr/Mrs/etc) to "patron_title," but we were making it "patron-title" in the OPAC. This patch standardizes them.

Signed-off-by: Sam Sowanick <sam.sowanick@corvallisoregon.gov>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Andrew Fuerste Henry 2025-10-09 19:21:36 +00:00 committed by Lucas Gass
parent 164bca6158
commit 11358ffe16
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
[%- WRAPPER maybe_span field_name = 'surname' -%][%- patron.surname | html -%][%- END -%]
[%- IF patron.othernames -%]([%- WRAPPER maybe_span field_name='othernames' -%][%- patron.othernames | html -%][%- END -%])[%- END -%]
[%- ELSE -%]
[%- WRAPPER maybe_span field_name='patron-title' -%][%- patron.title _ ' ' | html %][% END -%]
[%- WRAPPER maybe_span field_name='patron_title' -%][%- patron.title _ ' ' | html %][% END -%]
[%- WRAPPER maybe_span field_name='preferred_name' -%][%- patron.preferred_name | html %][% END -%]
[%- WRAPPER maybe_span field_name='middle_name' -%][% ' ' _ patron.middle_name | html -%][%- END -%]
[%- WRAPPER maybe_span field_name='surname' -%][% ' ' _ patron.surname | html -%][%- END -%]