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

added License and Label models #3

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Paurikova2
Copy link

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.

dspace_rest_client/models.py Outdated Show resolved Hide resolved
@Paurikova2 Paurikova2 changed the base branch from main to dtq-dev November 13, 2024 06:08
@Paurikova2 Paurikova2 changed the base branch from dtq-dev to main November 13, 2024 06:09
@Paurikova2 Paurikova2 self-assigned this Nov 14, 2024
"""
Specific attributes and functions for licenses
"""
type = 'clarinlicense'

Choose a reason for hiding this comment

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

TT

Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants