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

References link not work #84

Open nicola-posa opened 1 year ago

nicola-posa commented 1 year ago

Hi Vitaliy,

I noticed that in the HTML (https://e-medjournal.com/index.php/psp/article/view/213) file all the links with their bibliographies don’t redirect you to the bibliography at the end of the page. I tried your fantastic plug-in on my OJS with your XML file but even in this case it doesn’t work. It seems like on the list of the references at the end of the page there isn’t any ID that associates the bibliography number to its reference in the text. Should anything else be done to make sure it works?

Vitaliy-1 commented 1 year ago

Hi @nicola-posa,

Yes, this is a known issue. As far as I remember that was related to how citations were handled in OJS 3.3. Nevertheless, it's be possible to fix it for the next OJS release

ranaasif commented 1 year ago

Hello @Vitaliy-1 I can see abstract and references in your example https://e-medjournal.com/index.php/psp/article/view/213 but I have used different jats xml only < body > section from xml shows on the article page, < front > and < back > sections are always not parsed, Please help me I struggling with this last couple of days

Vitaliy-1 commented 1 year ago

Hi @ranaasif,

Metadata, like abstract, authors, DOI, etc., comes from OJS. References are parsed separately from the body, in the Publication -> references References

Also check the plugin settings to set the citation style

ranaasif commented 1 year ago

@Vitaliy-1 Thank you for your answer. Now I have one another issue hopefully there will be some configuration in ojs to fix this. When references in my XML contains non-ascii characters for example

České Budějovice : Biometris, 499 p. 2002.

then

Retrieve references from JATS XML

Not works and gives this error in console

Slim Application Error A website error has occurred. Sorry for the temporary inconvenience.

It seems to me it not able to save non-asci chracters in DB. Can this be fixed in any way please?

felixhelix commented 11 months ago

Hi @Vitaliy-1 , thanks for this great plugin: I want to use it for OPS, and already with some minor changes made it produce the fulltext HTML on the preprint page :) However, some things do not quite work, even not in OJS 3.3.0.15 (the LTS Version):

Can you help with that?

I'm using OJS 3.3.0.15 with JatsParser 2.1.9.4

Yours

Felix

Vitaliy-1 commented 11 months ago

Hi @felixhelix,

there are no references included, and no way to select the source of references (neither is there a choice on the plugins settings page, nor on the article page before publishing

After the text is parsed, in the publication menu under references, should appear the option to parse also references from JATS. jats Ahh, I see I've already included example in this thread. Do you see that option after JATS is parsed?

how does one include images? In the example file mentioned (https://github.com/Vitaliy-1/JATSParser/blob/main/examples/example.xml) there are two images, but how would I include them?

You'll need to attach the image and give it the same name in OJS as in the reference to it in the JATS file.

felixhelix commented 11 months ago

Thanks @Vitaliy-1 for the quick reply! For the references to work I had to check "Enable references metadata" in the workflow metadata settings. Now they are on the articles main page :) But one has to be careful, because if one first creates the galley before the references are created the pdf does not contain them. Also the figures work now: I overlooked the option to load dependent files. The figures do not work with OPS, however. But I guess that is maybe just an issue with path names. I will figure that out :)

Yours, Felix

juanCure commented 6 months ago

Hi @nicola-posa,

Yes, this is a known issue. As far as I remember that was related to how citations were handled in OJS 3.3. Nevertheless, it's be possible to fix it for the next OJS release

Hi @Vitaliy-1 Is it possible to manage this as a patch for OJS 3.3? I would like to help with that, but I don't know where to start, could you give me some idea how to add this functionality. Thanks.