by kstranac » Thu Apr 23, 2009 7:54 am
Hi Terry,
It is a somewhat blunt instrument for accomplishing this, and no doubt others have found a better way.
Here is what I enter into the CSV box:
username,salutation,first_name,middle_name,last_name,initials,gender,affiliation,email,url,phone,fax,mailing_address,country,interests,"biography locale="en_US"","biography locale="es_ES"",role
smith,Dr., Robert,C.,Smith,RDS,M,University of Nowhere,smith@mailinator.com,,413-443-2136,,"25 Main St. Pittsfield, MA. 01201",USA,health sciences,This is a biographical statement that goes on and on.,This is a spanish biographical statement that goes on and on.,"<role type=""reviewer""/>"
And it results in this:
<users>
<user>
<username>smith</username >
<salutation>Dr.</salutation >
<first_name>Robert</first_name >
<middle_name>C.</middle_name >
<last_name>Smith</last_name >
<initials>RDS</initials >
<gender>M</gender >
<affiliation>University of Nowhere</affiliation >
<email>smith@mailinator.com</email >
<url></url >
<phone>413-443-2136</phone >
<fax></fax >
<mailing_address>25 Main St. Pittsfield, MA. 01201</mailing_address >
<country>USA</country >
<interests>health sciences</interests >
<biography_locale=en_US>This is a biographical statement that goes on and on.</biography_locale=en_US >
<biography_locale=es_ES>This is a spanish biographical statement that goes on and on.</biography_locale=es_ES >
<role><role type="reviewer"/></role >
</user>
</users>
You then need to do a little cleanup in a text editor. For example, do a "Find and Replace" to change these:
<biography_locale=en_US>
</biography_locale=en_US >
<role><role type="reviewer"/></role >
To these:
<biography locale="en_US">
</biography>
<role type="reviewer"/>
That should give you an xml file suitable for importing.
Kevin