From 14e780c92d1e4a8774fd41347774f2e9c38a9dc8 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 27 Feb 2024 16:59:01 +0000 Subject: [PATCH] Bug 36171: Use FILTER collapse instead of tilde in address includes A couple of our include files used for displaying addresses have "~" added to every template directive in order to collapse whitespace in the generated HTML. This seems to cause problems for the translation script which was picking up the "SET" in "[% SET foo = 'bar' %]. This patch modifies the affected files and related files (for consistency) to use '[% FILTER collapse %]'. This seems to fix the problem. Note: This patch makes indentation changes, so ignore whitespace when viewing the diff. To test, apply the patch and search for a patron in the staff interface. - View the patron detail page. All addresses, including alternate address and alternative contact address, should be displayed correctly. - Edit the patron and confirm that the forms for entering those addresses also look correct. - Go to Administration -> System preferences and test using other options for the "AddressFormat" preference. - In the OPAC, view the "Libraries" page. Confirm that addresses are displayed correctly. - Rebuild the ru-RU templates to confirm that there is no error: > perl misc/translator/translate update ru-RU > perl misc/translator/translate install ru-RU - Enable the language, if necessary, by updating the "language" and "OPACLanguage" system preferences. - Repeat the testing steps above. --- .../en/includes/member-alt-address-style.inc | 444 +++++++++--------- .../en/includes/member-alt-contact-style.inc | 354 +++++++------- .../includes/member-display-address-style.inc | 148 +++--- .../member-display-alt-address-style.inc | 120 ++--- .../en/includes/member-main-address-style.inc | 340 +++++++------- .../en/includes/display-library-address.inc | 160 +++---- 6 files changed, 789 insertions(+), 777 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc index f358763c3b7..7b8304b08d6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc @@ -1,252 +1,254 @@ [% USE Koha %] [% USE AuthorisedValues %] -[% BLOCK 'alt-address-style' %] -
- Alternate address -
    - [% IF Koha.Preference( 'AddressFormat' ) %] - [% PROCESS "member-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }" %] - [% ELSE %] - [% PROCESS 'member-alt-address-style-us' %] - [% END %] -
-
-[% END %] +[% FILTER collapse %] + [% BLOCK 'alt-address-style' %] +
+ Alternate address +
    + [% IF Koha.Preference( 'AddressFormat' ) %] + [% PROCESS "member-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }" %] + [% ELSE %] + [% PROCESS 'member-alt-address-style-us' %] + [% END %] +
+
+ [% END %] + + [% BLOCK 'member-alt-address-style-us' %] + [% PROCESS 'alt-address-style_B_streetnumber' %] + [% PROCESS 'alt-address-style_roadtypes' %] + [% PROCESS 'alt-address-style_B_address' %] + [% PROCESS 'alt-address-style_B_address2' %] + [% PROCESS 'alt-address-style_B_city' %] + [% PROCESS 'alt-address-style_B_state' %] + [% PROCESS 'alt-address-style_B_zipcode' %] + [% PROCESS 'alt-address-style_B_country' %] + [% PROCESS 'alt-address-style_B_phone' %] + [% PROCESS 'alt-address-style_B_email' %] + [% PROCESS 'alt-address-style_B_contactnote' %] + [% END %] -[% BLOCK 'member-alt-address-style-us' %] - [% PROCESS 'alt-address-style_B_streetnumber' %] - [% PROCESS 'alt-address-style_roadtypes' %] - [% PROCESS 'alt-address-style_B_address' %] - [% PROCESS 'alt-address-style_B_address2' %] - [% PROCESS 'alt-address-style_B_city' %] - [% PROCESS 'alt-address-style_B_state' %] - [% PROCESS 'alt-address-style_B_zipcode' %] - [% PROCESS 'alt-address-style_B_country' %] - [% PROCESS 'alt-address-style_B_phone' %] - [% PROCESS 'alt-address-style_B_email' %] - [% PROCESS 'alt-address-style_B_contactnote' %] -[% END %] + [% BLOCK 'member-alt-address-style-de' %] + [% PROCESS 'alt-address-style_roadtypes' %] + [% PROCESS 'alt-address-style_B_address' %] + [% PROCESS 'alt-address-style_B_streetnumber' %] + [% PROCESS 'alt-address-style_B_address2' %] + [% PROCESS 'alt-address-style_B_zipcode' %] + [% PROCESS 'alt-address-style_B_city' %] + [% PROCESS 'alt-address-style_B_state' %] + [% PROCESS 'alt-address-style_B_country' %] + [% PROCESS 'alt-address-style_B_phone' %] + [% PROCESS 'alt-address-style_B_email' %] + [% PROCESS 'alt-address-style_B_contactnote' %] + [% END %] -[% BLOCK 'member-alt-address-style-de' %] - [% PROCESS 'alt-address-style_roadtypes' %] - [% PROCESS 'alt-address-style_B_address' %] - [% PROCESS 'alt-address-style_B_streetnumber' %] - [% PROCESS 'alt-address-style_B_address2' %] - [% PROCESS 'alt-address-style_B_zipcode' %] - [% PROCESS 'alt-address-style_B_city' %] - [% PROCESS 'alt-address-style_B_state' %] - [% PROCESS 'alt-address-style_B_country' %] - [% PROCESS 'alt-address-style_B_phone' %] - [% PROCESS 'alt-address-style_B_email' %] - [% PROCESS 'alt-address-style_B_contactnote' %] -[% END %] + [% BLOCK 'member-alt-address-style-fr' %] + [% PROCESS 'alt-address-style_B_streetnumber' %] + [% PROCESS 'alt-address-style_roadtypes' %] + [% PROCESS 'alt-address-style_B_address' %] + [% PROCESS 'alt-address-style_B_address2' %] + [% PROCESS 'alt-address-style_B_zipcode' %] + [% PROCESS 'alt-address-style_B_city' %] + [% PROCESS 'alt-address-style_B_state' %] + [% PROCESS 'alt-address-style_B_country' %] + [% PROCESS 'alt-address-style_B_phone' %] + [% PROCESS 'alt-address-style_B_email' %] + [% PROCESS 'alt-address-style_B_contactnote' %] + [% END %] -[% BLOCK 'member-alt-address-style-fr' %] - [% PROCESS 'alt-address-style_B_streetnumber' %] - [% PROCESS 'alt-address-style_roadtypes' %] - [% PROCESS 'alt-address-style_B_address' %] - [% PROCESS 'alt-address-style_B_address2' %] - [% PROCESS 'alt-address-style_B_zipcode' %] - [% PROCESS 'alt-address-style_B_city' %] - [% PROCESS 'alt-address-style_B_state' %] - [% PROCESS 'alt-address-style_B_country' %] - [% PROCESS 'alt-address-style_B_phone' %] - [% PROCESS 'alt-address-style_B_email' %] - [% PROCESS 'alt-address-style_B_contactnote' %] -[% END %] + [% BLOCK 'alt-address-style_roadtypes' %] + [% SET roadtypes = AuthorisedValues.GetAuthValueDropbox('ROADTYPE') %] + [% IF roadtypes.count %] + [% UNLESS noB_streettype %] +
  • + [% IF ( mandatoryB_streettype ) %] +
  • + [% END %] + [% END %] + [% END %] -[% BLOCK 'alt-address-style_roadtypes' %] - [% SET roadtypes = AuthorisedValues.GetAuthValueDropbox('ROADTYPE') %] - [% IF roadtypes.count %] - [% UNLESS noB_streettype %] + [% BLOCK 'alt-address-style_B_address' %] + [% UNLESS noB_address %]
  • - [% IF ( mandatoryB_streettype ) %] -
  • [% END %] [% END %] -[% END %] -[% BLOCK 'alt-address-style_B_address' %] - [% UNLESS noB_address %] -
  • - [% IF ( mandatoryB_address ) %] -
  • - [% END %] -[% END %] - -[% BLOCK 'alt-address-style_B_streetnumber' %] - [% UNLESS noB_streetnumber %] -
  • - [% IF ( mandatoryB_streetnumber ) %] -
  • + [% BLOCK 'alt-address-style_B_streetnumber' %] + [% UNLESS noB_streetnumber %] +
  • + [% IF ( mandatoryB_streetnumber ) %] +
  • + [% END %] [% END %] -[% END %] -[% BLOCK 'alt-address-style_B_address2' %] - [% UNLESS noB_address2 %] -
  • - [% IF ( mandatoryB_address2 ) %] -
  • + [% BLOCK 'alt-address-style_B_address2' %] + [% UNLESS noB_address2 %] +
  • + [% IF ( mandatoryB_address2 ) %] +
  • + [% END %] [% END %] -[% END %] -[% BLOCK 'alt-address-style_B_zipcode' %] - [% UNLESS noB_zipcode %] -
  • - [% IF ( mandatoryB_zipcode ) %] -
  • + [% BLOCK 'alt-address-style_B_zipcode' %] + [% UNLESS noB_zipcode %] +
  • + [% IF ( mandatoryB_zipcode ) %] +
  • + [% END %] [% END %] -[% END %] -[% BLOCK 'alt-address-style_B_city' %] - [% UNLESS noB_city %] -
  • - [% IF ( mandatoryB_city ) %] -
  • + + or enter + [% END %] + + [% IF ( mandatoryB_city ) %]Required[% END %] + + [% END %] [% END %] -[% END %] -[% BLOCK 'alt-address-style_B_state' %] - [% UNLESS noB_state %] -
  • - [% IF ( mandatoryB_state ) %] -
  • + [% BLOCK 'alt-address-style_B_state' %] + [% UNLESS noB_state %] +
  • + [% IF ( mandatoryB_state ) %] +
  • + [% END %] [% END %] -[% END %] -[% BLOCK 'alt-address-style_B_country' %] - [% UNLESS noB_country %] -
  • - [% IF ( mandatoryB_country ) %] -
  • + [% BLOCK 'alt-address-style_B_country' %] + [% UNLESS noB_country %] +
  • + [% IF ( mandatoryB_country ) %] +
  • + [% END %] [% END %] -[% END %] -[% BLOCK 'alt-address-style_B_phone' %] - [% UNLESS noB_phone %] -
  • - [% IF ( mandatoryB_phone ) %] -
  • + [% BLOCK 'alt-address-style_B_phone' %] + [% UNLESS noB_phone %] +
  • + [% IF ( mandatoryB_phone ) %] +
  • + [% END %] [% END %] -[% END %] -[% BLOCK 'alt-address-style_B_email' %] - [% UNLESS noB_email %] -
  • - [% IF ( mandatoryB_email ) %] -
  • + [% BLOCK 'alt-address-style_B_email' %] + [% UNLESS noB_email %] +
  • + [% IF ( mandatoryB_email ) %] +
  • + [% END %] [% END %] -[% END %] -[% BLOCK 'alt-address-style_B_contactnote' %] - [% UNLESS nocontactnote %] -
  • - [% IF ( mandatorycontactnote ) %] -
  • + [% BLOCK 'alt-address-style_B_contactnote' %] + [% UNLESS nocontactnote %] +
  • + [% IF ( mandatorycontactnote ) %] +
  • + [% END %] [% END %] -[% END %] +[% END # /FILTER collapse %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style.inc index 6211c412af6..992201a4e65 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style.inc @@ -1,199 +1,201 @@ [% USE Koha %] -[% BLOCK 'alt-contact-style' %] -
    - Alternate contact -
      - [% IF Koha.Preference( 'AddressFormat' ) %] - [% PROCESS "member-alt-contact-style-${ Koha.Preference( 'AddressFormat' ) }" %] - [% ELSE %] - [% PROCESS 'member-alt-contact-style-us' %] - [% END %] -
    -
    -[% END %] +[% FILTER collapse %] + [% BLOCK 'alt-contact-style' %] +
    + Alternate contact +
      + [% IF Koha.Preference( 'AddressFormat' ) %] + [% PROCESS "member-alt-contact-style-${ Koha.Preference( 'AddressFormat' ) }" %] + [% ELSE %] + [% PROCESS 'member-alt-contact-style-us' %] + [% END %] +
    +
    + [% END %] -[% BLOCK 'member-alt-contact-style-us' %] - [% PROCESS 'alt-contact-style_altcontactsurname' %] - [% PROCESS 'alt-contact-style_altcontactfirstname' %] - [% PROCESS 'alt-contact-style_altcontactaddress1' %] - [% PROCESS 'alt-contact-style_altcontactaddress2' %] - [% PROCESS 'alt-contact-style_altcontactaddress3' %] - [% PROCESS 'alt-contact-style_altcontactstate' %] - [% PROCESS 'alt-contact-style_altcontactzipcode' %] - [% PROCESS 'alt-contact-style_altcontactcountry' %] - [% PROCESS 'alt-contact-style_altcontactphone' %] -[% END %] + [% BLOCK 'member-alt-contact-style-us' %] + [% PROCESS 'alt-contact-style_altcontactsurname' %] + [% PROCESS 'alt-contact-style_altcontactfirstname' %] + [% PROCESS 'alt-contact-style_altcontactaddress1' %] + [% PROCESS 'alt-contact-style_altcontactaddress2' %] + [% PROCESS 'alt-contact-style_altcontactaddress3' %] + [% PROCESS 'alt-contact-style_altcontactstate' %] + [% PROCESS 'alt-contact-style_altcontactzipcode' %] + [% PROCESS 'alt-contact-style_altcontactcountry' %] + [% PROCESS 'alt-contact-style_altcontactphone' %] + [% END %] -[% BLOCK 'member-alt-contact-style-de' %] - [% PROCESS 'alt-contact-style_altcontactsurname' %] - [% PROCESS 'alt-contact-style_altcontactfirstname' %] - [% PROCESS 'alt-contact-style_altcontactaddress1' %] - [% PROCESS 'alt-contact-style_altcontactaddress2' %] - [% PROCESS 'alt-contact-style_altcontactzipcode' %] - [% PROCESS 'alt-contact-style_altcontactaddress3' %] - [% PROCESS 'alt-contact-style_altcontactstate' %] - [% PROCESS 'alt-contact-style_altcontactcountry' %] - [% PROCESS 'alt-contact-style_altcontactphone' %] -[% END %] + [% BLOCK 'member-alt-contact-style-de' %] + [% PROCESS 'alt-contact-style_altcontactsurname' %] + [% PROCESS 'alt-contact-style_altcontactfirstname' %] + [% PROCESS 'alt-contact-style_altcontactaddress1' %] + [% PROCESS 'alt-contact-style_altcontactaddress2' %] + [% PROCESS 'alt-contact-style_altcontactzipcode' %] + [% PROCESS 'alt-contact-style_altcontactaddress3' %] + [% PROCESS 'alt-contact-style_altcontactstate' %] + [% PROCESS 'alt-contact-style_altcontactcountry' %] + [% PROCESS 'alt-contact-style_altcontactphone' %] + [% END %] -[% BLOCK 'member-alt-contact-style-fr' %] - [% PROCESS 'alt-contact-style_altcontactsurname' %] - [% PROCESS 'alt-contact-style_altcontactfirstname' %] - [% PROCESS 'alt-contact-style_altcontactaddress1' %] - [% PROCESS 'alt-contact-style_altcontactaddress2' %] - [% PROCESS 'alt-contact-style_altcontactzipcode' %] - [% PROCESS 'alt-contact-style_altcontactaddress3' %] - [% PROCESS 'alt-contact-style_altcontactstate' %] - [% PROCESS 'alt-contact-style_altcontactcountry' %] - [% PROCESS 'alt-contact-style_altcontactphone' %] -[% END %] + [% BLOCK 'member-alt-contact-style-fr' %] + [% PROCESS 'alt-contact-style_altcontactsurname' %] + [% PROCESS 'alt-contact-style_altcontactfirstname' %] + [% PROCESS 'alt-contact-style_altcontactaddress1' %] + [% PROCESS 'alt-contact-style_altcontactaddress2' %] + [% PROCESS 'alt-contact-style_altcontactzipcode' %] + [% PROCESS 'alt-contact-style_altcontactaddress3' %] + [% PROCESS 'alt-contact-style_altcontactstate' %] + [% PROCESS 'alt-contact-style_altcontactcountry' %] + [% PROCESS 'alt-contact-style_altcontactphone' %] + [% END %] -[% BLOCK 'alt-contact-style_altcontactsurname' %] - [% UNLESS noaltcontactsurname %] -
  • - [% IF ( mandatoryaltcontactsurname ) %] -
  • + [% BLOCK 'alt-contact-style_altcontactsurname' %] + [% UNLESS noaltcontactsurname %] +
  • + [% IF ( mandatoryaltcontactsurname ) %] +
  • + [% END %] [% END %] -[% END %] -[% BLOCK 'alt-contact-style_altcontactfirstname' %] - [% UNLESS noaltcontactfirstname %] -
  • - [% IF ( mandatoryaltcontactfirstname ) %] -
  • + [% BLOCK 'alt-contact-style_altcontactfirstname' %] + [% UNLESS noaltcontactfirstname %] +
  • + [% IF ( mandatoryaltcontactfirstname ) %] +
  • + [% END %] [% END %] -[% END %] -[% BLOCK 'alt-contact-style_altcontactaddress1' %] - [% UNLESS noaltcontactaddress1 %] -
  • - [% IF ( mandatoryaltcontactaddress1 ) %] -
  • + [% BLOCK 'alt-contact-style_altcontactaddress1' %] + [% UNLESS noaltcontactaddress1 %] +
  • + [% IF ( mandatoryaltcontactaddress1 ) %] +
  • + [% END %] [% END %] -[% END %] -[% BLOCK 'alt-contact-style_altcontactaddress2' %] - [% UNLESS noaltcontactaddress2 %] -
  • - [% IF ( mandatoryaltcontactaddress2 ) %] -
  • + [% BLOCK 'alt-contact-style_altcontactaddress2' %] + [% UNLESS noaltcontactaddress2 %] +
  • + [% IF ( mandatoryaltcontactaddress2 ) %] +
  • + [% END %] [% END %] -[% END %] -[% BLOCK 'alt-contact-style_altcontactzipcode' %] - [% UNLESS noaltcontactzipcode %] -
  • - [% IF ( mandatoryaltcontactzipcode ) %] -
  • + [% BLOCK 'alt-contact-style_altcontactzipcode' %] + [% UNLESS noaltcontactzipcode %] +
  • + [% IF ( mandatoryaltcontactzipcode ) %] +
  • + [% END %] [% END %] -[% END %] -[% BLOCK 'alt-contact-style_altcontactaddress3' %] - [% UNLESS noaltcontactaddress3 %] -
  • - [% IF ( mandatoryaltcontactaddress3 ) %] -
  • + + or enter + [% END %] + + [% IF ( mandatoryaltcontactaddress3 ) %]Required[% END %] + + [% END %] [% END %] -[% END %] -[% BLOCK 'alt-contact-style_altcontactstate' %] - [% UNLESS noaltcontactstate %] -
  • - [% IF ( mandatoryaltcontactstate ) %] -
  • + [% BLOCK 'alt-contact-style_altcontactstate' %] + [% UNLESS noaltcontactstate %] +
  • + [% IF ( mandatoryaltcontactstate ) %] +
  • + [% END %] [% END %] -[% END %] -[% BLOCK 'alt-contact-style_altcontactcountry' %] - [% UNLESS noaltcontactcountry %] -
  • - [% IF ( mandatoryaltcontactcountry ) %] -
  • + [% BLOCK 'alt-contact-style_altcontactcountry' %] + [% UNLESS noaltcontactcountry %] +
  • + [% IF ( mandatoryaltcontactcountry ) %] +
  • + [% END %] [% END %] -[% END %] -[% BLOCK 'alt-contact-style_altcontactphone' %] - [% UNLESS noaltcontactphone %] -
  • - [% IF ( mandatoryaltcontactphone ) %] -
  • + [% BLOCK 'alt-contact-style_altcontactphone' %] + [% UNLESS noaltcontactphone %] +
  • + [% IF ( mandatoryaltcontactphone ) %] +
  • + [% END %] [% END %] -[% END %] +[% END # /FILTER collapse %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-address-style.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-address-style.inc index 83fa575bd11..8fe1ab15b55 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-address-style.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-address-style.inc @@ -1,77 +1,79 @@ -[%~ USE Koha ~%] -[%~ USE raw ~%] -[%~ BLOCK 'display-address-style' ~%] - [%~ SET line_break = "
    " ~%] - [%~ 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 ~%] +[% USE Koha %] +[% USE raw %] +[% FILTER collapse %] + [% BLOCK 'display-address-style' %] + [% SET line_break = "
    " %] + [% 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 ~%] -
  • [%~ if (patron.streetnumber) | html ~%][%~ patron.streetnumber |html ~%][%~ end | html %] [% patron.address | html %] [% IF roadtype_desc ~%][%~ roadtype_desc |html %] [% END ~%][%~ end | html ~%]
  • - [%~ END ~%] - [%~ IF ( patron.address2 ) ~%] -
  • [%~ patron.address2 |html ~%]
  • - [%~ END ~%] - [%~ END ~%] - [%~ IF ( patron.city || patron.zipcode || patron.state || patron.country ) ~%] -
  • - [%~ patron.city |html ~%][%~ IF ( patron.state ) %][%~ IF ( patron.city ) ~%], [% END ~%][% patron.state |html ~%][%~ END ~%] - [%~ IF ( patron.zipcode ) %][%~ " " _ patron.zipcode |html ~%][% END %][%~ IF ( patron.country ) %][%~ IF ( patron.zipcode || patron.state || patron.city ) ~%], [% END ~%][% patron.country |html ~%][%~ END ~%] -
  • - [%~ 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 %] +
  • [% if (patron.streetnumber) | html %][% patron.streetnumber |html %][% end | html %] [% patron.address | html %] [% IF roadtype_desc %][% roadtype_desc |html %] [% END %][% end | html %]
  • + [% END %] + [% IF ( patron.address2 ) %] +
  • [% patron.address2 |html %]
  • + [% END %] + [% END %] + [% IF ( patron.city || patron.zipcode || patron.state || patron.country ) %] +
  • + [% patron.city |html %][% IF ( patron.state ) %][% IF ( patron.city ) %], [% END %][% patron.state |html %][% END %] + [% IF ( patron.zipcode ) %][% " " _ patron.zipcode |html %][% END %][% IF ( patron.country ) %][% IF ( patron.zipcode || patron.state || patron.city ) %], [% END %][% patron.country |html %][% END %] +
  • + [% 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 ~%] -
  • [%~ patron.address | html ~%][%~IF roadtype_desc %] [% roadtype_desc | html ~%][%~ END ~%][%~ IF patron.streetnumber %] [% patron.streetnumber | html ~%][%~ END ~%]
  • - [%~ END ~%] - [%~ IF ( patron.address2 ) ~%] -
  • [%~ patron.address2 | html ~%]
  • - [%~ END ~%] - [%~ END ~%] - [%~ IF ( patron.city || patron.zipcode || patron.state || patron.country ) ~%] -
  • - [%~ 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 ~%] -
  • - [%~ 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 %] +
  • [% patron.address | html %][%IF roadtype_desc %] [% roadtype_desc | html %][% END %][% IF patron.streetnumber %] [% patron.streetnumber | html %][% END %]
  • + [% END %] + [% IF ( patron.address2 ) %] +
  • [% patron.address2 | html %]
  • + [% END %] + [% END %] + [% IF ( patron.city || patron.zipcode || patron.state || patron.country ) %] +
  • + [% 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 %] +
  • + [% 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 ~%] -
  • [%~ IF patron.streetnumber ~%][%~ patron.streetnumber | html %] [% END ~%] - [%~IF roadtype_desc ~%][%~ roadtype_desc | html %] [% END ~%] - [%~ patron.address | html ~%] + [% 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 %] +
  • [% IF patron.streetnumber %][% patron.streetnumber | html %] [% END %] + [%IF roadtype_desc %][% roadtype_desc | html %] [% END %] + [% patron.address | html %] +
  • + [% END %] + [% IF ( patron.address2 ) %] +
  • [% patron.address2 | html %]
  • + [% END %] + [% END %] + [% IF ( patron.city || patron.zipcode || patron.state || patron.country ) %] +
  • + [% 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 %]
  • - [%~ END ~%] - [%~ IF ( patron.address2 ) ~%] -
  • [%~ patron.address2 | html ~%]
  • - [%~ END ~%] - [%~ END ~%] - [%~ IF ( patron.city || patron.zipcode || patron.state || patron.country ) ~%] -
  • - [%~ 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 ~%] -
  • - [%~ END ~%] -[%~ END ~%] + [% END %] + [% END %] +[% END # /FILTER collapse %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style.inc index dfcb6074247..ce23fa431ae 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style.inc @@ -1,76 +1,78 @@ [% USE Koha %] -[% BLOCK 'display-alt-address-style' %] - [% IF Koha.Preference( 'AddressFormat' ) %] - [% PROCESS "member-alt-display-address-style-${ Koha.Preference( 'AddressFormat' ) }" %] - [% ELSE %] - [% PROCESS 'member-alt-display-address-style-us' %] +[% FILTER collapse %] + [% BLOCK 'display-alt-address-style' %] + [% IF Koha.Preference( 'AddressFormat' ) %] + [% PROCESS "member-alt-display-address-style-${ Koha.Preference( 'AddressFormat' ) }" %] + [% ELSE %] + [% PROCESS 'member-alt-display-address-style-us' %] + [% END %] [% END %] -[% END %] -[% BLOCK 'member-alt-display-address-style-us' %] - [% IF ( patron.B_address or patron.B_address2 ) %] - [% IF ( patron.B_address ) %] - [% SET roadtype_desc = '' %] - [% IF patron.B_streettype %] - [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.B_streettype) %] + [% BLOCK 'member-alt-display-address-style-us' %] + [% IF ( patron.B_address or patron.B_address2 ) %] + [% IF ( patron.B_address ) %] + [% SET roadtype_desc = '' %] + [% IF patron.B_streettype %] + [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.B_streettype) %] + [% END %] +
  • [% if (patron.B_streetnumber) | html %][% patron.B_streetnumber | html %][% end | html %] [% patron.B_address | html %] [% IF roadtype_desc %][% roadtype_desc | html %] [% END %][% end | html %]
  • + [% END %] + [% IF ( patron.B_address2 ) %] +
  • [% patron.B_address2 | html %]
  • [% END %] -
  • [% if (patron.B_streetnumber) | html %][% patron.B_streetnumber | html %][% end | html %] [% patron.B_address | html %] [% IF roadtype_desc %][% roadtype_desc | html %] [% END %][% end | html %]
  • [% END %] - [% IF ( patron.B_address2 ) %] -
  • [% patron.B_address2 | html %]
  • + [% IF ( patron.B_city || patron.B_state || patron.B_country || patron.B_zipcode ) %] +
  • + [% patron.B_city | html %][% IF ( patron.B_state ) %][% IF ( patron.B_city ) %], [% END %][%~ patron.B_state | html ~%][%~ END ~%] + [% IF ( patron.B_zipcode ) %][%~ " " _ patron.B_zipcode |html ~%][% END %][% IF ( patron.B_country ) %][% IF ( patron.B_zipcode || patron.B_state || patron.B_city ) %], [% END %][% patron.B_country | html %][% END %] +
  • [% END %] [% END %] - [% IF ( patron.B_city || patron.B_state || patron.B_country || patron.B_zipcode ) %] -
  • - [% patron.B_city | html %][% IF ( patron.B_state ) %][% IF ( patron.B_city ) %], [% END %][%~ patron.B_state | html ~%][%~ END ~%] - [% IF ( patron.B_zipcode ) %][%~ " " _ patron.B_zipcode |html ~%][% END %][% IF ( patron.B_country ) %][% IF ( patron.B_zipcode || patron.B_state || patron.B_city ) %], [% END %][% patron.B_country | html %][% END %] -
  • - [% END %] -[% END %] -[% BLOCK 'member-alt-display-address-style-de' %] - [% IF ( patron.B_address or patron.B_address2 ) %] - [% IF ( patron.B_address ) %] - [% SET roadtype_desc = '' %] - [% IF patron.B_streettype %] - [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.B_streettype) %] + [% BLOCK 'member-alt-display-address-style-de' %] + [% IF ( patron.B_address or patron.B_address2 ) %] + [% IF ( patron.B_address ) %] + [% SET roadtype_desc = '' %] + [% IF patron.B_streettype %] + [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.B_streettype) %] + [% END %] +
  • [% patron.B_address | html %][%IF roadtype_desc %] [% roadtype_desc | html %][% END %][% IF patron.B_streetnumber %] [% patron.B_streetnumber | html %][% END %]
  • + [% END %] + [% IF ( patron.B_address2 ) %] +
  • [% patron.B_address2 | html %]
  • [% END %] -
  • [% patron.B_address | html %][%IF roadtype_desc %] [% roadtype_desc | html %][% END %][% IF patron.B_streetnumber %] [% patron.B_streetnumber | html %][% END %]
  • [% END %] - [% IF ( patron.B_address2 ) %] -
  • [% patron.B_address2 | html %]
  • + [% IF ( patron.B_city || patron.B_state || patron.B_country || patron.B_zipcode ) %] +
  • + [%IF ( patron.B_zipcode ) %][% patron.B_zipcode | html %] [% END %][% patron.B_city | html %][% IF ( patron.B_state ) %]
    [% patron.B_state | html %][% END %] + [% IF ( patron.B_country ) %]
    [% patron.B_country | html %][% END %] +
  • [% END %] [% END %] - [% IF ( patron.B_city || patron.B_state || patron.B_country || patron.B_zipcode ) %] -
  • - [%IF ( patron.B_zipcode ) %][% patron.B_zipcode | html %] [% END %][% patron.B_city | html %][% IF ( patron.B_state ) %]
    [% patron.B_state | html %][% END %] - [% IF ( patron.B_country ) %]
    [% patron.B_country | html %][% END %] -
  • - [% END %] -[% END %] -[% BLOCK 'member-alt-display-address-style-fr' %] - [% IF ( patron.B_address or patron.B_address2 ) %] - [% IF ( patron.B_address ) %] - [% SET roadtype_desc = '' %] - [% IF patron.B_streettype %] - [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.B_streettype) %] + [% BLOCK 'member-alt-display-address-style-fr' %] + [% IF ( patron.B_address or patron.B_address2 ) %] + [% IF ( patron.B_address ) %] + [% SET roadtype_desc = '' %] + [% IF patron.B_streettype %] + [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.B_streettype) %] + [% END %] +
  • [% IF patron.B_streetnumber %][% patron.B_streetnumber | html %][% END %] + [%IF roadtype_desc %][% roadtype_desc | html %] [% END %] + [% patron.B_address | html %] +
  • + [% END %] + [% IF ( patron.B_address2 ) %] +
  • [% patron.B_address2 | html %]
  • [% END %] -
  • [% IF patron.B_streetnumber %][% patron.B_streetnumber | html %][% END %] - [%IF roadtype_desc %][% roadtype_desc | html %] [% END %] - [% patron.B_address | html %] -
  • [% END %] - [% IF ( patron.B_address2 ) %] -
  • [% patron.B_address2 | html %]
  • + [% IF ( patron.B_city || patron.B_state || patron.B_country || patron.B_zipcode ) %] +
  • + [%IF ( patron.B_zipcode ) %][% patron.B_zipcode | html %] [% END %] + [% patron.B_city | html %] + [% IF ( patron.B_state ) %]
    [% patron.B_state | html %][% END %] + [% IF ( patron.B_country ) %]
    [% patron.B_country | html %][% END %] +
  • [% END %] [% END %] - [% IF ( patron.B_city || patron.B_state || patron.B_country || patron.B_zipcode ) %] -
  • - [%IF ( patron.B_zipcode ) %][% patron.B_zipcode | html %] [% END %] - [% patron.B_city | html %] - [% IF ( patron.B_state ) %]
    [% patron.B_state | html %][% END %] - [% IF ( patron.B_country ) %]
    [% patron.B_country | html %][% END %] -
  • - [% END %] -[% END %] +[% END # /FILTER collapse %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc index a5c95b9c557..7547e1ad1c5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc @@ -1,194 +1,196 @@ [% USE Koha %] [% USE AuthorisedValues %] -[% BLOCK 'main-address-style' %] -
    - Main address -
      - [% IF Koha.Preference( 'AddressFormat' ) %] - [% PROCESS "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }" %] - [% ELSE %] - [% PROCESS 'member-main-address-style-us' %] - [% END %] -
    -
    -[% END %] +[% FILTER collapse %] + [% BLOCK 'main-address-style' %] +
    + Main address +
      + [% IF Koha.Preference( 'AddressFormat' ) %] + [% PROCESS "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }" %] + [% ELSE %] + [% PROCESS 'member-main-address-style-us' %] + [% END %] +
    +
    + [% END %] -[% BLOCK 'member-main-address-style-us' %] - [% PROCESS 'address-style_streetnumber' %] - [% PROCESS 'address-style_roadtypes' %] - [% PROCESS 'address-style_address' %] - [% PROCESS 'address-style_address2' %] - [% PROCESS 'address-style_city' %] - [% PROCESS 'address-style_state' %] - [% PROCESS 'address-style_zipcode' %] - [% PROCESS 'address-style_country' %] -[% END %] + [% BLOCK 'member-main-address-style-us' %] + [% PROCESS 'address-style_streetnumber' %] + [% PROCESS 'address-style_roadtypes' %] + [% PROCESS 'address-style_address' %] + [% PROCESS 'address-style_address2' %] + [% PROCESS 'address-style_city' %] + [% PROCESS 'address-style_state' %] + [% PROCESS 'address-style_zipcode' %] + [% PROCESS 'address-style_country' %] + [% END %] -[% BLOCK 'member-main-address-style-de' %] - [% PROCESS 'address-style_roadtypes' %] - [% PROCESS 'address-style_address' %] - [% PROCESS 'address-style_streetnumber' %] - [% PROCESS 'address-style_address2' %] - [% PROCESS 'address-style_zipcode' %] - [% PROCESS 'address-style_city' %] - [% PROCESS 'address-style_state' %] - [% PROCESS 'address-style_country' %] -[% END %] + [% BLOCK 'member-main-address-style-de' %] + [% PROCESS 'address-style_roadtypes' %] + [% PROCESS 'address-style_address' %] + [% PROCESS 'address-style_streetnumber' %] + [% PROCESS 'address-style_address2' %] + [% PROCESS 'address-style_zipcode' %] + [% PROCESS 'address-style_city' %] + [% PROCESS 'address-style_state' %] + [% PROCESS 'address-style_country' %] + [% END %] -[% BLOCK 'member-main-address-style-fr' %] - [% PROCESS 'address-style_streetnumber' %] - [% PROCESS 'address-style_roadtypes' %] - [% PROCESS 'address-style_address' %] - [% PROCESS 'address-style_address2' %] - [% PROCESS 'address-style_zipcode' %] - [% PROCESS 'address-style_city' %] - [% PROCESS 'address-style_state' %] - [% PROCESS 'address-style_country' %] -[% END %] + [% BLOCK 'member-main-address-style-fr' %] + [% PROCESS 'address-style_streetnumber' %] + [% PROCESS 'address-style_roadtypes' %] + [% PROCESS 'address-style_address' %] + [% PROCESS 'address-style_address2' %] + [% PROCESS 'address-style_zipcode' %] + [% PROCESS 'address-style_city' %] + [% PROCESS 'address-style_state' %] + [% PROCESS 'address-style_country' %] + [% END %] -[% BLOCK 'address-style_roadtypes' %] - [% SET roadtypes = AuthorisedValues.GetAuthValueDropbox('ROADTYPE') %] - [% IF roadtypes.count %] - [% UNLESS nostreettype %] + [% BLOCK 'address-style_roadtypes' %] + [% SET roadtypes = AuthorisedValues.GetAuthValueDropbox('ROADTYPE') %] + [% IF roadtypes.count %] + [% UNLESS nostreettype %] +
  • + [% IF ( mandatorystreettype ) %] +
  • + [% END %] + [% END %] + [% END %] + + [% BLOCK 'address-style_address' %] + [% UNLESS noaddress %]
  • - [% IF ( mandatorystreettype ) %] -
  • [% END %] [% END %] -[% END %] -[% BLOCK 'address-style_address' %] - [% UNLESS noaddress %] -
  • - [% IF ( mandatoryaddress ) %] -
  • - [% END %] -[% END %] - -[% BLOCK 'address-style_streetnumber' %] - [% UNLESS nostreetnumber %] -
  • - [% IF ( mandatorystreetnumber ) %] -
  • + [% BLOCK 'address-style_streetnumber' %] + [% UNLESS nostreetnumber %] +
  • + [% IF ( mandatorystreetnumber ) %] +
  • + [% END %] [% END %] -[% END %] -[% BLOCK 'address-style_address2' %] - [% UNLESS noaddress2 %] -
  • - [% IF ( mandatoryaddress2 ) %] -
  • + [% BLOCK 'address-style_address2' %] + [% UNLESS noaddress2 %] +
  • + [% IF ( mandatoryaddress2 ) %] +
  • + [% END %] [% END %] -[% END %] -[% BLOCK 'address-style_zipcode' %] - [% UNLESS nozipcode %] -
  • - [% IF ( mandatoryzipcode ) %] -
  • + [% BLOCK 'address-style_zipcode' %] + [% UNLESS nozipcode %] +
  • + [% IF ( mandatoryzipcode ) %] +
  • + [% END %] [% END %] -[% END %] -[% BLOCK 'address-style_city' %] - [% UNLESS nocity %] -
  • - [% IF ( mandatorycity ) %] -
  • + + or enter + [% END %] + + [% IF ( mandatorycity ) %]Required[% END %] + + [% END %] [% END %] -[% END %] -[% BLOCK 'address-style_state' %] - [% UNLESS nostate %] -
  • - [% IF ( mandatorystate ) %] -
  • + [% BLOCK 'address-style_state' %] + [% UNLESS nostate %] +
  • + [% IF ( mandatorystate ) %] +
  • + [% END %] [% END %] -[% END %] -[% BLOCK 'address-style_country' %] - [% UNLESS nocountry %] -
  • - [% IF ( mandatorycountry ) %] -
  • + [% BLOCK 'address-style_country' %] + [% UNLESS nocountry %] +
  • + [% IF ( mandatorycountry ) %] +
  • + [% END %] [% END %] -[% END %] +[% END # /FILTER collapse %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/display-library-address.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/display-library-address.inc index 5d129115c1c..99d85b0e27f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/display-library-address.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/display-library-address.inc @@ -1,81 +1,83 @@ -[%~ USE Koha ~%] -[%~ USE raw ~%] -[%~ BLOCK 'display-library-address' ~%] - [%~ SET line_break = "
    " ~%] - [%~ IF no_line_break %][% SET line_break = " " %][% END ~%] - [%~ IF Koha.Preference( 'AddressFormat' ) == "us" ~%] - [%~ PROCESS 'display-library-address-us' ~%] - [%~ ELSE ~%] - [%~ PROCESS 'display-library-address-de-fr' ~%] - [%~ END ~%] -[%~ END ~%] +[% USE Koha %] +[% USE raw %] +[% FILTER collapse %] + [% BLOCK 'display-library-address' %] + [% SET line_break = "
    " %] + [% IF no_line_break %][% SET line_break = " " %][% END %] + [% IF Koha.Preference( 'AddressFormat' ) == "us" %] + [% PROCESS 'display-library-address-us' %] + [% ELSE %] + [% PROCESS 'display-library-address-de-fr' %] + [% END %] + [% END %] -[%~ BLOCK 'display-library-address-us' ~%] - [%~ IF ( library.branchaddress1 or library.branchaddress2 ) ~%] - - [%~ IF ( library.branchaddress1 ) ~%] -
    - [% library.branchaddress1 | html %] -
    - [%~ END ~%] - [%~ IF ( library.branchaddress2 ) ~%] -
    - [%~ library.branchaddress2 |html ~%] -
    - [%~ END ~%] - [%~ IF ( library.branchaddress3 ) ~%] - - [%~ library.branchaddress3 | html ~%] - - [% line_break | $raw %] - [%~ END ~%] -
    - [%~ END ~%] - [%~ IF ( library.branchcity ) ~%] -
    - [%~ library.branchcity |html ~%] - [%~ IF ( library.branchstate ) %], [% library.branchstate |html ~%][%~ END ~%] - [%~ IF ( library.branchzip ) %] - - [%~ library.branchzip |html ~%] - - [%~ END ~%] - [%~ IF ( library.branchcountry ) %] -
    - [% library.branchcountry |html ~%] -
    - [%~ END ~%] -
    - [%~ END ~%] -[%~ END ~%] + [% BLOCK 'display-library-address-us' %] + [% IF ( library.branchaddress1 or library.branchaddress2 ) %] + + [% IF ( library.branchaddress1 ) %] +
    + [% library.branchaddress1 | html %] +
    + [% END %] + [% IF ( library.branchaddress2 ) %] +
    + [% library.branchaddress2 |html %] +
    + [% END %] + [% IF ( library.branchaddress3 ) %] + + [% library.branchaddress3 | html %] + + [% line_break | $raw %] + [% END %] +
    + [% END %] + [% IF ( library.branchcity ) %] +
    + [% library.branchcity |html %] + [% IF ( library.branchstate ) %], [% library.branchstate |html %][% END %] + [% IF ( library.branchzip ) %] + + [% library.branchzip |html %] + + [% END %] + [% IF ( library.branchcountry ) %] +
    + [% library.branchcountry |html %] +
    + [% END %] +
    + [% END %] + [% END %] -[%~ BLOCK 'display-library-address-de-fr' ~%] - [%~ IF ( library.branchaddress1 or library.branchaddress2 ) ~%] - - [%~ IF ( library.branchaddress1 ) ~%] - - [%~ library.branchaddress1 | html ~%] - - [% line_break | $raw %] - [%~ END ~%] - [%~ IF ( library.branchaddress2 ) ~%] - - [%~ library.branchaddress2 | html ~%] - - [% line_break | $raw %] - [%~ END ~%] - [%~ IF ( library.branchaddress3 ) ~%] - - [%~ library.branchaddress3 | html ~%] - - [% line_break | $raw %] - [%~ END ~%] - - [%~ END ~%] - [%~ IF ( library.branchcity ) ~%] - - [%~ IF ( library.branchzip ) ~%][%~ library.branchzip | html %] [% END ~%][%~ library.branchcity | html ~%][%~ IF ( library.branchstate ) ~%][% line_break | $raw %][%~ library.branchstate | html ~%][%~ END ~%] - [%~ IF ( library.branchcountry ) ~%][% line_break | $raw %][%~ library.branchcountry | html ~%][%~ END ~%] - - [%~ END ~%] -[%~ END ~%] + [% BLOCK 'display-library-address-de-fr' %] + [% IF ( library.branchaddress1 or library.branchaddress2 ) %] + + [% IF ( library.branchaddress1 ) %] + + [% library.branchaddress1 | html %] + + [% line_break | $raw %] + [% END %] + [% IF ( library.branchaddress2 ) %] + + [% library.branchaddress2 | html %] + + [% line_break | $raw %] + [% END %] + [% IF ( library.branchaddress3 ) %] + + [% library.branchaddress3 | html %] + + [% line_break | $raw %] + [% END %] + + [% END %] + [% IF ( library.branchcity ) %] + + [% IF ( library.branchzip ) %][% library.branchzip | html %] [% END %][% library.branchcity | html %][% IF ( library.branchstate ) %][% line_break | $raw %][% library.branchstate | html %][% END %] + [% IF ( library.branchcountry ) %][% line_break | $raw %][% library.branchcountry | html %][% END %] + + [% END %] + [% END %] +[% END # /FILTER collapse %] -- 2.30.2