Hi Mar,
if you import XML data of older articles and don't have e-mail addresses of the authors, the easiest trick is to add dummy email-addresses. I usually go with
- Code: Select all
<email> </email>
(i.e. using a space character as a replacement for the missing email address)
This way you don't have to modify OJS code but get your article data submitted nevertheless. (I don't know if this trick works on quick submit forms, too. Probably it isn't working, because the form validator might require an email address to have at least an "@"-sign.)
How are you generating your XML input files that you are uploading? If you are using XSLT somewhere in the process, you could add a processing rule like this:
- Code: Select all
<email>
<xsl:choose>
<xsl:when test="not({CHECK_FOR_EMAIL_ADDRESS_IN_SOURCE_DATA})"><xsl:text> </xsl:text></xsl:when>
<xsl:otherwise><xsl:value-of select="{SELECT_EMAIL_ADDRESS_FROM_SOURCE_DATA}"/></xsl:otherwise>
</xsl:choose>
</email>
Best regards,
Kai Weber