Bug 30568: Add classes to name components in OPAC
To test: 1- have a patron with values in all parts of name (firstname, preferred name, surname, othername, middlename) 2- log into OPAC as patron, observe where are how name is displayed, lack of classes on component parts 3- apply patch 4- reload OPAC pages, observe name looks the same but now has classes when inspected Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> 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:
parent
a05c7d538f
commit
21beec0dbf
|
|
@ -1,5 +1,5 @@
|
|||
[%- IF patron.category.category_type == 'I' -%]
|
||||
[% patron.surname | html %][% IF patron.othernames %]([% patron.othernames | html %])[%- END -%]
|
||||
<span class="surname">[% patron.surname | html %]</span>[% IF patron.othernames %]<span class="othername">([% ' ' _ patron.othernames | html %])</span>[%- END -%]
|
||||
[%- ELSE -%]
|
||||
[%- IF patron.title -%]
|
||||
[%- IF no_html -%]
|
||||
|
|
@ -8,7 +8,5 @@
|
|||
<span class="patron-title"></span>
|
||||
[%- END -%]
|
||||
[%- END -%]
|
||||
[% patron.preferred_name | html %]
|
||||
[% patron.middle_name | html %]
|
||||
[% patron.surname | html %]
|
||||
<span class="preferred_name">[% patron.preferred_name | html %]</span> <span class="middle_name">[% patron.middle_name | html %]</span> <span class="surname">[% patron.surname | html %] </span>
|
||||
[%- END -%]
|
||||
|
|
|
|||
Loading…
Reference in New Issue