OJS3 issue import sample xml file needed

It should be inside issue before articles.

<issue_galleys xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pkp.sfu.ca native.xsd">
    <issue_galley>
      <label></label>
      <issue_file></issue_file>
    </issue_galley>
  </issue_galleys>

Thank you so much, I tried to put href to link file on internet, like

<issue_galley> <label>PDF</label> <issue_file> <href mime_type="application/pdf" src="http://www.pravst.hr/dokumenti/zbornik/200785/zb200702.pdf" /> </issue_file> </issue_galley>

but have error
“Element ‘{http://pkp.sfu.ca}href’: This element is not expected. Expected is ( {http://pkp.sfu.ca}file_name ).”

even found in wiki that I could
<galley> <label>PDF</label> <file> <href src="http://www.example.com/import_files/my_file.pdf" mime_type="application/pdf"/> </file> </galley>

Do you have some idea?

<issue_galleys xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pkp.sfu.ca native.xsd">
    <issue_galley locale="en_US">
      <label>Full issue</label>
      <issue_file>
        <file_name>1-1-PB.pdf</file_name>
        <file_type>application/pdf</file_type>
        <file_size>235957</file_size>
        <content_type>1</content_type>
        <original_file_name>original.pdf</original_file_name>
        <date_uploaded>2017-03-31</date_uploaded>
        <date_modified>2017-03-31</date_modified>
        <embed encoding="base64">JVBERi0xLjUNCiW1tbW1D...</embed>
      </issue_file>
    </issue_galley>
</issue_galleys>

That is what a issue galley export looks like, but note that this is an embedded file. I actually do not know if issue galleys support remote option? @bozana?

Hi all,

Ah, I’ve just seen, that I missed one item from this issue list: https://github.com/pkp/pkp-lib/issues/1709 – the item h) – the support of the href element… :-\ I opened a new issue for that: consider file import using href element · Issue #2405 · pkp/pkp-lib · GitHub. Thus, at the moment only embed will work…

Thanks!
Bozana

1 Like

Dear Bozana,
thanks to participating in this discussion. I start to import old issues in OJS, but stopped when realize that I can’t import href of issue_file, even not to edit old issues with href later. Do you think that it will be possible to get them inside later?

Hi @zeljkoerceg

Yes, I will implement it as soon as possible – probably next week or so…

Best,
Bozana