You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Wickersheimer Jeremy (JIRA)" <ji...@apache.org> on 2007/07/17 04:27:04 UTC

[jira] Commented: (OFBIZ-203) Freemarker postal address formatter macro

    [ https://issues.apache.org/jira/browse/OFBIZ-203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513133 ] 

Wickersheimer Jeremy commented on OFBIZ-203:
--------------------------------------------

What is the status on this issue ?

We are currently writing some seed data for China and just found out that sometimes geoId are displayed instead of names or abbreviations. This was OK for US addresses as the geoId for the states where the same as the abbreviation used normally in the address, but obviously it doesn't make sense with Ids like CN-11 ...

A centralized way to output an address we be very nice, this would make the output consistent in all Ofbiz, only one place to maintain and easy to customize.
Obviously Chinese addresses are written very differently in Chinese than English.

> Freemarker postal address formatter macro
> -----------------------------------------
>
>                 Key: OFBIZ-203
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-203
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Leon Torres
>            Priority: Minor
>         Attachments: ofbizPostalAddress.patch, test.bsh, test.ftl
>
>
> Define a macro <@ofbizPostalAddress address=inputMapOrGenericValue/>  to format postal addresses in a consistent, flexible way with attention to country postal formats.  The output should support both HTML and Text formats.  It should be easily extensible, with future XSL:Fo support in mind.
> I created an implementation as an exercise to learn the freemarker template system.  It was designed with future macros in mind.  Currently implemented are rules for generating US, German and Royal Mail format postal addresses.  (The address country determines the format.)  Also provided are test.bsh and test.ftl so people may try them out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.