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

delete a HTML and languages support #30

Closed carzamora closed 4 years ago

carzamora commented 4 years ago

Hi, when I try the plugin (prerelease 2.1.9) it works fine, but I found two issues:

(1) with an article written in Spanish, the HTML file was included in both languages, and (2) when I delete the XML file, the HTML was not be deleted

for solve this problem I just disable the plugin, but the plugin is very good and I hope you can improve those things or tell me if you know some solution

Thank you!!

Vitaliy-1 commented 4 years ago

About the first issue. Did you try to convert 1 file for 2 languages? Can you describe it in more detail? I cannot reproduce the problem locally - if choosing for each locale different files, it doesn't cause problems on my OJS instance (3.2.1).

when I delete the XML file, the HTML was not be deleted

Yes, this is done deliberately, deleting XML files doesn't remove HTML. HTML full-text can be removed by choosing the default option (I'd need to rename it to avoid confusion). Probably, it will also require a workaround for dependent files, e.g. images, like saving them into a separate directory.

carzamora commented 4 years ago

Oh, sorry, you are right! I just need one XML in the original language and the other I keep in Default and all is OK now. I don't know what happened before, but with your explanation, I could understand and all is good now!

Thank you!