Space needed between multiple name identifiers
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- frontend
Research direction
Start in src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js and inspect the makeIdEntry and AffiliationsSuggestions functions. Reproduce the issue in the deposit form with a name containing multiple non-standard identifiers. Done means each identifier is separated by a space, including before the following identifier scheme.
Written by the indexing model from the issue text.
Description
Package version (if known): HEAD (seen on invenio-app-rdm@13.0.2)
Describe the bug
When a name has multiple identifiers, they are sometimes combined with no space in between. This is visually unpleasing but also breaks screenreaders since they're reading not the identifier but the identifier with the next identifiers scheme postfixed.
Steps to Reproduce
- Create a name with multiple identifiers not in the list of
makeIdEntrycases (orcid, gnd, ror, isni, grid), example:
- affiliations:
- id: 01mmcf932
family_name: Phetteplace
given_name: Eric
id: https://portal.cca.edu/people/ephetteplace/
identifiers:
- identifier: https://portal.cca.edu/people/ephetteplace/
scheme: url
- identifier: ephetteplace@cca.edu
scheme: email
- Go to the deposit form
- Add a Creator or Contributor
- Search for a string that will bring up the name, e.g. "Phetteplace"
- The two id strings are stuck together:
url: https://portal.cca.edu/people/ephetteplace/email: ephetteplace@cca.edu
Expected behavior
There should be a space in between each identifier and the scheme of the following one: url: https://portal.cca.edu/people/ephetteplace/ email: ephetteplace@cca.edu
Screenshots (if applicable)
Additional context
This occurs in src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js and could be fixed in either the makeIdEntry or AffiliationsSuggestions functions. I will submit a small PR.
- Dominant language
- JavaScript
- Stars
- 2
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from inveniosoftware/react-invenio-forms
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
inveniosoftware/react-invenio-forms#289 · 12 comments · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
inveniosoftware/react-invenio-forms#285 · 1 reaction ·
All issues in inveniosoftware/react-invenio-forms
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·