Here is beginning of my import XML file.
- Code: Select all
<archive>
<issue>
<issue_description> ... deleted ... </issue_description>
<section>
<section_name>articles</section_name>
<section_order>1</section_order>
</section>
<section>
<section_name>reviews</section_name>
<section_order>2</section_order>
</section>
<article>...
If I use xmlimport.php, I get folowing results:
Sections
• 1. articles
• 12. articlesreviews
Section name and section order for 'reviews' are joined together!
It should be:
Sections
• 1. articles
• 2. reviews
Is my import XML file broken? Or is it a bug in OJS?
I changed one line in xmlimport.php:
In function characterData, I changed line
- Code: Select all
$_XML_DATA['section_data'][strtolower($matches[1])] .= $data;
to
- Code: Select all
$_XML_DATA['section_data'][strtolower($matches[1])] = $data;
-> change ",= append" to "= set"
Now it display section names correctly. But it is maybe only stupid change which only hides problem
Arnost
