-
Notifications
You must be signed in to change notification settings - Fork 77
Author interface for ROR, CRediT, and ORCiD in submission workflow #4697
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
Merged
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
23c3331
feat #4519 Users can import ROR-controlled affiliations from ORCiD
joemull 2918919
feat #4519 #3111 ORCiD, ROR, and CRediT interface for authors
joemull ece60a2
fix #1485 Remove old API URL to avoid confusion
joemull e98c1b4
feat #4519 Add missing Python imports
joemull 6b2e274
feat #4519 Improve ORCiD affiliation parsing
joemull 9593b3d
feat #4519 UI improvements after demo
joemull 77613e8
feat #4519 Translations and cleanup
joemull 9f00775
Split out submission tests; test fixes for #4519
joemull 45fd701
feat #4519 Write tests for views and logic
joemull 834019b
feat #4519 Improve delete author logic; more tests
joemull cb1e361
feat #4519 Make button for copying share link
joemull 5f0df45
feat #4519 UX improvements requested in review
joemull 55d8bd9
feat #4519 Fix up a few things spotted in review
joemull 6cfeefd
feat #4519 Use shell of a button for credit roles
joemull 804c024
chore #4519 Spell ORCID without lowercase I
joemull b2c48b7
feat #4519 Wrap credit role shells on mobile
joemull 46ef986
feat #4519 Fix shell button margins
joemull fe25e66
feat #4519 Return user to submission directly after affil edits
joemull 2b044b6
wip #4519 Working UI for frozen author list during submission
joemull a633ed3
chore: adds migration for in progress articles forzen authors.
ajrbyers f8afa74
remove accidental comment
mauromsl 6d08a21
fix: set name_prefix properly
ajrbyers 3fd3312
#4519: Adds a warning to Article.authors
mauromsl b10bd1d
#4519: Adds signal for backwards compatibility of Article.authors
mauromsl cb8085a
#4519: Replace stale Article.authors calls
mauromsl 0bd1b15
#4519: Replace stale Article.authors calls
mauromsl 151b9d1
#4519: Replace stale Article accounts calls
mauromsl 9eb2fe6
#4519: Update frozen authors mgmt command
mauromsl 06300da
#4519: Adds manager to avoid n+1 Qs for article authors
mauromsl 4e40420
fix: remove snapshot call when completing submission
ajrbyers bbe831c
fix: remove snapshot_authors calls that are no longer required.
ajrbyers 6a91d9b
fix #4755 Adjustments to article-account relationships
joemull dec36a7
feat #4755 Systemtatic changes to calls to Article.authors
joemull 5d5501f
feat #4519 Improvements for navigation and clarity
joemull 3fed94a
feat #4519 Redirect after post on edit author page
joemull 400ecce
feat #4519 Remove setting user_automatically_author
joemull bc2806a
feat #4755 Adjust migration in case first author has fake email
joemull 628ed95
feat #4755 Fix bad rebase on submission tests
joemull f13ede8
wip #4519 submission models tests
joemull 37afa0c
fix(migration): adds missing colon in submission 0088.
ajrbyers b44d83b
fix: use safe_title where needed.
ajrbyers b2e0a29
feat #4755 Update author logic in new submission tests
joemull 55678a7
feat #4755 Update author logic in all submission tests
joemull ce8ae50
feat #4755 Update author logic in remaining tests
joemull a67f554
feat #4755 Update deprecation note
joemull 113253b
feat #4519 Fix navigation and display bugs
joemull d8ca2ca
fix: Ensure unavailable GET parameter is not serialized as text
mauromsl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,8 +35,9 @@ def setUpTestData(cls): | |
date_published="1986-07-12T17:00:00.000+0200", | ||
authors=[cls.author], | ||
) | ||
cls.author.add_credit('data-curation', cls.article) | ||
cls.author.add_credit('writing-original-draft', cls.article) | ||
cls.frozen_author = cls.author.frozen_author(cls.article) | ||
cls.frozen_author.add_credit('data-curation') | ||
cls.frozen_author.add_credit('writing-original-draft') | ||
cls.issue = helpers.create_issue( | ||
journal=cls.journal, vol=1, number=1, | ||
articles=[cls.article], | ||
|
@@ -141,8 +142,7 @@ def test_get_record_jats(self): | |
expected = GET_RECORD_DATA_JATS | ||
# Add a non correspondence author | ||
author_2 = helpers.create_author(self.journal, email="[email protected]") | ||
self.article.authors.add(author_2) | ||
self.article.snapshot_authors() | ||
author_2.snapshot_as_author(self.article) | ||
|
||
setting_handler.save_setting( | ||
"general", | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/core/migrations/0107_alter_controlledaffiliation_options_and_more.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Django 4.2.20 on 2025-05-01 14:14 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0106_remove_account_country_affiliation_organization'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='controlledaffiliation', | ||
options={'ordering': ['-is_primary', '-end', '-start', '-pk']}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='organization', | ||
options={}, | ||
), | ||
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
do we need to handle the case of explicit
None
like for the other cases? (e.g{'year': {'value': None}}
)