-
Notifications
You must be signed in to change notification settings - Fork 11
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
deposits: add license #327
Conversation
@@ -319,7 +319,15 @@ | |||
} | |||
}, | |||
"usageAndAccessPolicy": { | |||
"type": "text" | |||
"type": "object", |
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 do not understand why this property name is different between document and deposit...
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.
Because the deposit schema has been done a long time before adding the usageAndAccessPolicy
property in document schemas. And I don't have the time to refactor it.
{% if record.usageAndAccessPolicy %} | ||
<p> | ||
<small> | ||
{% if record.usageAndAccessPolicy.label %} |
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.
It would be nice to have logos in the future.
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.
Thanks for the proposition, I will add a card in the kanban for this.
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.
This PR aims to add a license to deposit and document records. Moreover, the `usageAndAccessPolicy` will be added when a record is imported from RERO DOC. * Creates a JSON schema for license property. * Creates the `usageAndAccessPolicy` property in documents when the document is created from a deposit. * Updates the `usageAndAccessPolicy` property of documents to match the specs. * Adds a `license` property in deposit's JSON schema. * Updates the conversion of field `540$a` to match the new structure of the `usageAndAccessPolicy` property. * Adds a default license for RERO DOC documents if the license is not set. * Makes the field `usageAndAccessPolicy` available when a document is serialized. * Displays the license in document's detail view. * Closes #324. Co-Authored-by: Sébastien Délèze <[email protected]>
The license value is marked for being translated. The extraction of this messages will be done in another PR on branch
Done |
This PR aims to add a license to deposit and document records. Moreover, the
usageAndAccessPolicy
will be added when a record is imported from RERO DOC.usageAndAccessPolicy
property in documents when the document is created from a deposit.usageAndAccessPolicy
property of documents to match the specs.license
property in deposit's JSON schema.540$a
to match the new structure of theusageAndAccessPolicy
property.usageAndAccessPolicy
available when a document is serialized.Co-Authored-by: Sébastien Délèze [email protected]