Skip to content

Commit

Permalink
schemas: removing dois from item (CERNDocumentServer#228)
Browse files Browse the repository at this point in the history
* (references comments in CERNDocumentServer#224 )
  • Loading branch information
kpsherva committed Jul 18, 2019
1 parent 537270c commit c7852bc
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 110 deletions.
30 changes: 0 additions & 30 deletions cds_dojson/schemas/records/books/book/eitem-v0.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,6 @@
"title": "EItem description",
"type": "string"
},
"dois": {
"items": {
"additionalProperties": false,
"properties": {
"material": {
"$ref": "elements/material.json",
"description": ":MARC: 0247_q"
},
"source": {
"$ref": "elements/source.json",
"description": ":MARC: 0247_9"
},
"value": {
"description": "':MARC: 0247_a\n:example: 10.1023/A:1026654312961'",
"minLength": 1,
"pattern": "^10\\.\\d+(\\.\\d+)?/\\S+$",
"title": "DOI",
"type": "string"
}
},
"required": [
"value"
],
"type": "object"
},
"minItems": 1,
"title": "List of DOIs",
"type": "array",
"uniqueItems": true
},
"files": {
"items": {
"$ref": "elements/file.json"
Expand Down
30 changes: 0 additions & 30 deletions cds_dojson/schemas/records/books/book/item-v0.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,36 +25,6 @@
"title": "Holding description",
"type": "string"
},
"dois": {
"items": {
"additionalProperties": false,
"properties": {
"material": {
"$ref": "elements/material.json",
"description": ":MARC: ``0247_q``"
},
"source": {
"$ref": "elements/source.json",
"description": ":MARC: ``0247_9``"
},
"value": {
"description": ":MARC: ``0247_a``\n:example: ``10.1023/A:1026654312961``",
"minLength": 1,
"pattern": "^10\\.\\d+(\\.\\d+)?/\\S+$",
"title": "DOI",
"type": "string"
}
},
"required": [
"value"
],
"type": "object"
},
"minItems": 1,
"title": "List of DOIs",
"type": "array",
"uniqueItems": true
},
"library": {
"description": ":BibCirculation field ``library``\n.. Note:: list should come from the list of Libraries registered in the system.",
"items": {
Expand Down
25 changes: 0 additions & 25 deletions cds_dojson/schemas/records/books/ymls/eitem-v0.0.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,6 @@ properties:
minLength: 1
title: EItem description
type: string
dois:
items:
additionalProperties: false
properties:
material:
$ref: elements/material.json
description: ':MARC: 0247_q'
source:
$ref: elements/source.json
description: ':MARC: 0247_9'
value:
description: |-
':MARC: 0247_a
:example: 10.1023/A:1026654312961'
minLength: 1
pattern: ^10\.\d+(\.\d+)?/\S+$
title: DOI
type: string
required:
- value
type: object
minItems: 1
title: List of DOIs
type: array
uniqueItems: true
files:
items:
$ref: elements/file.json
Expand Down
25 changes: 0 additions & 25 deletions cds_dojson/schemas/records/books/ymls/item-v0.0.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,6 @@ properties:
minLength: 1
title: Holding description
type: string
dois:
items:
additionalProperties: false
properties:
material:
$ref: elements/material.json
description: ':MARC: ``0247_q``'
source:
$ref: elements/source.json
description: ':MARC: ``0247_9``'
value:
description: |-
:MARC: ``0247_a``
:example: ``10.1023/A:1026654312961``
minLength: 1
pattern: ^10\.\d+(\.\d+)?/\S+$
title: DOI
type: string
required:
- value
type: object
minItems: 1
title: List of DOIs
type: array
uniqueItems: true
library:
description: |-
:BibCirculation field ``library``
Expand Down
1 change: 1 addition & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
'deposits/records/videos/project/project-v1.0.0.json'),
('records/books/book/document_src-v0.0.1.json',
'records/books/book/document-v0.0.1.json'),
])
def test_cli(src, compiled):
"""Test cds-dojson CLI."""
Expand Down

0 comments on commit c7852bc

Please sign in to comment.