Josef Moravec
ebd7c422b4
Modified pages: circ/circulation.pl circ/circulation_batch_checkouts.pl members/boraccount.pl members/files.pl members/holdshistory.pl members/housebound.pl members/moremember.pl members/notices.pl members/purchase-suggestions.pl members/readingrec.pl members/routing-lists.pl members/statistics.pl Test plan: 0) Do not apply the patch 1) Have a patron with title/salution filled in 2) Confirm bug, go for example to circ/circulation page and see there is html in <title> tag (you can see it in your browser page/window title) 3) Apply the patch 4) Go through circulation/patron pages (see modified page above) and confirm there is no html in <title> tag, but on the page itself the salutation should be in <span class="patron-title"> Signed-off-by: David Bourgalt <david.bourgault@inlibro.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
35 lines
1.8 KiB
PHP
35 lines
1.8 KiB
PHP
[%# Parameter no_html - if 1, the html tags are NOT generated %]
|
|
[%- IF no_html %]
|
|
[%- span_start = '' %]
|
|
[%- span_end = '' %]
|
|
[%- ELSE %]
|
|
[%- span_start = '<span class="patron-title">' %]
|
|
[%- span_end = '</span>' %]
|
|
[%- END %]
|
|
[%- IF ( borrower.borrowernumber ) %]
|
|
[%- IF borrower.category_type == 'I' %]
|
|
[%- borrower.surname | html %] [% IF borrower.othernames %] ([% borrower.othernames | html %]) [% END %]
|
|
[%- ELSE %]
|
|
[%- IF invert_name %]
|
|
[%- IF borrower.title %][% span_start %][%- borrower.title | html %][% span_end %] [% END %][%- borrower.surname | html %], [% borrower.firstname | html %] [% IF borrower.othernames %] ([% borrower.othernames | html %]) [% END %]
|
|
[%- ELSE %]
|
|
[%- IF borrower.title %][% span_start %][%- borrower.title | html %][% span_end %] [% END %][%- borrower.firstname | html %] [% IF borrower.othernames %] ([% borrower.othernames | html %]) [% END %] [% borrower.surname | html %]
|
|
[%- END -%]
|
|
[%- END -%]
|
|
[%- IF ( borrower.cardnumber ) -%]
|
|
([% borrower.cardnumber | html %])
|
|
[%- END %]
|
|
[%- ELSIF ( borrowernumber ) %]
|
|
[%- IF category_type == 'I' %]
|
|
[%- surname | html %] [% IF othernames %] ([% othernames | html %]) [% END %]
|
|
[%- ELSE %]
|
|
[%- IF invert_name %]
|
|
[%- IF title %][% span_start %][%- title | html %][% span_end %] [% END %][%- surname | html %], [% firstname | html %] [% IF othernames %] ([% othernames | html %]) [% END %]
|
|
[%- ELSE %]
|
|
[%- IF title %][% span_start %][%- title | html %][% span_end %] [% END %][%- firstname | html %] [% IF othernames %] ([% othernames | html %]) [% END %] [% surname | html %]
|
|
[%- END %]
|
|
[%- END -%]
|
|
[%- IF ( cardnumber ) -%]
|
|
([% cardnumber | html %])
|
|
[%- END %]
|
|
[%- END -%]
|