-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Add author roles to JATS #10153
base: main
Are you sure you want to change the base?
Add author roles to JATS #10153
Conversation
You should add a "command test" to test the proposed feature, and to illustrate how it works. See |
Hi @jgm , I think I figured out making a test file. I have a few questions I bet you could answer very quickly but would take me a long time to figure out:
|
Usually we try to name them after the associated issue. So, if there's an open issue that this fixes you could use that number; otherwise you could use the PR's number, 10153.md. That makes it easy to figure out later why the test was added.
Instead of creating a separate module, I'd prefer if you just included this map in the JATS writer module itself. |
@jgm thanks for that feedback, I addressed both of your points. Now, the only thing left is how to make this dictionary (renamed to My first try was |
what happens when you try that? By the way, our usual convention for variable names would favor |
It seems the issue was the definition of
Switching the signature to use
|
I don't understand why you'd be getting this behavior. Nested Maps seem to work fine in ToContext: here I explore using
|
Closes #10152
This PR adds support for annotating author roles using the Contribution Role Taxonomy (CRediT).
I'm motivated to add this to Pandoc since I want the Journal of Open Source Software (JOSS), which is built on top of Pandoc, to be able to create compliant JATS. We're already adding support for encoding this information in article metadata in parallel in openjournals/inara#75.
Example input markdown / output JATS XML
Example input markdown file:
Example output JATS file: