Skip to content

Commit

Permalink
schemas: clean Eitem and Item schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
kpsherva committed Jul 18, 2019
1 parent c7852bc commit b2112ba
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 47 deletions.
23 changes: 9 additions & 14 deletions cds_dojson/schemas/records/books/book/eitem-v0.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
"minLength": 1,
"type": "string"
},
"internal_notes": {
"minLength": 1,
"title": "Internal Note",
"type": "string"
},
"description": {
"description": ":MARC: 0247__q or 8564_y",
"minLength": 1,
Expand All @@ -27,16 +22,21 @@
"title": "List of files",
"type": "array"
},
"internal_notes": {
"minLength": 1,
"title": "Internal Note",
"type": "string"
},
"number_of_pages": {
"description": ":MARC: ``300``",
"minimum": 1,
"title": "Number of pages of the EItem",
"type": "integer"
},
"public_note": {
"minLength": 1,
"title": "Public Note",
"type": "string"
"open_access": {
"description": "Define if the electronic item is publically accessible.",
"title": "Public access",
"type": "boolean"
},
"urls": {
"description": ":MARC: ``8564``\nURLs to external resources related to this record.\n.. note::\n Links to internal CDS resources are found in another element.",
Expand All @@ -46,11 +46,6 @@
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"open_access": {
"description": "Define if the electronic item is publically accessible.",
"title": "Public access",
"type": "boolean"
}
}
}
21 changes: 9 additions & 12 deletions cds_dojson/schemas/records/books/book/item-v0.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
"minLength": 1,
"type": "string"
},
"internal_notes": {
"minLength": 1,
"title": "Private Note",
"type": "string"
},
"barcode": {
"description": "BibCirculation field: barcode",
"minLength": 1,
Expand All @@ -25,6 +20,11 @@
"title": "Holding description",
"type": "string"
},
"internal_notes": {
"minLength": 1,
"title": "Private Note",
"type": "string"
},
"library": {
"description": ":BibCirculation field ``library``\n.. Note:: list should come from the list of Libraries registered in the system.",
"items": {
Expand Down Expand Up @@ -55,7 +55,6 @@
"items": {
"enum": [
"print",
"online",
"CD-ROM"
],
"minLength": 1,
Expand All @@ -77,11 +76,6 @@
"title": "Physical description of an item",
"type": "string"
},
"public_note": {
"minLength": 1,
"title": "Public Note",
"type": "string"
},
"urls": {
"description": ":MARC: ``8564``\nURLs to external resources related to this record.\n.. note::\n Links to internal CDS resources are found in another element.",
"items": {
Expand All @@ -93,7 +87,10 @@
}
},
"required": [
"medium"
"medium",
"barcode",
"library",
"location"
],
"title": "Physical copy of a document",
"type": "object"
Expand Down
21 changes: 9 additions & 12 deletions cds_dojson/schemas/records/books/ymls/eitem-v0.0.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ properties:
format: uri
minLength: 1
type: string
internal_notes:
minLength: 1
title: Internal Note
type: string
description:
description: ':MARC: 0247__q or 8564_y'
minLength: 1
Expand All @@ -21,15 +17,19 @@ properties:
minItems: 1
title: List of files
type: array
internal_notes:
minLength: 1
title: Internal Note
type: string
number_of_pages:
description: ':MARC: ``300``'
minimum: 1
title: Number of pages of the EItem
type: integer
public_note:
minLength: 1
title: Public Note
type: string
open_access:
description: Define if the electronic item is publically accessible.
title: Public access
type: boolean
urls:
description: |-
:MARC: ``8564``
Expand All @@ -41,7 +41,4 @@ properties:
minItems: 1
type: array
uniqueItems: true
open_access:
description: Define if the electronic item is publically accessible.
title: Public access
type: boolean

16 changes: 7 additions & 9 deletions cds_dojson/schemas/records/books/ymls/item-v0.0.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ properties:
format: uri
minLength: 1
type: string
internal_notes:
minLength: 1
title: Private Note
type: string
barcode:
description: 'BibCirculation field: barcode'
minLength: 1
Expand All @@ -20,6 +16,10 @@ properties:
minLength: 1
title: Holding description
type: string
internal_notes:
minLength: 1
title: Private Note
type: string
library:
description: |-
:BibCirculation field ``library``
Expand Down Expand Up @@ -48,7 +48,6 @@ properties:
items:
enum:
- print
- online
- CD-ROM
minLength: 1
type: string
Expand All @@ -65,10 +64,6 @@ properties:
description: ':MARC: ``300`` when no pagination'
title: Physical description of an item
type: string
public_note:
minLength: 1
title: Public Note
type: string
urls:
description: |-
:MARC: ``8564``
Expand All @@ -82,5 +77,8 @@ properties:
uniqueItems: true
required:
- medium
- barcode
- library
- location
title: Physical copy of a document
type: object

0 comments on commit b2112ba

Please sign in to comment.