Closed LoicE5 closed 3 years ago
Hi @LoicE5 and nice to meet you)
The error from JATS Parser plugins most probably means that it's version isn't compatible with OJS 3.2.1. The way how the plugin works changed considerably in several latest versions. I guess you can try stable 3.2.1 branch: https://github.com/Vitaliy-1/JATSParserPlugin/tree/stable-3_2_1. Let me know if there would be any problems.
In the video create galley
option originates not from the JATS Parser plugin, probably Texture but not sure. JATS Parser plugin works in a different way, new options are available under Publication tab: https://github.com/Vitaliy-1/JATSParserPlugin/blob/main/images/jatsParser_scr_1.png
The aim of the workflow that I’m working on is to convert a docx document into a JATS document, then convert that JATS document into two galleys : HTML & PDF
DOCXConverter plugin is more or less production-ready. JATS Parser has an issue left related to the linking of references, I'm expecting to fix this alongside with OJS 3.4 release. Although I use both plugins in the production in our university journal. One important thing is that JATS Parser Plugin handles JATS XML as a full-text as a property of the publication and displays it on the article landing page. It doesn't save full-text as HTML galley, e.g.: https://e-medjournal.com/index.php/psp/article/view/230. This option is available only for PDF.
Hi Vitaliy,
First, thanks a lot for your quick and complete answer. This is a real pleasure to have a such great support for an open-source application :)
As you mentionned in your message, I downloaded JATSParser from the 3.2.1 branch. Or, should I say, I downloaded 3 zip files :
The branch directly from GitHub, using the button, then Download Zip
.
I then extracted the zip, renamed the folder as "jatsParser", and sent it through FTP to my Ubuntu Server virtual machine. I then moved it to /var/www/html/ojs2/plugins/generic
, and changed the chown to www-data recursively, as well as the chmod to 777 to ensure that no issues comes from there.
The 2.1.0.0, lastest release for this branch, using this button : I first downloaded the .tar.gz file in order to import it directly from my admin panel, but it have been loading forever. So I downloaded and extracted the zip file, and repeated the previous steps.
The 2.0.1.1, directly from GitHub, as ZIP. I then repeated the previous steps to import it to my server.
The 2.1.0.0 release & the direct code download (the two first points above) throws an ERROR 500 on the entire server.
The 2.0.1.1 version did not make my server crash, but no tab appeared under the "production" section, unlike your screenshot.
The issue appears to be the inner JATSParser directory to be empty.
I made a video about the issue. You can find it here → https://drive.google.com/file/d/1ay5qaDohiJTsTpTDU3t-i-9LXDcm10pJ/view?usp=sharing
Thanks a lot for your work and your support, and thanks by advance for your answer :)
Loïc
2.1.0.0 release is compatible only with OJS 3.2.0. Newer versions are labelled as pre-released and they work much different from the 2.1.0.0.
There are 2 ways to install it for OJS 3.2.1.
git clone https://github.com/Vitaliy-1/JATSParserPlugin.git jatsParser
, make sure you are on the right branch: git checkout stable-3_2_1
and after that load JATSParser submodule: git submodule update --init --recursive
. This way is better in terms of applying new code changes but it requires some experience with Git or learning it. .tar.gz
file (not zip), unpack it in the plugins/generic
folder or use OJS plugin upload interface. This version should work for you: https://github.com/Vitaliy-1/JATSParserPlugin/releases/tag/2.1.9.2, first file jatsParser-2.1.9-2.tar.gz
(https://github.com/Vitaliy-1/JATSParserPlugin/releases/download/2.1.9.2/jatsParser-2.1.9-2.tar.gz )JATSParser directory is empty because it's not enough to download the source code. The plugin has a submodule with dependencies, which can be installed via Git and Composer or downloaded with the release package.
Hi Vitalyi,
Thanks a lot for your really healpful answer ! It's working perfect now !
I'm just going to indicate two more steps that might help you improve the plugin or help anyone else installing it :)
It might be necessary to clear the JatsParser entries in the MySQL database prior any new installation. To do so, install phpMyAdmin in the root of the html folder. Then, log in with MySQL credentials, and navigate to the ojs database. Search in all the tables (using the search tool) for "jatsparser". Write down every table that involves a such entry (usually plugin_settings
& versions
). Then, remove the entry. This step will help to prevent the error "Impossible to downgrade".
For the composer install (to enable PDF conversion), in order to fetch JATSParser dependencies, an error occured in my case.
[Composer\Json\JsonValidationException] "./composer.json" does not match the expected JSON schema: -name : Does not match the regex pattern ^[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z0-9](([_.]?|-{0,2})[a-z0-9]+)*$
To fix it, simply go to composer.json
and edit it using sudo nano composer.json
. Then, remove the "name" field (which has the "doc/jatsParser" value).
Hope my experience will help :)
Thanks a lot one more time for your help ! Have a nice day
Hi Vitaliy,
My name is Loïc and I currently work as an intern in Opscidia, with Mr Charles Letaillieur, whom you have met at Barcelona in November of 2019.
I am contacting you today because my work involves the implementation of two of your OJS plugins (docxConverter and JATSParser) on an OJS system.
I am getting a fatal error and, after days of researches on the internet, I did not find any fix.
The aim of the workflow that I’m working on is to convert a docx document into a JATS document, then convert that JATS document into two galleys : HTML & PDF.
I am currently running OJS 3.2.1-4.
Steps to reproduce the error :
Go to Settings > Website > Plugins and make sure that JATSParser, DocxConverter & Texture Editor are enabled, and Lens galley is disabled. Head to Submissions (make one if the queue is empty) Click on « view submission » Error 500
The error log :
Things I’ve done :
I am sending you a video with this issue, of the error that I’m getting ! It shows precisely the error 500 and where it occurs.
Link → https://drive.google.com/file/d/10SPBEX8U_jG_MNma9KIHJT_CbRVMntkZ/view?usp=sharing
Do you have any ideas about this error ?
Any help would be greatly appreciated !
Thanks by advance :)
Loïc