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
Map Contributor Roles to Citations #1972
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all the work here! It looks great, with three issues that are probably my mistake in speccing.
- If someone is given a role and has the byline checked, they should only be listed in the citation and HTML metadata as that role, not also as an author. (The crossref deposits look correct).
Currently in the Cups example, Dents Harvey, Car and Pru are listed twice in the citation: as authors and Editor, Editor, Translator, respectively. They should only be listed once, as editors/translators.
Existing:
Team, P., Dent, H., Dent, C., & Dent, P. (2022). Cups. In H. Dent & C. Dent (Eds.), P. Dent (Trans.), A Mid Book TBH. KFG Press. Retrieved from http://localhost:9876/pub/cz29l94c
Expected:
Team, P. (2022). Cups. In H. Dent & C. Dent (Eds.), P. Dent (Trans.), A Mid Book TBH. KFG Press. Retrieved from http://localhost:9876/pub/cz29l94c
The same is true for HTML metadata. Existing:
Expected:
- The role functionality should also apply to pub-level contributors. That is, if someone at the pub level is listed as an editor, the citation, html metadata, and crossref deposit should list them as an editor, not an author. Currently, these folks are still listed as authors.
- We should update the crossref deposit previews to show the contributors we'll now be depositing, at various levels. For example, this preview of the Cups deposit should show all the dents, and their roles, listed in the "Book Metadata" section. I totally missed this in spec! My apologies.
…ossref... like did i even ask if...i forgot..somwthin about if preprint ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick update! I think we're just about there. Three quick things:
- If you set one person as an editor at the pub level, it looks like everybody is being treated as an editor in html meta and the citation (Crossref is okaY). What should happen is only the contributors who are actually editors get treated as such. See: http://localhost:9876/pub/cz29l94c/draft
- The preview doesn't quite match the XML. The collection-level contributors should be displayed at the collection level, the pub-level contributors at the pub level. Right now all are displayed at the pub level. (The XML is fine, it's just the preview).
- Let's add parentheses around the contributor type, otherwise it looks a bit odd. E.g.:
PubPub Team (editor)
I'm gettin the expected behavior for adding an additional author |
…scious and has dreams and definitely an inner thought processs
Me too. I must have just forgotten to refresh or something. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
addresses #1972
Putting the mapping here again bc it may be useful
Mapping:
Problems
Solutions
generateCitationHTML.tsx
getAllPubContributorsRoles
ingenerateCitationHTML.tsx
andcontributors.tsx
contributorRoleTags()
found inssr.tsx
if attributions are passed inExpectations
Test
citation_editor
tag exists for any editor