Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Commit 20f9143

Browse files
author
Brian Beversdorf
committed
Update Mappings and P2881 Schema
1 parent 671fb65 commit 20f9143

2 files changed

Lines changed: 28 additions & 33 deletions

File tree

src/schema/mapping.json

Lines changed: 25 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,42 +6,16 @@
66
"prefix": "PERLS "
77
},
88
"metadata.Course.CourseTitle": "attributes.title",
9-
"metadata.Course_Instance.InLanguage": "attributes.langcode",
10-
"metadata.Course.CourseFullDescription": "attributes.field_description.value",
11-
"metadata.TechnicalInformation.Thumbnail": {
12-
"type": "uri",
13-
"uri": "relationships.field_media_image.data.relationships.field_media_image.data.attributes.uri.url"
14-
},
15-
"metadata.Classification.ClassificationTaxon": {
16-
"type": "static",
17-
"key": "relationships.field_tags.data",
18-
"value": "tag"
19-
},
20-
"metadata.Course_Instance.Instructor": {
21-
"type": "static",
22-
"value": "Owner"
23-
},
24-
"metadata.Lifecycle_Information.Maintainer": {
25-
"type": "static",
26-
"value": "Maintainer"
27-
},
28-
"metadata.Course.EducationalContext": {
29-
"type": "static",
30-
"value": "online"
31-
},
9+
"metadata.Course.CourseShortDescription": "attributes.field_description.value",
3210
"metadata.Course.CourseAudience": {
3311
"type": "static",
3412
"value": "General Public"
3513
},
36-
"metadata.Course.CoursePrerequisites": {
37-
"type": "static",
38-
"value": "None"
39-
},
40-
"metadata.Course.CreditAssessmentType": {
14+
"metadata.Course.CourseSubjectMatter": {
4115
"type": "static",
42-
"value": "self-assessment"
16+
"value": "Tactical Field Care"
4317
},
44-
"metadata.Course.ProviderName": {
18+
"metadata.Course.CourseProviderName": {
4519
"type": "env",
4620
"key": "PROVIDER"
4721
},
@@ -58,6 +32,27 @@
5832
"type": "static",
5933
"value": "online"
6034
},
35+
"metadata.Course_Instance.Instructor": {
36+
"type": "static",
37+
"value": "online"
38+
},
39+
"metadata.Course_Instance.InLanguage": "attributes.langcode",
40+
"metadata.Technical_Information.Location": {
41+
"type": "static",
42+
"value": "online"
43+
},
44+
"metadata.Technical_Information.Thumbnail": {
45+
"type": "uri",
46+
"uri": "relationships.field_media_image.data.relationships.field_media_image.data.attributes.uri.url"
47+
},
48+
"metadata.Lifecycle_Information.Provider": {
49+
"type": "env",
50+
"key": "PROVIDER"
51+
},
52+
"metadata.Lifecycle_Information.Maintainer": {
53+
"type": "static",
54+
"value": "Maintainer"
55+
},
6156
"provider_name": {
6257
"type": "env",
6358
"key": "PROVIDER"

src/schema/p2881.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
}
7979
}
8080
},
81-
"CourseInstance": {
81+
"Course_Instance": {
8282
"type": "object",
8383
"properties": {
8484
"CourseCode": {
@@ -134,7 +134,7 @@
134134
}
135135
}
136136
},
137-
"TechnicalInformation": {
137+
"Technical_Information": {
138138
"type": "object",
139139
"properties": {
140140
"Thumbnail": {
@@ -145,7 +145,7 @@
145145
}
146146
}
147147
},
148-
"LifecycleInformation": {
148+
"Lifecycle_Information": {
149149
"type": "object",
150150
"properties": {
151151
"Provider": {

0 commit comments

Comments
 (0)