From aeca5c9134ef2ffd2fc1153b35cd2073c2126dfd Mon Sep 17 00:00:00 2001 From: David E Jones Date: Sat, 2 May 2015 17:55:28 -0700 Subject: [PATCH] Added country Geo to PostalAddres Info, display alpha code 3 in output template if present --- mantle-usl/service/mantle/party/ContactServices.xml | 8 ++++++-- mantle-usl/template/party/ContactInfo.html.gstring | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/mantle-usl/service/mantle/party/ContactServices.xml b/mantle-usl/service/mantle/party/ContactServices.xml index 5a3d67b7..4b959780 100644 --- a/mantle-usl/service/mantle/party/ContactServices.xml +++ b/mantle-usl/service/mantle/party/ContactServices.xml @@ -32,6 +32,7 @@ This Work includes contributions authored by David E. Jones, not as a + @@ -66,6 +67,7 @@ This Work includes contributions authored by David E. Jones, not as a + @@ -158,6 +160,7 @@ This Work includes contributions authored by David E. Jones, not as a + @@ -211,6 +214,7 @@ This Work includes contributions authored by David E. Jones, not as a + @@ -231,8 +235,8 @@ This Work includes contributions authored by David E. Jones, not as a diff --git a/mantle-usl/template/party/ContactInfo.html.gstring b/mantle-usl/template/party/ContactInfo.html.gstring index 219a8cc2..f649bafc 100644 --- a/mantle-usl/template/party/ContactInfo.html.gstring +++ b/mantle-usl/template/party/ContactInfo.html.gstring @@ -2,6 +2,6 @@ ${contactInfo?.postalAddress?.toName ? '

To: ' + contactInfo.postalAddress.toN ${contactInfo?.postalAddress?.attnName ? '

Attn: ' + contactInfo.postalAddress.attnName + '

' : ''} ${contactInfo?.postalAddress?.address1 ? '

' + contactInfo.postalAddress.address1 + (contactInfo.postalAddress.unitNumber ? ' #' + contactInfo.postalAddress.unitNumber : '') + '

' : ''} ${contactInfo?.postalAddress?.address2 ? '

' + contactInfo.postalAddress.address2 + '

' : ''} -${contactInfo?.postalAddress ? '

' + (contactInfo.postalAddress.city ?: '') + (contactInfo.postalAddressStateGeo?.geoCodeAlpha2 ? ', ' + contactInfo.postalAddressStateGeo.geoCodeAlpha2 : '') + ' ' + (contactInfo.postalAddress.postalCode ?: '') + (contactInfo.postalAddress.postalCodeExt ? '-' + contactInfo.postalAddress.postalCodeExt : '') + '

' : ''} +${contactInfo?.postalAddress ? '

' + (contactInfo.postalAddress.city ?: '') + (contactInfo.postalAddressStateGeo?.geoCodeAlpha2 ? ', ' + contactInfo.postalAddressStateGeo.geoCodeAlpha2 : '') + ' ' + (contactInfo.postalAddress.postalCode ?: '') + (contactInfo.postalAddress.postalCodeExt ? '-' + contactInfo.postalAddress.postalCodeExt : '') + (contactInfo.postalAddressCountryGeo?.geoCodeAlpha3 ? ' ' + contactInfo.postalAddressCountryGeo.geoCodeAlpha3 : '') + '

' : ''} ${contactInfo?.telecomNumber ? '

' + (contactInfo.telecomNumber.countryCode ? contactInfo.telecomNumber.countryCode + '-' : '') + (contactInfo.telecomNumber.areaCode ? contactInfo.telecomNumber.areaCode + '-' : '') + (contactInfo.telecomNumber.contactNumber ?: '') + '

' : ''} ${contactInfo?.emailAddress ? '

' + contactInfo.emailAddress + '

' : ''}