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

migration: add rights/licenses in _metadata in transform #103

Open
slint opened this issue Nov 23, 2022 · 0 comments
Open

migration: add rights/licenses in _metadata in transform #103

slint opened this issue Nov 23, 2022 · 0 comments

Comments

@slint
Copy link
Member

slint commented Nov 23, 2022

        def _rights(self, data):
            license_id = data["$ref"].rsplit("/", 1)[-1].lower()
            # TODO: Map legacy license IDs (or create aliases in RDM)
            return [{"id": license_id}]

        # TODO: check if license exists or create as custom
        # if data.get("license"):
        #     r["rights"] = self._rights(data["license"])
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

No branches or pull requests

1 participant