-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <sebastien.deleze@rero.ch>
- Loading branch information
Sébastien Délèze
committed
Oct 26, 2020
1 parent
d1de34e
commit e26dca4
Showing
12 changed files
with
145 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"title": "License", | ||
"type": "string", | ||
"enum": [ | ||
"CC0", | ||
"CC BY", | ||
"CC BY-NC", | ||
"CC BY-NC-ND", | ||
"CC BY-NC-SA", | ||
"CC BY-ND", | ||
"CC BY-SA", | ||
"Other OA / license undefined", | ||
"Not OA / Rights reserved" | ||
], | ||
"form": { | ||
"options": [ | ||
{ | ||
"label": "CC0", | ||
"value": "CC0" | ||
}, | ||
{ | ||
"label": "CC BY", | ||
"value": "CC BY" | ||
}, | ||
{ | ||
"label": "CC BY-NC", | ||
"value": "CC BY-NC" | ||
}, | ||
{ | ||
"label": "CC BY-NC-ND", | ||
"value": "CC BY-NC-ND" | ||
}, | ||
{ | ||
"label": "CC BY-NC-SA", | ||
"value": "CC BY-NC-SA" | ||
}, | ||
{ | ||
"label": "CC BY-ND", | ||
"value": "CC BY-ND" | ||
}, | ||
{ | ||
"label": "CC BY-SA", | ||
"value": "CC BY-SA" | ||
}, | ||
{ | ||
"label": "Other OA / license undefined", | ||
"value": "Other OA / license undefined" | ||
}, | ||
{ | ||
"label": "Not OA / Rights reserved", | ||
"value": "Not OA / Rights reserved" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters