e5753d3cff
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
77 lines
3.7 KiB
PHP
77 lines
3.7 KiB
PHP
[%~ USE Koha ~%]
|
|
[%~ USE raw ~%]
|
|
[%~ 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 | $raw %][%~ patron.state | html ~%][%~ END ~%]
|
|
[%~ IF ( patron.country ) ~%][% line_break | $raw %][%~ 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 | $raw %][%~ patron.state | html ~%][%~ END ~%]
|
|
[%~ IF ( patron.country ) ~%][% line_break | $raw %][%~ patron.country | html ~%][%~ END ~%]
|
|
</li>
|
|
[%~ END ~%]
|
|
[%~ END ~%]
|