Bug 13618: Deal with span in patron-title
Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
865c385f71
commit
5a7ee2db08
1 changed files with 7 additions and 5 deletions
|
@ -1,3 +1,4 @@
|
|||
[%- USE raw -%]
|
||||
[%- USE Koha -%]
|
||||
[%- USE Branches -%]
|
||||
[%- SET data = {} -%]
|
||||
|
@ -29,12 +30,13 @@
|
|||
[%# Parameter no_html - if 1, the html tags are NOT generated %]
|
||||
[%- IF data.title %]
|
||||
[%- IF no_html %]
|
||||
[%- span_start = '' | html %]
|
||||
[%- span_end = '' | html %]
|
||||
[%- span_start = '' %]
|
||||
[%- span_end = '' %]
|
||||
[%- ELSE %]
|
||||
[%- span_start = '<span class="patron-title">' %]
|
||||
[%- span_end = '</span>' | html %]
|
||||
[%- span_end = '</span>' %]
|
||||
[%- END %]
|
||||
[% data.title = data.title | html %]
|
||||
[%- SET data.title = span_start _ data.title _ span_end _ ' ' -%]
|
||||
[%- END -%]
|
||||
[%- SET display_patron_name = 1 -%]
|
||||
|
@ -57,9 +59,9 @@
|
|||
[%- IF data.category_type == 'I' -%]
|
||||
[%- data.surname | html %] [% IF data.othernames %] ([% data.othernames | html %])[% END -%]
|
||||
[%- ELSIF invert_name -%]
|
||||
[% data.title | html %][%- data.surname | html %], [% data.firstname | html %] [% IF data.othernames %] ([% data.othernames | html %]) [% END -%]
|
||||
[% data.title | $raw %][%- data.surname | html %], [% data.firstname | html %] [% IF data.othernames %] ([% data.othernames | html %]) [% END -%]
|
||||
[%- ELSE -%]
|
||||
[% data.title | html %][%- data.firstname | html %] [% IF data.othernames %] ([% data.othernames | html %]) [% END %] [% data.surname | html -%]
|
||||
[% data.title | $raw %][%- data.firstname | html %] [% IF data.othernames %] ([% data.othernames | html %]) [% END %] [% data.surname | html -%]
|
||||
[%- END -%]
|
||||
[%- IF display_cardnumber AND data.cardnumber %] ([% data.cardnumber | html %])[% END -%]
|
||||
[%- ELSIF display_cardnumber -%]
|
||||
|
|
Loading…
Reference in a new issue