Skip to content

Commit

Permalink
MODINVSTOR-1143. Add source field to contributor name type
Browse files Browse the repository at this point in the history
  • Loading branch information
SerhiiNosko committed Dec 6, 2023
1 parent c25b847 commit 9cd41ee
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 17 deletions.
2 changes: 1 addition & 1 deletion descriptors/ModuleDescriptor-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@
},
{
"id": "contributor-name-types",
"version": "1.2",
"version": "1.3",
"handlers": [
{
"methods": ["GET"],
Expand Down
2 changes: 1 addition & 1 deletion ramls/contributor-name-type.raml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#%RAML 1.0
title: Contributor Name Types API
version: v1.2
version: v1.3
protocols: [ HTTP, HTTPS ]
baseUri: http://localhost

Expand Down
4 changes: 4 additions & 0 deletions ramls/contributornametype.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"description": "used for ordering of contributor name types in displays, i.e. in select lists",
"type": "string"
},
"source": {
"type": "string",
"description": "origin of the contributor name type record, e.g. 'local', 'consortium' etc."
},
"metadata": {
"type": "object",
"$ref": "raml-util/schemas/metadata.schema",
Expand Down
2 changes: 1 addition & 1 deletion ramls/electronicaccessrelationship.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "string"
},
"source": {
"description": "Origin of the electronic access relationship record, e.g. 'System', 'User', 'Consortium', 'folio', 'local' etc.",
"description": "Origin of the electronic access relationship record, e.g. 'local', 'consortium' etc.",
"type": "string"
},
"metadata": {
Expand Down
3 changes: 2 additions & 1 deletion ramls/examples/contributornametype.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"id": "2b94c631-fca9-4892-a730-03ee529ffe2a",
"name": "Personal name"
"name": "Personal name",
"source": "local"
}
9 changes: 6 additions & 3 deletions ramls/examples/contributornametypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
"contributorNameTypes": [
{
"id": "2b94c631-fca9-4892-a730-03ee529ffe2a",
"name": "Personal name"
"name": "Personal name",
"source": "local"
},
{
"id": "2e48e713-17f3-4c13-a9f8-23845bb210aa",
"name": "Corporate name"
"name": "Corporate name",
"source": "consortium"
},
{
"id": "e8b311a6-3b21-43f2-a269-dd9310cb2d0a",
"name": "Meeting name"
"name": "Meeting name",
"source": "consortium"
}
],
"totalRecords": 3
Expand Down
2 changes: 1 addition & 1 deletion ramls/examples/electronicaccessrelationship.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "f5d0068e-6272-458e-8a81-b85e7b9a14aa",
"name": "Resource",
"source": "System"
"source": "local"
}
8 changes: 4 additions & 4 deletions ramls/examples/electronicaccessrelationships.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
{
"id": "f5d0068e-6272-458e-8a81-b85e7b9a14aa",
"name": "Resource",
"source": "System"
"source": "local"
},
{
"id": "f50c90c9-bae0-4add-9cd0-db9092dbc9dd",
"name": "No information provided",
"source": "User"
"source": "local"
},
{
"id": "3b430592-2e09-4b48-9a0c-0636d66b9fb3",
"name": "Version of resource",
"source": "Consortium"
"source": "consortium"
},
{
"id": "5bfe1b7b-f151-4501-8cfa-23b321d5cd1e",
"name": "Related resource",
"source": "folio"
"source": "consortium"
},
{
"id": "ef03d582-219c-4221-8635-bc92f1107021",
Expand Down
2 changes: 1 addition & 1 deletion ramls/examples/loantype.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "2b94c631-fca9-4892-a730-03ee529ffe27",
"name": "Can circulate",
"source": "System"
"source": "local"
}
6 changes: 3 additions & 3 deletions ramls/examples/loantypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
{
"id": "2b94c631-fca9-4892-a730-03ee529ffe27",
"name": "Can circulate",
"source": "System"
"source": "local"
},
{
"id": "2e48e713-17f3-4c13-a9f8-23845bb210a4",
"name": "Reading room",
"source": "User"
"source": "local"
},
{
"id": "e8b311a6-3b21-43f2-a269-dd9310cb2d0e",
"name": "Course reserves",
"source": "Consortium"
"source": "consortium"
}
],
"totalRecords": 3
Expand Down
3 changes: 2 additions & 1 deletion ramls/holdings-sources/holdingsRecordsSource.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"type": "string",
"enum": [
"folio",
"local"
"local",
"consortium"
],
"description": "The holdings records source"
},
Expand Down

0 comments on commit 9cd41ee

Please sign in to comment.