importing users with multiple interests and roles

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
jlaherty
Posts: 42
Joined: Mon Feb 16, 2009 1:15 pm

importing users with multiple interests and roles

Postby jlaherty » Mon Jun 29, 2009 1:27 pm

Hi,
If you want to import a user who indicates multiple interests, how is this accomplished? I've tried putting the multiple interests in one XML element, as in

<interests>health sciences, epidemiology, public health</interests> (with spaces between interests separated by commas).

I've also tried putting in one <interests> element per interest, as in
<interests>health sciences</interests>
<interests>epidemiology</interests>

But in both cases, the only interest that gets imported is the first one. Any idea of what I'm doing incorrectly?

Same problem with importing users designated with multiple roles -- how is that accomplished?

Thank you!
Jennifer

jmacgreg
Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am
Contact:

Re: importing users with multiple interests and roles

Postby jmacgreg » Thu Jul 02, 2009 10:21 am

Hi Jennifer,

You can specify roles by entering new elements per role, ie. to add a user as an Author and a Copyeditor, you would add the following:

Code: Select all

<role type="author"/>
<role type="copyeditor"/>


However, for reviewing interests you add them all to one element, ie.:

Code: Select all

<interests>interest one; interest two; etc.</interest>


It shouldn't matter whether you are using semi-colons or commas to distinguish between interests; but if you are still finding that they are getting truncated, just let us know.

Cheers,
James

jlaherty
Posts: 42
Joined: Mon Feb 16, 2009 1:15 pm

Re: importing users with multiple interests and roles

Postby jlaherty » Wed Jun 16, 2010 7:54 am

Hi again,
I'm back at this a long year later and seem to be having one last problem getting the XML correct for the role=reader. Here's what I'm generating from Excel:

<user>
<first_name>Sofry Liliana </first_name>
<last_name>Agape</last_name>
<username>liliana.agape</username>
<locales>Español</locales>
<password>reid_journal</password>
<affiliation>Universidad Libre De Colombia</affiliation>
<biography>Estudiante Universitario</biography>
<country>CO</country>
<interests>Investigación sociojurídica</interests>
<email>liliana.agape@gmail.com</email>
<phone>3107860324</phone>
<type>reader</type>
</user>

It seems to me I don't have the right syntax for 'reader'. Can you please help? I'm actually not sure I have the right syntax for Working Language (locales) either.

Many thanks,
Jennifer

jmacgreg
Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am
Contact:

Re: importing users with multiple interests and roles

Postby jmacgreg » Thu Jun 17, 2010 12:59 pm

Hi Jennifer,

For including roles, you want the following syntax:

Code: Select all

<role type="reader"/>


For locales, the following would be correct:

Code: Select all

<locales>es_ES:en_US</locales>


... so you have to include the locale as the appropriate country/language code, rather than as the full locale name. You can separate locales with a colon.

Cheers,
James


Return to “OJS Editorial Support and Discussion”

Who is online

Users browsing this forum: Google [Bot] and 1 guest