-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcopycatprofile.json
77 lines (77 loc) · 2.81 KB
/
copycatprofile.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "copycat profile",
"description": "copycat import profile",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "unique identifier and primary key"
},
"name": {
"type": "string",
"description": "Human-readable name"
},
"url": {
"type": "string",
"description": "Location of remote service to obtain records from"
},
"authentication": {
"type": "string",
"description": "Authentication credentials to use for the remote service"
},
"externalIdQueryMap": {
"type": "string",
"description": "Specifies which field at the remote service should be searched with the value of `externalIdentifier` when an import request is POSTed. Could be specified as a YAZ prefix-query string, e.g. '@attr 1=12 $identifier'"
},
"internalIdEmbedPath": {
"type": "string",
"description": "Specifies where the internalIdentifier is to be embedded in the MARC record, e.g. '999__$i' to place it in field 999, indicator double space (absent) and subfield i; this field only has effect when internalIdentifier is present"
},
"createJobProfileId": {
"type": "string",
"description": "Default job profile to use for create",
"$ref": "raml-util/schemas/uuid.schema"
},
"updateJobProfileId": {
"type": "string",
"description": "Default job profile to use for update",
"$ref": "raml-util/schemas/uuid.schema"
},
"allowedCreateJobProfileIds": {
"type": "array",
"description": "Job profiles to use for create",
"items": {
"type": "string",
"$ref": "raml-util/schemas/uuid.schema"
}
},
"allowedUpdateJobProfileIds": {
"type": "array",
"description": "Job profiles to use for update",
"items": {
"type": "string",
"$ref": "raml-util/schemas/uuid.schema"
}
},
"targetOptions" : {
"type":"object",
"description": "A 1-level Json Object containing ZOOM options. The most important ones being preferredRecordSyntax, charset, marcencoding (encoding for retrieved MARC records - default is marc-8). See https://software.indexdata.com/yaz/doc/zoom.html#zoom-connections and https://software.indexdata.com/yaz/doc/zoom.resultsets.html#zoom.resultset.options"
},
"externalIdentifierType": {
"type": "string",
"description": "UUID of an identifier-type defined by the inventory module",
"$ref": "raml-util/schemas/uuid.schema"
},
"enabled": {
"type": "boolean",
"description": "Whether this profile should be presented to users importing records"
}
},
"additionalProperties": false,
"required": [
"name",
"createJobProfileId",
"updateJobProfileId"
]
}