kaschioudi / ojs3-markup

markup plugin for OJS3
8 stars 15 forks source link

Always populate "Layout version" with XML when returning galleys from OTS #26

Closed axfelix closed 6 years ago

axfelix commented 7 years ago

It'd be great if we could use this plugin as a means of re-adding an OAI endpoint to OJS3 -- it can serve our XML directly. To do this, we need the plugin to always return XML to one predictable place, only it can't be galleys, because galleys are always published, and some journals might not want to publish XML (which is why we have the toggle in plugin settings) yet still enable the OAI endpoint.

axfelix commented 7 years ago

I can take a crack at this one first.

axfelix commented 7 years ago

Should go in https://github.com/kaschioudi/ojs3-markup/blob/master/MarkupGatewayPlugin.inc.php#L375, I assume...

axfelix commented 7 years ago

Note, this is called "production ready files" rather than "layout version" in OJS 3 (still had the 2.x name in my head) -- not sure what the best way to manipulate documents in this stage is though.

asmecher commented 7 years ago

@kaschioudi, let me know when you've got something I can test with -- I'll be writing the code to pick up from here and present the XML content via OAI.

kaschioudi commented 7 years ago

@asmecher

I just created a PR for #25, #26 and #27.

cf: https://github.com/kaschioudi/ojs3-markup/pull/36

In case you would like to cherry pick, here's the commit for this issue: https://github.com/kaschioudi/ojs3-markup/commit/5e3935f6befb48ac1dab58130becfa0be290b716