Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creatibutor form update #81

Merged
merged 3 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions assets/js/invenio_app_rdm/overridableRegistry/mapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,20 @@
// Invenio App RDM is free software; you can redistribute it and/or modify it
// under the terms of the MIT License; see LICENSE file for more details.

/**
* Add here all the overridden components of your app.
*/
import { OptionalRoleCreatibutorsField } from "../../ic_data_repo/OptionalRoleCreatibutors";
import { parametrize } from "react-overridable";

export const overriddenComponents = {}
const CreatorsField = parametrize(OptionalRoleCreatibutorsField, {
helpText: "The main individuals or institutions involved in creating the data set.",
includeRole: false,
});

const ContributorsField = parametrize(OptionalRoleCreatibutorsField, {
helpText: "Individuals or institutions, in addition to the creators, responsible for collecting, managing, distributing or other-wise contributing to the development of the resource.",
includeRole: true,
});

export const overriddenComponents = {
"InvenioAppRdm.Deposit.ContributorsField.container": ContributorsField,
"InvenioAppRdm.Deposit.CreatorsField.container": CreatorsField,
};
Loading
Loading