Skip to content

Commit

Permalink
update properties.language to an object per latest OARec changes (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis authored Nov 1, 2024
1 parent d99fbbc commit 65e8b20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/DatasetEditorForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ export default defineComponent({
// Properties information
formModel.identification.title = schema.properties.title;
formModel.identification.description = schema.properties.description;
formModel.identification.language = schema.properties.language;
formModel.identification.language = {code: schema.properties.language};
formModel.identification.keywords = schema.properties.keywords;
// Themes - hardcoded for now
Expand Down Expand Up @@ -1801,7 +1801,7 @@ export default defineComponent({
schemaModel.properties.identifier = form.identification.identifier;
schemaModel.properties.title = form.identification.title;
schemaModel.properties.description = form.identification.description;
schemaModel.properties.language = null;
schemaModel.properties.language = {code: null};
schemaModel.properties.keywords = form.identification.keywords;
// Themes
const concepts = form.identification.concepts.map(item => ({ id: item, title: getTitleOf(item) }));
Expand Down Expand Up @@ -2271,4 +2271,4 @@ export default defineComponent({
text-align: right;
vertical-align: middle;
}
</style>
</style>

0 comments on commit 65e8b20

Please sign in to comment.