eb77861750
To verify: - Create a patron with address, streettype, streetnumber defined - Set syspref 'AddressFormat' to US style - Go to patron's detail page (in staff client) - In main address, road type preceeds address (e.g. 25 Drive Euclid) To test: - Apply patch - Refrexh patron's detail page - Verify that main address displays correctly (e.g. 25 Euclid Drive) Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
16 lines
696 B
HTML
16 lines
696 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 %] [% address %] [% IF roadtype_desc %][% roadtype_desc %] [% END %][% end %]</li>
|
|
[% END %]
|
|
[% IF ( address2 ) %]
|
|
<li class="patronaddress2">[% address2 %]</li>
|
|
[% END %]
|
|
[% END %]
|
|
[% IF ( city ) %]<li class="patroncity">
|
|
[% city %][% IF ( state ) %], [% state %][% END %]
|
|
[% zipcode %][% IF ( country ) %], [% country %][% END %]</li>
|
|
[% END %]
|