hotfix(dataset): enhance dataset creation and editing forms
- Added functionality to add new authors and contributors directly within the dataset creation and editing forms. - Implemented `addNewAuthor` and `addNewContributor` methods to dynamically add new person objects to the authors and contributors arrays in the form data. - Added header icons with click events to the `CardBox` component for authors and contributors sections to trigger the addition of new entries. - Updated the dataset index views for reviewers and editors to improve the display of dataset titles, including adding a CSS class to truncate long titles. - Ensured authors and contributors are ordered by `pivot_sort_order` when preloading in the Dataset and Editor controllers. - Fixed an issue where pressing enter in the `SearchAutocomplete` component would submit the form. - Updated validation messages to be available in the `updateEditorDatasetValidator`.
This commit is contained in:
parent
f04c1f6327
commit
106f8d5f27
10 changed files with 379 additions and 382 deletions
|
@ -504,8 +504,8 @@ export default class DatasetsController {
|
|||
.preload('descriptions', (query) => query.orderBy('id', 'asc'))
|
||||
.preload('coverage')
|
||||
.preload('licenses')
|
||||
.preload('authors')
|
||||
.preload('contributors')
|
||||
.preload('authors', (query) => query.orderBy('pivot_sort_order', 'asc'))
|
||||
.preload('contributors', (query) => query.orderBy('pivot_sort_order', 'asc'))
|
||||
// .preload('subjects')
|
||||
.preload('subjects', (builder) => {
|
||||
builder.orderBy('id', 'asc').withCount('datasets');
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue