Skip to content
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

pragerdom/be-366: OpenAIRE authority provider #199

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
e86dbce
feat: schema file for awards
pragerdom Nov 22, 2024
d711eb0
feat: OpenAIRE Provider constructor
pragerdom Nov 26, 2024
b849af8
Merge branch 'main' into pragerdom/be-366-implement-openaire-authorit…
pragerdom Nov 26, 2024
6f7f149
feat: introduce OpenAIRE to tests and model
pragerdom Nov 26, 2024
d23d456
feat: OpenAIRE Authority Provider implementation
pragerdom Dec 1, 2024
b430aee
fix: incorrect (test) docker-compose.yml file
pragerdom Dec 1, 2024
f911415
refactor: remove unused import, return vocab item faster
pragerdom Dec 1, 2024
000fa87
refactor: logger, token caching, config from current_app
pragerdom Dec 2, 2024
f037630
refactor: access app for keys in tests from context
pragerdom Dec 2, 2024
8f6041b
refactor: remove some try-except blocks
pragerdom Dec 3, 2024
70e268f
refactor: make relations (organizations) get more readable
pragerdom Dec 3, 2024
4b9c2e8
fix: prevent None value access
pragerdom Dec 3, 2024
e18e381
Merge branch 'main' into pragerdom/be-366-implement-openaire-authorit…
pragerdom Dec 3, 2024
4113437
refactor: unused import, change program finding method to recursive call
pragerdom Dec 3, 2024
5deb86c
temporary dependancy fix
Dec 4, 2024
b96ddda
refactor: more consistent relations fetch, unite tests with ORCID
pragerdom Dec 4, 2024
95acb2e
format: reformat OpenAIRE provider
pragerdom Dec 4, 2024
3545ddc
refactor: more readable NoneType checking
pragerdom Dec 4, 2024
e1f65e8
Merge branch 'main' into pragerdom/be-366-implement-openaire-authorit…
pragerdom Dec 5, 2024
ae6e22d
fix: ROR provider code update from main
pragerdom Dec 5, 2024
daad27d
Merge branch 'main' into pragerdom/be-366-implement-openaire-authorit…
pragerdom Jan 16, 2025
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
Prev Previous commit
Next Next commit
refactor: make relations (organizations) get more readable
  • Loading branch information
pragerdom committed Dec 3, 2024
commit 70e268f32b97139e08decde42c32f1e7608e02fd
Original file line number Diff line number Diff line change
@@ -161,9 +161,9 @@ def to_vocabulary_item(record):
entity = metadata.get("oaf:entity", {})
project = entity.get("oaf:project", {})

if isinstance(project.get("rels"), dict):
relations = project.get("rels", {}).get("rel", [])

rels = project.get("rels")
if isinstance(rels, dict):
relations = rels.get("rel", [])
else:
relations = []

Loading