You are viewing the PKP Support Forum | PKP Home Wiki

Import XML DTD bug

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
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Import XML DTD bug

Postby ariadatexts » Fri Jun 01, 2007 8:50 am

I've just been trying to use the XML import plugin and I think there may be a bug in the DTD:


It declares the <email> element inside <author> as optional. But when you try to import it into the database, you get an error message saying the field may not be null.

In the documentation it does mention that you should use <![CDATA[ ]]> for empty fields and gives <email> as an example.

Perhaps in the DTD it should be made mandatory? (Or might it be the case that its only mandatory for the primary contact?)
Posts: 4
Joined: Fri Jun 01, 2007 4:02 am
Location: Norwich, UK

Postby asmecher » Fri Jun 01, 2007 1:52 pm

Hi ariadatexts,

Thanks for the heads-up. Yes, the email tag should be mandatory in the DTD; we've discussed removing this restriction, as back-issues imported via XML are often old and author emails aren't available, but we haven't come to a decision yet. In the meantime, use the <![CDATA[ ]]> work-around or supply an editorial email address.

Alec Smecher
Public Knowledge Project Team
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
Posts: 9932
Joined: Wed Aug 10, 2005 12:56 pm

Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 3 guests