ualbertalib / ojsxml

converts a csv file to ojs native import xml
9 stars 10 forks source link

firstname/lastname changed to givenname/familyname #3

Closed galexioza closed 11 months ago

galexioza commented 4 years ago

Importing an XML generated by ojsxml results in the following errors:

Element '{http://pkp.sfu.ca}firstname': This element is not expected. Expected is '{http://pkp.sfu.ca}givenname'.
Element '{http://pkp.sfu.ca}lastname': This element is not expected. Expected is one of ( {http://pkp.sfu.ca}givenname, {http://pkp.sfu.ca}familyname, {http://pkp.sfu.ca}affiliation, {http://pkp.sfu.ca}country, {http://pkp.sfu.ca}email ).

This is the result of a change in a recent version of OJS. The XML files can easily be updated using a find/replace, but the ojsxml code could be updated with the correct element names.

galexioza commented 4 years ago

This may have been resolved in OJS 3.2.0 as the error no longer appears after upgrading. However, a new list of validation errors occur as mentioned in issue #4.