HFP-2074 Add optgroup to Creative Commons licenses in metadata dialog.

pull/52/head
thomasmars 2018-06-26 10:51:48 +02:00
parent 4d286b0bdb
commit d963a23a15
1 changed files with 42 additions and 36 deletions

View File

@ -4169,42 +4169,48 @@ class H5PContentValidator {
'label' => $this->h5pF->t('Undisclosed') 'label' => $this->h5pF->t('Undisclosed')
), ),
(object) array( (object) array(
'value' => 'CC BY', 'type' => 'optgroup',
'label' => $this->h5pF->t('CC Attribution'), 'label' => $this->h5pF->t('Creative Commons'),
'versions' => $cc_versions 'options' => [
), (object) array(
(object) array( 'value' => 'CC BY',
'value' => 'CC BY-SA', 'label' => $this->h5pF->t('CC Attribution'),
'label' => $this->h5pF->t('CC Attribution-ShareAlike'), 'versions' => $cc_versions
'versions' => $cc_versions ),
), (object) array(
(object) array( 'value' => 'CC BY-SA',
'value' => 'CC BY-ND', 'label' => $this->h5pF->t('CC Attribution-ShareAlike'),
'label' => $this->h5pF->t('CC Attribution-NoDerivs'), 'versions' => $cc_versions
'versions' => $cc_versions ),
), (object) array(
(object) array( 'value' => 'CC BY-ND',
'value' => 'CC BY-NC', 'label' => $this->h5pF->t('CC Attribution-NoDerivs'),
'label' => $this->h5pF->t('CC Attribution-NonCommercial'), 'versions' => $cc_versions
'versions' => $cc_versions ),
), (object) array(
(object) array( 'value' => 'CC BY-NC',
'value' => 'CC BY-NC-SA', 'label' => $this->h5pF->t('CC Attribution-NonCommercial'),
'label' => $this->h5pF->t('CC Attribution-NonCommercial-ShareAlike'), 'versions' => $cc_versions
'versions' => $cc_versions ),
), (object) array(
(object) array( 'value' => 'CC BY-NC-SA',
'value' => 'CC BY-NC-ND', 'label' => $this->h5pF->t('CC Attribution-NonCommercial-ShareAlike'),
'label' => $this->h5pF->t('CC Attribution-NonCommercial-NoDerivs'), 'versions' => $cc_versions
'versions' => $cc_versions ),
), (object) array(
(object) array( 'value' => 'CC BY-NC-ND',
'value' => 'CC0 1.0', 'label' => $this->h5pF->t('CC Attribution-NonCommercial-NoDerivs'),
'label' => $this->h5pF->t('CC Public Domain Dedication') 'versions' => $cc_versions
), ),
(object) array( (object) array(
'value' => 'CC PDM', 'value' => 'CC0 1.0',
'label' => $this->h5pF->t('Public Domain Mark') 'label' => $this->h5pF->t('CC Public Domain Dedication')
),
(object) array(
'value' => 'CC PDM',
'label' => $this->h5pF->t('Public Domain Mark')
),
]
), ),
(object) array( (object) array(
'value' => 'GNU GPL', 'value' => 'GNU GPL',