Line 0
Link Here
|
|
|
1 |
[% USE Koha %] |
2 |
[% BLOCK 'display-address-style' %] |
3 |
[% IF Koha.Preference( 'AddressFormat' ) %] |
4 |
[% PROCESS "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }" %] |
5 |
[% ELSE %] |
6 |
[% PROCESS 'member-display-address-style-us' %] |
7 |
[% END %] |
8 |
[% END %] |
9 |
|
10 |
[% BLOCK 'member-display-address-style-us' %] |
11 |
[% IF ( patron.address or patron.address2 ) %] |
12 |
[% IF ( patron.address ) %] |
13 |
[% SET roadtype_desc = '' %] |
14 |
[% IF patron.streettype %] |
15 |
[% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.streettype) %] |
16 |
[% END %] |
17 |
<li class="patronaddress1">[% if (patron.streetnumber) | html %][% patron.streetnumber |html %][% end | html %] [% patron.address | html %] [% IF roadtype_desc %][% roadtype_desc |html %] [% END %][% end | html %]</li> |
18 |
[% END %] |
19 |
[% IF ( patron.address2 ) %] |
20 |
<li class="patronaddress2">[% patron.address2 |html %]</li> |
21 |
[% END %] |
22 |
[% END %] |
23 |
[% IF ( patron.city ) %] |
24 |
<li class="patroncity"> |
25 |
[% patron.city |html %][% IF ( patron.state ) %], [% patron.state |html %][% END %] |
26 |
[% patron.zipcode |html %][% IF ( patron.country ) %], [% patron.country |html %][% END %] |
27 |
</li> |
28 |
[% END %] |
29 |
[% END %] |
30 |
|
31 |
[% BLOCK 'member-display-address-style-de' %] |
32 |
[% IF ( patron.address or patron.address2 ) %] |
33 |
[% IF ( patron.address ) %] |
34 |
[% SET roadtype_desc = '' %] |
35 |
[% IF patron.streettype %] |
36 |
[% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.streettype) %] |
37 |
[% END %] |
38 |
<li class="patronaddress1">[% patron.address | html %][%IF roadtype_desc %] [% roadtype_desc | html %][% END %][% IF patron.streetnumber %] [% patron.streetnumber | html %][% END %]</li> |
39 |
[% END %] |
40 |
[% IF ( patron.address2 ) %] |
41 |
<li class="patronaddress2">[% patron.address2 | html %]</li> |
42 |
[% END %] |
43 |
[% END %] |
44 |
[% IF ( patron.city ) %] |
45 |
<li class="patroncity"> |
46 |
[% IF ( patron.zipcode ) %][% patron.zipcode | html %] [% END %][% patron.city | html %][% IF ( patron.state ) %]</br>[% patron.state | html %][% END %] |
47 |
[% IF ( patron.country ) %]<br />[% patron.country | html %][% END %] |
48 |
</li> |
49 |
[% END %] |
50 |
[% END %] |
51 |
|
52 |
[% BLOCK 'member-display-address-style-fr' %] |
53 |
[% IF ( patron.address or patron.address2 ) %] |
54 |
[% IF ( patron.address ) %] |
55 |
[% SET roadtype_desc = '' %] |
56 |
[% IF patron.streettype %] |
57 |
[% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.streettype) %] |
58 |
[% END %] |
59 |
<li class="patronaddress1">[% IF patron.streetnumber %][% patron.streetnumber | html %] [% END %] |
60 |
[%IF roadtype_desc %][% roadtype_desc | html %] [% END %] |
61 |
[% patron.address | html %] |
62 |
</li> |
63 |
[% END %] |
64 |
[% IF ( patron.address2 ) %] |
65 |
<li class="patronaddress2">[% patron.address2 | html %]</li> |
66 |
[% END %] |
67 |
[% END %] |
68 |
[% IF ( patron.city ) %] |
69 |
<li class="patroncity"> |
70 |
[% IF ( patron.zipcode ) %][% patron.zipcode | html %] [% END %][% patron.city | html %][% IF ( patron.state ) %]</br>[% patron.state | html %][% END %] |
71 |
[% IF ( patron.country ) %]<br />[% patron.country | html %][% END %] |
72 |
</li> |
73 |
[% END %] |
74 |
[% END %] |