You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For extra context, here's a count of how many of the ROR entries from the InvenioRDM cookiecutter have duplicates:
In [10]: len({k: v for k, v in counter_names.items() if v > 1})
Out[10]: 717
In [11]: len({k: v for k, v in counter_names.items() if v > 2})
Out[11]: 189
In [12]: len({k: v for k, v in counter_names.items() if v > 3})
Out[12]: 85
In [13]: len({k: v for k, v in counter_names.items() if v > 4})
Out[13]: 53
In [14]: len({k: v for k, v in counter_names.items() if v > 5})
Out[14]: 31
In [15]: len({k: v for k, v in counter_names.items() if v > 6})
Out[15]: 24
In [16]: len({k: v for k, v in counter_names.items() if v > 7})
Out[16]: 17
In [17]: len({k: v for k, v in counter_names.items() if v > 8})
Out[17]: 14
In [18]: len({k: v for k, v in counter_names.items() if v > 9})
Out[18]: 12
In [19]: {k: v for k, v in counter_names.items() if v > 10}
Out[19]:
{'Ministry of Health': 52,
'Government Medical College': 13,
"St. Luke's Hospital": 12,
'Institute of Physics': 11,
'Ministry of Justice': 17,
'Ministry of Education': 20,
'Ministry of Culture': 14,
'Ministry of Agriculture': 11,
'Ministry of Finance': 11,
'Ministry of Foreign Affairs': 16}
In [20]:
Describe the bug
Whenever two affiliations have the same name, only one of the two (or more) entries is shown.
Steps to Reproduce
Expected behavior
The drop-down list should suggest both "Water Research Institute (IRSA)" as well as "Water Research Institute (WRI)".
Screenshots (if applicable)
Here, you can see that the backend does give back the WRI entry, but it's ignored in the web UI:
Actually, we can see that both "Water Research Institute" entries are returned:
After renaming the IRSA entry to "Water Research Institute ITALIA", both entries are in the drop-down:
Additional context
Once again, @ppanero was invaluable with helping me check this bug out and pointed to the
key
being set to theaffiliation.name
rather than theid
: https://github.com/inveniosoftware/react-invenio-deposit/blob/master/src/lib/components/AffiliationsField.js#L23The text was updated successfully, but these errors were encountered: