Koha/koha-tmpl/intranet-tmpl/prog/en/modules/members
Jonathan Druart 9ac2ddda0b
Bug 25069: Fix AddressFormat="fr" behavior
Something went wrong during a rebase of bug 13618
  commit dcd1f5d48c
  Bug 13618: Add html filters to all the variables

Several changes related to AddressFormat are wrong:

-    [% IF Koha.Preference( 'AddressFormat' ) %]
-        [% INCLUDE "member-main-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
-    [% ELSE %]
-        [% INCLUDE 'member-main-address-style-us.inc' %]
-    [% END %]
+    [% SWITCH Koha.Preference( 'AddressFormat' ) %]
+        [% CASE 'de' %]
+            [% INCLUDE 'member-main-address-style-de.inc' %]
+        [% CASE # us %]
+            [% INCLUDE 'member-main-address-style-us.inc' %]
+     [% END %]

Test plan:
Create a patron with all the address fields filled
Play with the 3 option values of AddressFormat, and confirm that the address is displayed correctly
on the patron's view, and in the patron module (top left)

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-04-14 08:25:31 +01:00
..
tables Bug 22781: Correctly filter the emails 2019-05-15 12:10:53 +00:00
accountline-details.tt Bug 19489: Change method name issue --> checkout 2019-03-11 12:45:58 +00:00
apikeys.tt Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
boraccount.tt Bug 24604: Add 'Pay' button under Transactions tab in patron accounting 2020-04-06 12:24:37 +01:00
deletemem.tt Bug 24008: Display warnings in a list 2020-01-20 14:03:52 +00:00
discharge.tt
discharges.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
files.tt
holdshistory.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
housebound.tt Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
ill-requests.tt Bug 18589: (QA follow-up) Remove dateFormat from javascript on ill requests pages. 2019-03-22 20:21:52 +00:00
mancredit.tt Bug 23805: Update mancredit to use the new credit types 2019-10-24 17:35:21 +01:00
maninvoice.tt Bug 14898: Add button at manual invoice to redirect to pay tab 2020-02-20 09:04:27 +00:00
member-flags.tt Bug 14741: Selecting all child permissions doesn't select the top level check box 2019-11-26 11:11:06 +00:00
member-password.tt Bug 22706: Add plugin hooks for Norwegian national patron database 2019-10-29 12:19:49 +00:00
member.tt Bug 17374: (follow-up) Remove spaces from include file 2020-03-10 15:18:29 +00:00
memberentrygen.tt Bug 25069: Fix AddressFormat="fr" behavior 2020-04-14 08:25:31 +01:00
members-update.tt Bug 24476: Rename autorenewal to autorenew_checkouts 2020-03-24 11:23:54 +00:00
merge-patrons.tt Bug 22698: Fix incorrect button classes 2019-04-16 13:17:33 +00:00
moremember-brief.tt Bug 24476: Rename autorenewal to autorenew_checkouts 2020-03-24 11:23:54 +00:00
moremember-print.tt Bug 23049: Update existing code to use debit_type 2019-10-24 17:24:15 +01:00
moremember.tt Bug 24476: Rename autorenewal to autorenew_checkouts 2020-03-24 11:23:54 +00:00
notices.tt Bug 23673: Add "Updated on" column to patron's notices 2020-02-05 14:22:43 +00:00
pay.tt Bug 23051: (follow-up) Fix renew summary display 2020-03-06 10:03:51 +00:00
paycollect.tt Bug 24495: Reword change collection feature 2020-03-18 08:45:07 +00:00
printfeercpt.tt Bug 22716: (RM follow-up) missing filter and update description 2019-05-10 14:29:13 +00:00
printinvoice.tt Bug 22809: (RM follow-up) fix missing filter and update description 2019-05-10 14:43:11 +00:00
purchase-suggestions.tt Bug 24585: Add 'Managed on' and 'Suggested on' columns to pat_purchase_suggestions.tt 2020-02-10 10:15:25 +00:00
readingrec.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
routing-lists.tt Bug 21965: Update two-column templates with Bootstrap grid: Patrons part 3 2019-01-25 20:36:05 +00:00
statistics.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00
update-child.tt Bug 22015: Move DataTables CSS to global include 2019-02-19 19:40:35 +00:00