Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Footnotes not working #9

Open
gabeLon opened this issue Nov 7, 2019 · 5 comments
Open

Footnotes not working #9

gabeLon opened this issue Nov 7, 2019 · 5 comments

Comments

@gabeLon
Copy link

gabeLon commented Nov 7, 2019

Hello @Vitaliy-1 as you suggested this is more a JATSParser than an OldGregg issue I am posting here.
We are having difficulties showing JATS generated footnotes. I am attaching one XML sample article.
4213-Texto del artículo-1643-3-10-20190829 (1).xml.zip
which renders this way on our site http://www.evidencia.org.ar/index.php/Evidencia/article/view/4213#f-a1b17f14073b
Do you think it is possible to add or fix this functionality?
Best regards

@Vitaliy-1
Copy link
Owner

Hi @gabeLon,

Yes, I'm planning to add the support for footnotes. Most likely they will be implemented next week. The problem is that fn element according to the JATS specifications can be included in a number of elements. Probably I'll end up with the support of footnotes' markers inside paragraphs and their description in the back of the article.

According to the NISO JATS standard description, the right way to do it is to mark the reference to footnotes with xref element with value fn for the attribute xref-type: https://jats.nlm.nih.gov/publishing/tag-library/1.1d1/n-zhb0.html

Actual footnotes (fn) should appear at the back of the article embraced with fn-group tag (just like in your example).

@josekarvalho
Copy link

Is there any plans to support footnotes on JATS Parser Plugin?

Best Regards!

@Vitaliy-1
Copy link
Owner

Hi @josekarvalho,

Yes, I plan to add support for them.

@ErwanBo
Copy link

ErwanBo commented Jun 29, 2023

Hi @Vitaliy-1, we were considering with our team to fork this plugin to implement footnote support, we wanted at least that it could retrieve these footnotes in the case of our JATS structure. But we could offer our help to implement this more cleanly if you see the need for it.

@Vitaliy-1
Copy link
Owner

Hi @ErwanBo, this sounds great and I'd appreciate PR!
Footnotes can be implemented in the same way as references. Although in very simplified way as their content is unstructured.
For in-text link to footnotes, look at: https://github.com/Vitaliy-1/JATSParser/blob/main/src/JATSParser/HTML/Text.php#L45C14-L45C14

Let me know if you need help, I'll upgrade the plugin soon to support OJS 3.4 and can take a look at this feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants