4ed61b56f5
This patch fixes the display of alternative address (streetnumber, streettype and address on same line, see comment #22, and it adds missing class patronaddress1 to main address display. To test: - Create / edit a customer to have streetnumber, streettype and address in both main address and alternate address - Switch syspref addressformat ot French style - Verify that both main address and alternate address display as expected on patron's detail page (street number, street type and address on same line) Signed-off-by: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
19 lines
741 B
HTML
19 lines
741 B
HTML
[% IF ( address or address2 ) %]
|
|
[% IF ( address ) %]
|
|
[% SET roadtype_desc = '' %]
|
|
[% IF streettype %]
|
|
[% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', streettype) %]
|
|
[% END %]
|
|
<li class="patronaddress1">[% IF streetnumber %][% streetnumber %] [% END %]
|
|
[%IF roadtype_desc %][% roadtype_desc %] [% END %]
|
|
[% address %]
|
|
</li>
|
|
[% END %]
|
|
[% IF ( address2 ) %]
|
|
<li class="patronaddress2">[% address2 %]</li>
|
|
[% END %]
|
|
[% END %]
|
|
[% IF ( city ) %]
|
|
<li class="patroncity">[%IF (zipcode ) %][% zipcode %] [% END %][% city %][% IF ( state ) %]</br>[% state %][% END %]
|
|
[% IF ( country ) %]<br />[% country %][% END %]</li>
|
|
[% END %]
|