OJS3: import from different version

Hello,
I have to import a journal.

The journal has beel exported from OJC : 3.1.2.4

My OJS is ojs-3.1.1-4

I get this validation error:
n\t

\n\t\t\t\t\t* Element ‘{http://pkp.sfu.ca}givenname’: This element is not expected. Expected is ( {http://pkp.sfu.ca}firstname ).\n
\n\t\t\t\t\t* Element ‘{http://pkp.sfu.ca}givenname’: This element is not expected. Expected is ( {http://pkp.sfu.ca}firstname ).\n
\n\t\t\t\t\t* Element ‘{http://pkp.sfu.ca}givenname’: This element is not expected. Expected is ( {http://pkp.sfu.ca}firstname ).\n
\n\t\t\t\t\t* Element ‘{http://pkp.sfu.ca}givenname’: This element is not expected. Expected is ( {http://pkp.sfu.ca}firstname ).\n
\n\t\t\t\t\t* Element ‘{http://pkp.sfu.ca}givenname’: This element is not expected. Expected is ( {http://pkp.sfu.ca}firstname ).\n
\n\t\t\t\t\t* Element ‘{http://pkp.sfu.ca}givenname’: This element is not expected. Expected is ( {http://pkp.sfu.ca}firstname ).\n
\n\t\t\t

\n"

How to solve it?

Regards
Alfredo

Hi @Alfredo_Cosco,

Can you post a bit of your XML export file? Maybe just one entry for an article. From what I can tell it looks like it is not validating because it is not including the <firstname/> element - but it’s hard to say without looking at it.

-Roger
PKP Team

hello @rcgillis ,
here is the sample, as you can see the export contains givenname but not firstname:
ksnip_20210301-134426

The error is clear, why the export cointains givenname and the import expects firstname is less clear.

Thanks,
Alfredo

Anyway, I changed: givenname with firstname and familyname with lastname, the import now gives to me this error:
"\n\t

Errors occured:

\n\t\t\t\t\t\t\t\t

  1. Submission

\n\t\t\t

\n\t\t\t\t\t\t\t\t\t* Unknown section NOTE
\n\t\t\t\t\t\t\t\t\t* Unknown section NOTE
\n\t\t\t\t\t\t\t

\n\t\t\t"

Hi @Alfredo_Cosco,

In the sample.xml for that verson of the XML import/export: ojs/sample.xml at ojs-3_1_1-4 · pkp/ojs · GitHub - it gives a different way of structuring author metadata:

<authors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		xsi:schemaLocation="http://pkp.sfu.ca native.xsd">
		<author primary_contact="true" user_group_ref="Journal manager">
			<firstname>John</firstname>
			<lastname>Smith</lastname>
			<email>john.smith@your-domain.com</email>
		</author>
	</authors>

It would appear that <givenname> and <familyname> are not even valid tags according to the schema: ojs/native.xsd at ojs-3_1_1-4 · pkp/ojs · GitHub

-Roger
PKP team