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