Skip to content

Add contributor roles - #87

Open
cthoyt wants to merge 1 commit into
openjournals:mainfrom
cthoyt:add-contributor-roles
Open

Add contributor roles#87
cthoyt wants to merge 1 commit into
openjournals:mainfrom
cthoyt:add-contributor-roles

Conversation

@cthoyt

@cthoyt cthoyt commented Sep 17, 2024

Copy link
Copy Markdown
Contributor

Closes #73. Supersedes #75

This PR enables annotating author roles using the Contribution Role Taxonomy (CRediT). It also enables (optionally) annotating the contribution degree, as suggested by JATS.

It does the following:

  • Add contribution list to end of default.latex (after reference list)
  • Add contribution list to end of preprint.latex (after reference list)
  • JATS support

Blockers

Demo

Here's what this looks like at the end of the main PDF build:

Screenshot 2024-09-02 at 13 19 52

Future Work

Future work for future PRs:

  1. Work with Crossref to get a reasonable model for capturing this. Crossref is currently discussing supporting this.

  2. See how this fits in the ConTeXt template, if this gets picked up by Open Journals

@cthoyt cthoyt mentioned this pull request Sep 17, 2024
2 tasks
Comment thread data/filters/prepare-credit.lua Outdated
@cthoyt

cthoyt commented Sep 18, 2024

Copy link
Copy Markdown
Contributor Author

@tarleb I adopted the same kind of error handling you added to adding contributor information - now it will print the errors during build but then move on without causing a failure

@cthoyt

cthoyt commented Sep 18, 2024

Copy link
Copy Markdown
Contributor Author

This is ready for review @arfon @xuanxu @sneakers-the-rat

@cthoyt
cthoyt force-pushed the add-contributor-roles branch from e560e10 to 5503760 Compare September 19, 2024 13:44

@sneakers-the-rat sneakers-the-rat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i love this, thanks for your work.

some minor comments, mostly thinking about future support of jats and other formats.

if the work is intended to have multiple stages, i wonder if we could PR these into a credit branch and merge them to main all together? atm we don't have a good way to regenerate papers from older submissions (i think?), so if people start using it before we have it finished then we would have some incomplete papers that have the LaTeX version but don't have the JATS version.

Comment thread .github/workflows/example-doc.yml
Comment thread data/filters/prepare-credit.lua Outdated
Comment thread data/filters/prepare-credit.lua Outdated
Comment thread data/filters/prepare-credit.lua Outdated
Comment thread data/filters/prepare-credit.lua
@tarleb

tarleb commented Sep 24, 2024

Copy link
Copy Markdown
Collaborator

@cthoyt How do you feel about putting this filter into a separate repository from which the filter is fetched during installation? This would give you more options to test the filter, would be more maintainable, and would make it easier to re-use the filter outside of Inara.

The perevir tool has been developed specifically for testing transformations like this, it might come in handy. See e.g. querverweis for a filter that uses it for tests. (Aside: I also plan to use querverweis in Inara to replace some hacky filters but, you probably guessed it, I didn't get around yet to making the switch.)

@cthoyt

cthoyt commented Sep 24, 2024

Copy link
Copy Markdown
Contributor Author

@tarleb are there examples of filters that have been split into their own repositories and use those tools? I would be hesitant otherwise, since I'm guessing there's going to be a learning curve both for using that tooling and also for getting it working inside Inara

alternatively, if this is looking like complete enough for you, we could merge it in Inara then work together to externalize some of these tools in a more systematic way (and write contribution guides)

@cthoyt

cthoyt commented Oct 16, 2024

Copy link
Copy Markdown
Contributor Author

@tarleb any thoughts on this? Would you consider merging this PR as is?

I don't think it's a great use of my time to learn new packaging and tooling without a lot of support

@cthoyt
cthoyt force-pushed the add-contributor-roles branch 2 times, most recently from 107ecac to 11ee64d Compare October 23, 2024 12:41
@tarleb

tarleb commented Oct 23, 2024

Copy link
Copy Markdown
Collaborator

I think we should hold off on this until we have fixed a few pressing issues, like getting JOSS into PUBMED (openjournals/joss#153). Sorry for the wait.

@sneakers-the-rat

Copy link
Copy Markdown
Contributor

pinging on this, i'm submitting a paper soon and would love to use CRediT roles, seems a shame for @cthoyt to have gone to all the trouble to upstream them into pandoc and then we don't use them.

@cthoyt
cthoyt force-pushed the add-contributor-roles branch from 9f82f96 to f2d21b8 Compare May 28, 2026 06:20
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

Successfully merging this pull request may close these issues.

Enable annotating Contributor Roles Taxonomy (CRediT) to authors

3 participants