Koha/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-address-style-fr.inc
Baptiste Wojtkowski 62b2e505d4 Bug 18110: Add a field FR to the syspref AddressFormat
Add a field FR to the syspref AddressFormat

Testplan
1 - Apply patch
2 - Check if there is a field FR in the syspref AddressFormat, enable it
3 - Create a new borrower and check the order of the fields for the address
4 - Check if it's address appears in a propper manner

27/02/17 : Fixed the display

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2017-04-28 08:50:19 -04:00

21 lines
772 B
HTML

[% IF ( address or address2 ) %]
[% IF ( address ) %]
[% SET roadtype_desc = '' %]
[% IF streettype %]
[% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', streettype) %]
[% END %]
<li>
[% IF streetnumber %] [% streetnumber %][% END %]
[%IF roadtype_desc %] [% roadtype_desc %][% END %]
</li>
<li class="patronaddress1">[% 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 %]