Vitaliy-1 / JATSParserPlugin

OJS3 Plugin for parsing JATS XML and displaying it on article detail page
GNU General Public License v3.0
27 stars 24 forks source link

Import of JATS XML galleys - console error #70

Closed geniusdesignbrasil closed 2 years ago

geniusdesignbrasil commented 2 years ago

Hi @Vitaliy-1

I tried to use the "Import of JATS XML galleys" option from plugin configurations, but it took a long time to complete, just spinning loading on window. When I checked the browser console, there was a error message: Failed to load resource: the server responded with a status of 500 ().

No error on PHP log.

I have created a new galley from plugin tab in a test article and everything seemed working fine, with topic navigation on sidebar and full text loading on frontend article view. So, after validate this, I tried to generate all galleys using import options from plugin config.

Error log has just printed some warnings:

[23-Feb-2022 02:25:23 America/Los_Angeles] PHP Warning:  DOMDocument::load(): Opening and ending tag mismatch: article-meta line 16 and article-categories in ./ojs-files/journals/1/articles/1809/submission/proof/1809-1-12825-2-10-20210902.xml, line: 21 in ./plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Document.php on line 29
[23-Feb-2022 02:25:23 America/Los_Angeles] PHP Warning:  DOMDocument::load(): Opening and ending tag mismatch: article-meta line 5 and front in ./ojs-files/journals/1/articles/1809/submission/proof/1809-1-12832-2-10-20210902.xml, line: 82 in ./plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Document.php on line 29
[23-Feb-2022 02:25:23 America/Los_Angeles] PHP Warning:  DOMDocument::load(): Opening and ending tag mismatch: front line 4 and article in ./ojs-files/journals/1/articles/1809/submission/proof/1809-1-12832-2-10-20210902.xml, line: 506 in ./plugins/generic/jatsParser/JATSParser/src/JATSParser/Body/Document.php on line 29

So, I do not know if importing process was incompletely done or if nothing happened. As general, I realized that every article view load jats navigation with abstract and references on sidebar.

JATSParserPlugin: 2.1.9.3 OJS: 3.3.0.8

geniusdesignbrasil commented 2 years ago

UPDATING:

I repeated the importing process and seems that the plugin keeps working, importing he full text to the articles that wasn't imported yet.

I just can not know the status of how many articles have the full text importend. Maybe it could be a interesting improvement, checking/showing how many articles hasn't the full texto imported yet.

Vitaliy-1 commented 2 years ago

Yes, in OJS 3.4 it will be possible to add this to queued tasks and track the progress.