Greetings to the community.
I have finished developing a plugin for displaying article in JATS XML format just under article abstract. Link to the project: https://github.com/Vitaliy-1/JATSParserPlugin
PHP7+. Could be easily adapted to use for older versions but I don’t see sense for this.
Modified default Manuscript theme (originally made by @NateWr): https://github.com/Vitaliy-1/defaultManuscript
you can make own theme with Bootstrap and JQuery. We add it to our theme plugin. It is fairly simple. Download bootstrap from the official site somewhere in the web root and put a link to it. For example in my case it is in
plugin/themes/child-theme/styles/bootstap. Example of adding bootstrap from DefaultChildThemePlugin.inc,php:
more info about theming: https://github.com/NateWr/default-child
That’s all. Don’t forget to rename
manuscript-jats after download. Link to how your article detail page will look like: https://e-medjournal.com/index.php/psp/article/view/26
What plugin does:
- Parses data from JATS XML.
- Records data into POPO
- Displays them on article detail page through Smarty templates
- Actually it does the same as Lens Viewer, but the way like we want.
What is supported:
Sections up to 3 levels deep (easily can be added more).
Tables, Figures, Video.
Ordered and unordered lists. They are called and displayed recursively, so nested lists are fully supported up to infinite depth level. But not tested yet.
References. Can be added any reference style. For now it uses Vancouver, which is coded here: https://github.com/Vitaliy-1/JATSParserPlugin/tree/master/templates/vancouver. Adding the style is a matter of creating a directory, copy vacouver folder there, modify these templates and adding a variable to the plugin settings menu, that will represent the bibliography style. For example here is where reference for journal articles are added: https://github.com/Vitaliy-1/JATSParserPlugin/blob/master/templates/articleMainText.tpl#L66. vancouver folder can be changed to the variable, that will represent a folder, which will be included in the template.
Bold and italic text, intext references to figures and tables.
Example of supported JATS XML (look from body tag): https://github.com/Vitaliy-1/JATS2LaTeX/blob/jats2latex-0.5/example/article_english.xml or https://github.com/Vitaliy-1/JATS2LaTeX/blob/jats2latex-0.5/example/article_tables.xml
Artworks in png and jpg format, downloaded as attachments to XML
Distributed under the GNU GPL v3.
Don’t forget that plugin should be used with modified default manuscript theme or you can modify article_detail.tpl, header.tpl and article.tpl in your theme accordingly.
Thanks to @varshilmehta for testing.