Skip to content

Commit

Permalink
documents: improve editor
Browse files Browse the repository at this point in the history
Improve document editor by making some changes on fields, listed below.

* Adds CSS class `editor-title` to display a block for each main fields.
* Makes field `title.type` not editable and place it after the value.
* Removes type `bf:Local` for `contribution` field.
* Makes field `classification.type` not editable and place it after the value.
* Shows value when a `subtitle` field is added.
* Makes `language` field required and `language.type` readonly.
* Makes `partof` field required when document type is a contribution to journal.
* Makes `organisation` field required.
* Makes `provisionActivity` field required depending on document type, instead of hiding it.
* Closes #230.

Co-Authored-by: Sébastien Délèze <[email protected]>
  • Loading branch information
Sébastien Délèze committed Sep 7, 2020
1 parent 750f549 commit 6831f07
Show file tree
Hide file tree
Showing 2 changed files with 137 additions and 45 deletions.
8 changes: 7 additions & 1 deletion sonar/common/jsonschemas/type-v1.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,12 @@
"label": "document_type_coar:c_1843",
"value": "coar:c_1843"
}
]
],
"templateOptions": {
"cssClass": "editor-title"
},
"expressionProperties": {
"templateOptions.required": "true"
}
}
}
Loading

0 comments on commit 6831f07

Please sign in to comment.