Hi @farth,
Do you mean page numbers? It’s the <pages>
element. it’s a sub-element of the <article>
element.
If you’re getting an error message, please include it and I can take a look.
Regards,
Alec Smecher
Public Knowledge Project Team
Hi @farth,
Do you mean page numbers? It’s the <pages>
element. it’s a sub-element of the <article>
element.
If you’re getting an error message, please include it and I can take a look.
Regards,
Alec Smecher
Public Knowledge Project Team
Hi @asmecher,
yes the pages numbers. Here’s the error message fort the import native tools :
Element ‘{http://pkp.sfu.ca}pages’: This element is not expected. Expected is one of ( {http://pkp.sfu.ca}title, {http://pkp.sfu.ca}prefix, {http://pkp.sfu.ca}subtitle, {http://pkp.sfu.ca}abstract, {http://pkp.sfu.ca}coverage, {http://pkp.sfu.ca}type, {http://pkp.sfu.ca}source, {http://pkp.sfu.ca}rights, {http://pkp.sfu.ca}keywords, {http://pkp.sfu.ca}agencies ).
And this is an entry that I use :
2 Précarité résidentielle et consommation de psychotropes. 13-19 Mercier C Alarie S.
Thx in advance
Please see here for an Issue Sample (xml)
Hi @euser,
It looks like the elements are out of order – the <pages>
element should appear at the end, off the top of my head. Try validating the XML against the XSD using a tool like xmllint
(most XML editors will have a validation tool too).
Regards,
Alec Smecher
Public Knowledge Project Team
This was what I used for exporting my former journal issues (full issue)
It worked like this.
For an individual article the should be the last element, you are right.
This was what I used for exporting my former journal issues (full issue)It worked like this.For an individual article the </pages>
should be the last element, you are right.
Ok, I was expecting something like that but I’ve not had many time to test further this afternoon so thanks everyone for this. There was a last error in my import (missing role for author but this was trivial for correcting).
Thankss again.
I am novice in using OJS3. I installed it, and tried to import some back issues by Native XML Plugin. After hours and hours bad attempts finally I decided to put one test issue, export it as xml, and try to import new issue in same tipe. Removing error by error finally I’ve got
“Validation errors:
Extra content at the end of the document
The document has no document element.”
so I don’t know what to do next. In attachment is example.
Please, give me advice how to import old issues in OJS.
`<?xml version="1.0" encoding="UTF-8"?>
<issue_identification>
53
121
2016
Fusce ac molestie tellus. - Yr. 53 (2016), No 3 (121)
Morbi interdum pretium sem - Yr. 53 (2016), No 3 (121)
</issue_identification>
<date_published>2016-09-12</date_published>
1
ART
Articles
<issue_galleys xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=“http://pkp.sfu.ca native.xsd” />
Are you trying to export from OJS2 and import those XML files to OJS3? The scheme has changed so they are not compatible. This is a sample of the new XML: https://github.com/pkp/ojs/blob/master/plugins/importexport/native/sample.xml
No, I export and import in same version
Thank you for advice, I export and import in same version. I can try new sample, but it is just for one artical not for issue. Open Journal Systems 3.0.2.0
It looks like you are closing those two tags with />
<?xml version="1.0"?>
<issues xmlns="http://pkp.sfu.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pkp.sfu.ca native.xsd">
<issue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" published="1" current="0" access_status="1">
Without that I have more errors:
Opening and ending tag mismatch: issue line 3 and articles
Opening and ending tag mismatch: issues line 2 and issue
Extra content at the end of the document
The document has no document element.
<articles xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pkp.sfu.ca native.xsd" />
You are also closing the first articles tag there. I suggest that you do a basic validation first with for example http://www.xmlvalidation.com
Thank you a lot. I always tried to validate against native.xsd so validators ask too much additional, now I tried some simple and find possible error
… but even export of test issue give me remote tag for pdf link,
now I receive error
Element ‘{http://pkp.sfu.ca}file’: This element is not expected. Expected is one of ( {http://pkp.sfu.ca}name, {http://pkp.sfu.ca}seq ).
Have you some suggestion, how to declare pdf file for old articles in OJS 3?
I think the last error you have there is with the galley. You should have seq there and no mime_type inside the remote tag.
<article_galley>
<name>PDF</name>
<seq>0</seq>
<remote src="http://www.pravst.hr/dokumenti/zbornik/2016121/zb201603_683.pdf" />
</article_galley>
After 7 days of my attempts, I think you deserve very very big thanks and very very big coffeee
We made it.
I had way too many cups today already
Ajnyga,
can you help me with additional information if you know.
I can’t find where to put ruth to pdf of issue_galley as tag?