Skip to content

Commit 525f684

Browse files
committed
metadata: rename copyrights
1 parent e99aab1 commit 525f684

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/fields/CopyrightsField/CopyrightsField.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ CopyrightsField.propTypes = {
4040
};
4141

4242
CopyrightsField.defaultProps = {
43-
label: i18next.t("Copyrights"),
43+
label: i18next.t("Copyright"),
4444
required: false,
4545
};

invenio_rdm_records/records/jsonschemas/records/record-v6.0.0.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@
203203
}
204204
}
205205
},
206-
"copyrights": {
207-
"description": "Copyrights for record (may contain HTML).",
206+
"copyright": {
207+
"description": "Copyright for record (may contain HTML).",
208208
"type": "string"
209209
},
210210
"description": {

invenio_rdm_records/records/mappings/os-v1/rdmrecords/drafts/draft-v6.0.0.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@
809809
}
810810
}
811811
},
812-
"copyrights": {
812+
"copyright": {
813813
"type": "text"
814814
},
815815
"creators": {

invenio_rdm_records/records/mappings/os-v1/rdmrecords/records/record-v7.0.0.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@
898898
}
899899
}
900900
},
901-
"copyrights": {
901+
"copyright": {
902902
"type": "text"
903903
},
904904
"dates": {

invenio_rdm_records/records/mappings/os-v2/rdmrecords/drafts/draft-v6.0.0.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@
809809
}
810810
}
811811
},
812-
"copyrights": {
812+
"copyright": {
813813
"type": "text"
814814
},
815815
"creators": {

invenio_rdm_records/records/mappings/os-v2/rdmrecords/records/record-v7.0.0.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@
807807
}
808808
}
809809
},
810-
"copyrights": {
810+
"copyright": {
811811
"type": "text"
812812
},
813813
"creators": {

invenio_rdm_records/services/schemas/metadata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ class MetadataSchema(Schema):
385385
)
386386
version = SanitizedUnicode()
387387
rights = fields.List(fields.Nested(RightsSchema))
388-
copyrights = SanitizedHTML(validate=validate.Length(min=3))
388+
copyright = SanitizedHTML(validate=validate.Length(min=1))
389389
description = SanitizedHTML(validate=validate.Length(min=3))
390390
additional_descriptions = fields.List(fields.Nested(DescriptionSchema))
391391
locations = fields.Nested(FeatureSchema)

0 commit comments

Comments
 (0)