Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

[WIP]: Adding initial code for generating JATS output#45

Open
arfon wants to merge 1 commit into
masterfrom
jats-xml
Open

[WIP]: Adding initial code for generating JATS output#45
arfon wants to merge 1 commit into
masterfrom
jats-xml

Conversation

@arfon

@arfon arfon commented Feb 10, 2019

Copy link
Copy Markdown
Member

This is a work in progress. A few known issues/things to do:

  • The Markdown figure conversion seems to produce invalid XML: JATS writer should include <p> or <title> tag in image caption jgm/pandoc#5290
  • Not sure whether we need to pass the csl file here as an option
  • We might need to figure out what to do with images here too, i.e. how do we bundle these with the JATS?
  • It's going to be a not insignificant amount of work to generate the JATS XML for the past ~500 submissions...

/ cc openjournals/joss#495

Comment thread lib/whedon/processor.rb Outdated
-V citation_author="#{paper.citation_author}" \
-V paper_title='#{paper.title}' \
-V footnote_paper_title='#{plain_title}' \
-t jats \

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to pass --csl=#{csl_file} too.

@arfon

arfon commented Feb 11, 2019

Copy link
Copy Markdown
Member Author

Fixes #36

Adding paper metadata to deposit payload
@arfon arfon mentioned this pull request Oct 6, 2019
@jcolomb

jcolomb commented Jan 29, 2020

Copy link
Copy Markdown

Hey, not sure that this is the place for it, but we got some discussion around producing jats from markdown in different applications (and about including more information about authors in the yaml). I think we the discussion goes toward extending pandoc, it started with a discussion you were involved in @arfon ...

see manubot/manubot#187
What would you think is could be the best course of action?

@arfon

arfon commented Jan 29, 2020

Copy link
Copy Markdown
Member Author

Ultimately I'd like to complete this work 🔜, I'm in discussions with @tarleb to see how he might be able to assist us get this across the line.

@tarleb

tarleb commented Jan 29, 2020

Copy link
Copy Markdown
Contributor

I'm working to get jgm/pandoc#6067 into the next pandoc release. That should get us half-way. I guess the next step after that is could be to try and see if the output is sufficient for what's required. I found pandoc's current handling of citations in JATS a bit lacking, but wrote a partial work-around in pandoc-scholar. The combination might already be enough – otherwise we might have to do some larger changes in pandoc-citeproc.

@rgieseke

Copy link
Copy Markdown
Contributor

FWIW, https://github.com/stencila/encoda supports pandoc-jats and a custom jats encoder/decoder and can also read Markdown and various other formats. I have been adding support for a few missing pieces in the JATS decoder recently.
Using Pandoc JATS directly is of course also a great and fast option.

(Just saw https://twitter.com/arfon/status/1415723609671311365 and was curious how this was going.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants