15 use \PKP\components\forms\FormComponent;
16 use \PKP\components\forms\FieldRadioInput;
17 use \PKP\components\forms\FieldRichTextarea;
18 use \PKP\components\forms\FieldText;
20 define(
'FORM_LICENSE',
'license');
41 $licenseUrlOptions = [];
42 foreach ($licenseOptions as $url => $label) {
43 $licenseUrlOptions[] = [
45 'label' => __($label),
48 $licenseUrlOptions[] = [
50 'label' => __(
'manager.distribution.license.other'),
55 'label' => __(
'submission.copyrightHolder'),
58 [
'value' =>
'author',
'label' => __(
'user.role.author')],
59 [
'value' =>
'context',
'label' => __(
'context.context')],
60 [
'value' =>
'other',
'label' => __(
'submission.copyrightHolder.other')],
62 'value' => $context->getData(
'copyrightHolderType'),
64 ->addField(
new FieldText(
'copyrightHolderOther', [
65 'label' => __(
'submission.copyrightOther'),
66 'description' => __(
'submission.copyrightOther.description'),
67 'isMultilingual' =>
true,
68 'showWhen' => [
'copyrightHolderType',
'other'],
69 'value' => $context->getData(
'copyrightHolderOther'),
72 'label' => __(
'manager.distribution.license'),
74 'options' => $licenseUrlOptions,
75 'value' => $context->getData(
'licenseUrl'),
78 'label' => __(
'manager.distribution.licenseTerms'),
79 'tooltip' => __(
'manager.distribution.licenseTerms.description'),
80 'isMultilingual' =>
true,
81 'value' => $context->getData(
'licenseTerms'),
82 'toolbar' =>
'bold italic superscript subscript | link | blockquote bullist numlist',
83 'plugins' =>
'paste,link,lists',