OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Importing users: a few questions [RESOLVED]

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

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.

Importing users: a few questions

Postby Owen » Tue Feb 26, 2008 4:50 pm

I tried this in 2.1 with limited success, so I thought I'd try it in 2.2, with the interests field enabled.

The obvious way to check on what was needed to import was to export some records, but it barfed (the error messages started with "Notice: Undefined variable: interestsNode in C:\xampp\htdocs\ojs\plugins\importexport\users\UserExportDom.inc.php on line 52")

Then I looked at sample.xml and had a few queries:
1. If a user has several interests, do they each require a separate <interests> tag? Is the locale required?
2. What about line returns in mailing_address? Shall I just replace them with commas?
3. Can passwords be added "in the clear"?
4. The import dialog seems to be specific to the journal: what happens if you want a user to be on more than one journal?
Owen
 
Posts: 44
Joined: Mon Nov 05, 2007 8:07 pm

Re: Importing users: a few questions

Postby jmacgreg » Thu Feb 28, 2008 12:06 pm

Hi Owen,

Firstly, there's a patch for the user import/export plugin that should solve some problems:

http://pkp.sfu.ca/cvs/cvsweb.cgi/ojs2/p ... 14;r2=1.15

1. If a user has several interests, do they each require a separate <interests> tag? Is the locale required?


Currently, you can specify one <interests> tag for each locale you want to enter information in.

2. What about line returns in mailing_address? Shall I just replace them with commas?


Line returns are fine as it's a multi-line field.

3. Can passwords be added "in the clear"?


If passwords are entered with the attribute encrypted="plaintext", they'll be encrypted by the system when they're imported. Otherwise, specify encrypted="md5" or encrypted="sha1", depending on whatever is currently used in your config.inc.php, and the hash will be entered directly. It's not possible to extract passwords in plaintext, as they are stored hashed for security.

4. The import dialog seems to be specific to the journal: what happens if you want a user to be on more than one journal?


You'll have to use the Sync Enrollment feature from the other journal's interface.

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

Re: Importing users: a few questions

Postby Owen » Sat Mar 01, 2008 12:11 am

Many thanks: all is happiness! FYI: The patch file came up with an error in Windows: it needs another return at the end to complete it.
Owen
 
Posts: 44
Joined: Mon Nov 05, 2007 8:07 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest