Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ OPTIONSET_PROVIDERS = [
```

After restarting RDMO, the `Re3DataProvider` should be selectable as a provider option for option sets.

The re3data plugin in RDMO provides the corresponding repositories, but they were not sorted alphabetically. Now there's the code modified to sort repositories alphabetically, which improved the findabilty of a repository.
3 changes: 2 additions & 1 deletion rdmo_re3data/providers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from ast import Lambda
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hey @afleischm, thanks for the PR, but this is not needed, right?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok, two years later, I see that I did not know how to use the rewiew function on GitHub back then. My comment was still pending...

import logging
from urllib.parse import urlencode

Expand Down Expand Up @@ -114,5 +115,5 @@ def get_options(self, project, search=None):
'id': repository_node.find('id').text,
'text': repository_node.find('name').text
})

options.sort(key=lambda option: option.get('text'), reverse=False)
return options