-
Notifications
You must be signed in to change notification settings - Fork 1
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
added License and Label models #3
base: main
Are you sure you want to change the base?
Conversation
dspace_rest_client/models.py
Outdated
""" | ||
Specific attributes and functions for licenses | ||
""" | ||
type = 'clarinlicense' |
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.
TT
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.
I wanted to change it because I understand the reasons, but when I checked the entire file where I added it, each of the classes was made similarly. In this case, wouldn't it be better to do it as the author did?
Problem description
After the vanilla import, the tables containing licenses are empty because there were no licenses beforehand.
Analysis
Fetch licenses, labels, and extended mappings from the database where licenses already exist. Filter them based on the definitions that are not required, and import them into vanilla DSpace where they are missing.
Added models for better work with database license fetch.