You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"rights": "Attribution-NonCommercial-ShareAlike 3.0 United States",
11
10
"file":
@@ -36,10 +35,9 @@ The section data represents the data about the CC license
36
35
```
37
36
38
37
The following attributes can be defined:
39
-
* granted: true if a CC License has been specified
40
-
* uri: the URI of the CC License, typically stored in dc.rights.uri, can be null
41
-
* rights: the rights name of the CC License, typically stored in dc.rights, can be null
42
-
* file: the bitstream containing the license, can be null
38
+
* uri: the URI of the CC License, typically stored in dc.rights.uri, null is no license is granted
39
+
* rights: the rights name of the CC License, typically stored in dc.rights, null is no license is granted
40
+
* file: the bitstream containing the license, null is no license is granted
43
41
44
42
## Patch operations
45
43
The PATCH method expects a JSON body according to the [JSON Patch specification RFC6902](https://tools.ietf.org/html/rfc6902)
@@ -61,14 +59,12 @@ To accept a CC license the client must send a JSON Patch ADD operation of the ur
61
59
62
60
The dc.rights, dc.rights.uri and RDF bitstream will be retrieved from e.g. https://api.creativecommons.org/rest/1.5/details?license-uri=http://creativecommons.org/licenses/by-nc-sa/3.0/
63
61
64
-
Please note that according to the [JSON Patch specification RFC6902](https://tools.ietf.org/html/rfc6902) a subsequent add operation on the granted will have the effect to replace the previous granted license with a new one.
62
+
Please note that according to the [JSON Patch specification RFC6902](https://tools.ietf.org/html/rfc6902) a subsequent add operation on the `/sections/<:name-of-the-form>/uri` will have the effect to replace the previous granted license with a new one.
65
63
In this case a new CC license will be added to the item and the previous license deleted.
66
64
67
-
It is also possible to send a PATH add operation using *false* as value to reject / remove a license.
68
-
69
65
This use of the add operation to replace the license could be counter intuitive but it is done according to the [RFC section 4.1](https://tools.ietf.org/html/rfc6902#section-4.1)
70
66
> If the target location specifies an object member that does exist, that member's value is replaced.
71
67
72
68
### Remove
73
69
It is possible to remove a previously granted CC license
0 commit comments