Import of XML articles and HTML galleys

Hello,
I am importing articles in OJS 3.2.1-4 and it works quite well. I am following this XML sample ojs/export-issues.xml at main · pkp/ojs · GitHub

My question is how to import also HTLM galleys, that’s possible looking at the documentation here https://docs.pkp.sfu.ca/importing-exporting/en/ but is missing in the file sample that I am checking (or it seems missing, to me).

Do you have any suggestion?

Thanks
Adrea

Hi @marchitelli,

If you have a self-contained HTML file, you should just be able to do this in a similar manner you would to the PDF, as noted here: https://docs.pkp.sfu.ca/importing-exporting/en/#creating-the-xml-import-file

You’d just be swapping out the PDF galley information for the HTML. Are you using local files or linking to a web location when importing?

-Roger
PKP Team

Hi @rcgillis
I tried following these instruction before asking but I got an error.

I punt like that in the file

            <article_galley xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" locale="en_US" approved="false" xsi:schemaLocation="http://pkp.sfu.ca native.xsd">
                <id type="internal" advice="ignore">1</id>
                <name locale="it_IT">test galley 1</name>
                <seq>0</seq>
                <submission_file_ref id="10" />
                        <file>
                            <href src="https://www.aib.it/struttura/sezioni/toscana/bibelot/bibelot-34-2013/2014/41065-biblioteca-domus-galilaena/" mime_type="text/html"/>
                        </file>
              </article_galley>

Hi @marchitelli,

Hmm… I think a possible issue here is that the link your using is not a direct link to an HTML page, but rather a dynamically generated page on the site, so it wouldn’t be able to take it through the import process. The file that you link to would have to end in .html You might need to separate your files into standalone .html files.
What did the error message that you received say?

-Roger