Just released JATS Parser Plugin v2.0, the new version of a plugin for displaying JATS XML article in HTML and PDF. What’s new in this release:
A JATS XML to PDF conversion feature. Is based on TCPDF library ((c)Nicola Asuni, under GNU Lesser General Public License).
Improved JATS XML to HTML parsing. Is based on rewritten JATS Parser library. Now supports complex cases of formatted text, for example: <italic>italic<bold>italic and bold</bold></italic>, complex tables and nested lists.
An option in Plugin Settings to use OJS parsed references (rather than from JATS XML).
Better styling and functionality for article’s HTML page.
Displays article on the XML galley page.
Retrieves article metadata from OJS (not from JATS)
Works with OJS themes that use Bootstrap 4, such as Classic, Health Sciences, etc.
As usual, speechless! Awesome work. I activated and it works great. I am planning to show this as HTML directly, since few side stuff like how to cite does not work in XML.
Somehow, the abstract page doesnt have the references clickable (like when you click on reference [13] or [14] and it takes you to the reference) in OldgregG after installing this.
Edit:
It started working once I removed this plugin
I am planning to update Old Gregg theme so it stay inline with update JATSParser library in September-October. It should move away from using Smarty templates as injecting full article’s HTML is much more easier approach.
Hi Vitaliy, great work! It would be great to get a step by step example.
how to install the jats xml to html / pdf plug in.
how to modify the theme to get the display in a page with left / right columns
a word 2016 document that is based on a typical template that journals would use to get authors to submit their work.
the word 2016 document converted to jats xml
the displayed html page
the displayed pdf page
For those of us that are working through this step by step it would be very useful to get more examples to see if our existing journal word 2016 templates will work before we spend time to set this up.
And what are you trying to accomplish? On the first glance, it looks like a work for a developer. The plugin displays JATS XML almost the same way as all other pages are displayed in OJS. So, customizing shouldn’t be harder than other parts of the system (and should be easier compared to Lens Viewer).
It depends on how you perform the transformation process. And it can be done not only from DOCX format.
The plugin hasn’t such aim as DOCX to JATS XML transformation. The possible options are presented in this post: Who is who in JATS? (2018)
The plugin transforms JATS into HTML and PDF automatically. HTML and PDF are immediately injected into the page, there are no intermediates in this process. You can always ask additional question here or on the plugin’s Github page if you’d stuck on something specific.
Q3 is a key issue. Can you please provide a link to the word document that you used in the examples Q5 and Q6?
I would be greatful (and happy to pay or donate) if I could email a word document that is typical of what our journal uses and for this document to be converted to JATS XML and displayed as html and PDF. What I’m trying to do is to work out if this will work for us before I get custom pages made to have the html and PDF in the pages (with the normal OJS columns included)
Hi @rmosavi
The default behavior is to retrieve References from JATS XML and if there aren’t any, retrieve them from OJS (that was added as article meta and parsed by OJS). In the settings you can force to use reference list from JATS XML or OJS. The latter is good for those, who don’t want to spend time and and form JATS XML with references or who tend to use other the AMA citation style.
What else do I need to have this JATSParser V2 works. I have got the JATSparser install and enabled. In order to use it do I have to have another plugin installed? How can I get that nice full-text /HTML/XMLin the article landing page.
Plugin renders XML and outputs the result on the XML galley page. You need to upload XML to the production stage and, after publishing go that XML galley page.
The plugin doesn’t provide any additional checks for the XML. As long as it has /article/body and all standard elements inside all should be fine. But doesn’t support all JATS standard tags and their combinations.
Keep in mind that metadata is displayed actually from OJS, not JATS XML, so, basically, are not required. References can also come from OJS, but by the default - from JATS XML.
I try to install this plugin and I haven’t succeeded yet. I noticed some differences. JATS Parser v2.0 looks like a theme not a plugin. Because as shown in the example link this doesn’t look like oldGregg theme and in the link after index.php jatsparser comes. “index.php/jatsparser”
I want to ask this. Also I use the oldGregg theme right now. After install this plugin is there an adjustment problem?