Jonathan Druart
77058c7d6b
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
76 lines
3.7 KiB
PHP
76 lines
3.7 KiB
PHP
[%~ USE Koha ~%]
|
|
[%~ BLOCK 'display-address-style' ~%]
|
|
[%~ SET line_break = "<br/>" ~%]
|
|
[%~ IF no_line_break %][% SET line_break = " " %][% END ~%]
|
|
[%~ IF Koha.Preference( 'AddressFormat' ) ~%]
|
|
[%~ PROCESS "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }" ~%]
|
|
[%~ ELSE ~%]
|
|
[%~ PROCESS 'member-display-address-style-us' ~%]
|
|
[%~ END ~%]
|
|
[%~ END ~%]
|
|
|
|
[%~ BLOCK 'member-display-address-style-us' ~%]
|
|
[%~ IF ( patron.address or patron.address2 ) ~%]
|
|
[%~ IF ( patron.address ) ~%]
|
|
[%~ SET roadtype_desc = '' ~%]
|
|
[%~ IF patron.streettype ~%]
|
|
[%~ SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.streettype) ~%]
|
|
[%~ END ~%]
|
|
<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>
|
|
[%~ END ~%]
|
|
[%~ IF ( patron.address2 ) ~%]
|
|
<li class="patronaddress2">[%~ patron.address2 |html ~%]</li>
|
|
[%~ END ~%]
|
|
[%~ END ~%]
|
|
[%~ IF ( patron.city ) ~%]
|
|
<li class="patroncity">
|
|
[%~ patron.city |html ~%][%~ IF ( patron.state ) %], [% patron.state |html ~%][%~ END ~%]
|
|
[%~ " " _ patron.zipcode |html ~%][%~ IF ( patron.country ) %], [% patron.country |html ~%][%~ END ~%]
|
|
</li>
|
|
[%~ END ~%]
|
|
[%~ END ~%]
|
|
|
|
[%~ BLOCK 'member-display-address-style-de' ~%]
|
|
[%~ IF ( patron.address or patron.address2 ) ~%]
|
|
[%~ IF ( patron.address ) ~%]
|
|
[%~ SET roadtype_desc = '' ~%]
|
|
[%~ IF patron.streettype ~%]
|
|
[%~ SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.streettype) ~%]
|
|
[%~ END ~%]
|
|
<li class="patronaddress1">[%~ patron.address | html ~%][%~IF roadtype_desc %] [% roadtype_desc | html ~%][%~ END ~%][%~ IF patron.streetnumber %] [% patron.streetnumber | html ~%][%~ END ~%]</li>
|
|
[%~ END ~%]
|
|
[%~ IF ( patron.address2 ) ~%]
|
|
<li class="patronaddress2">[%~ patron.address2 | html ~%]</li>
|
|
[%~ END ~%]
|
|
[%~ END ~%]
|
|
[%~ IF ( patron.city ) ~%]
|
|
<li class="patroncity">
|
|
[%~ IF ( patron.zipcode ) ~%][%~ patron.zipcode | html %] [% END ~%][%~ patron.city | html ~%][%~ IF ( patron.state ) ~%][% line_break %][%~ patron.state | html ~%][%~ END ~%]
|
|
[%~ IF ( patron.country ) ~%][% line_break %][%~ patron.country | html ~%][%~ END ~%]
|
|
</li>
|
|
[%~ END ~%]
|
|
[%~ END ~%]
|
|
|
|
[%~ BLOCK 'member-display-address-style-fr' ~%]
|
|
[%~ IF ( patron.address or patron.address2 ) ~%]
|
|
[%~ IF ( patron.address ) ~%]
|
|
[%~ SET roadtype_desc = '' ~%]
|
|
[%~ IF patron.streettype ~%]
|
|
[%~ SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.streettype) ~%]
|
|
[%~ END ~%]
|
|
<li class="patronaddress1">[%~ IF patron.streetnumber ~%][%~ patron.streetnumber | html %] [% END ~%]
|
|
[%~IF roadtype_desc ~%][%~ roadtype_desc | html %] [% END ~%]
|
|
[%~ patron.address | html ~%]
|
|
</li>
|
|
[%~ END ~%]
|
|
[%~ IF ( patron.address2 ) ~%]
|
|
<li class="patronaddress2">[%~ patron.address2 | html ~%]</li>
|
|
[%~ END ~%]
|
|
[%~ END ~%]
|
|
[%~ IF ( patron.city ) ~%]
|
|
<li class="patroncity">
|
|
[%~ IF ( patron.zipcode ) ~%][%~ patron.zipcode | html %] [% END ~%][%~ patron.city | html ~%][%~ IF ( patron.state ) ~%][% line_break %][%~ patron.state | html ~%][%~ END ~%]
|
|
[%~ IF ( patron.country ) ~%][% line_break %][%~ patron.country | html ~%][%~ END ~%]
|
|
</li>
|
|
[%~ END ~%]
|
|
[%~ END ~%]
|