Bug 23534: Use patron-title.inc on patron entry page

There are a few instances where we can simplify the patron entry
template by using the patron-title include file instead of outputting
patron name variables one by one. This patch does so in the page title,
page breadcrumbs, and page heading.

To test, apply the patch and edit a patron record. The page title,
breadcrumbs, and main heading should all look correct.

Signed-off-by: Maryse Simard <maryse.simard@inlibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Owen Leonard 2020-02-28 14:53:53 +00:00 committed by Martin Renvoize
parent d5a1a82a9b
commit afd5ee31ba
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -16,8 +16,7 @@
[% ELSE %]
Modify patron
[% END %]
[% IF (firstname) %][% firstname | html %] [% END %]
[% IF (surname) %][% surname | html %] [% END %]
[% INCLUDE 'patron-title.inc' no_html = 1 %]
([% IF categoryname -%]
[%- categoryname | html -%]
[%- ELSE -%]
@ -43,8 +42,7 @@
&rsaquo;
[% IF (firstname || surname ) %]
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | uri %]">
[% IF (firstname) %][% firstname | html %] [% END %]
[% IF (surname) %][% surname | html %] [% END %]
[% INCLUDE 'patron-title.inc' %]
</a> &rsaquo;
[% END %]
<strong>
@ -100,8 +98,7 @@
[% ELSE %]
Modify patron
[% END %]
[% IF (firstname) %][% firstname | html %] [% END %]
[% IF (surname) %][% surname | html %] [% END %]
[% INCLUDE 'patron-title.inc' %]
([%IF categoryname %]
[% categoryname | html %]
[% ELSE %]