Added version number and links to licenses.

HFJ-1734
pull/17/head
Thomas Marstrander 2016-03-31 16:07:45 +02:00
parent 6b31d467a0
commit 4d277b2304
2 changed files with 21 additions and 16 deletions

View File

@ -3617,31 +3617,31 @@ class H5PContentValidator {
), ),
(object) array( (object) array(
'value' => 'CC BY', 'value' => 'CC BY',
'label' => $this->h5pF->t('Attribution') 'label' => $this->h5pF->t('Attribution 4.0')
), ),
(object) array( (object) array(
'value' => 'CC BY-SA', 'value' => 'CC BY-SA',
'label' => $this->h5pF->t('Attribution-ShareAlike') 'label' => $this->h5pF->t('Attribution-ShareAlike 4.0')
), ),
(object) array( (object) array(
'value' => 'CC BY-ND', 'value' => 'CC BY-ND',
'label' => $this->h5pF->t('Attribution-NoDerivs') 'label' => $this->h5pF->t('Attribution-NoDerivs 4.0')
), ),
(object) array( (object) array(
'value' => 'CC BY-NC', 'value' => 'CC BY-NC',
'label' => $this->h5pF->t('Attribution-NonCommercial') 'label' => $this->h5pF->t('Attribution-NonCommercial 4.0')
), ),
(object) array( (object) array(
'value' => 'CC BY-NC-SA', 'value' => 'CC BY-NC-SA',
'label' => $this->h5pF->t('Attribution-NonCommercial-ShareAlike') 'label' => $this->h5pF->t('Attribution-NonCommercial-ShareAlike 4.0')
), ),
(object) array( (object) array(
'value' => 'CC BY-NC-ND', 'value' => 'CC BY-NC-ND',
'label' => $this->h5pF->t('Attribution-NonCommercial-NoDerivs') 'label' => $this->h5pF->t('Attribution-NonCommercial-NoDerivs 4.0')
), ),
(object) array( (object) array(
'value' => 'GNU GPL', 'value' => 'GNU GPL',
'label' => $this->h5pF->t('General Public License') 'label' => $this->h5pF->t('General Public License v3')
), ),
(object) array( (object) array(
'value' => 'PD', 'value' => 'PD',

View File

@ -903,7 +903,12 @@ H5P.Dialog = function (name, title, content, $element) {
self.close(); self.close();
}) })
.end() .end()
.end(); .find('a')
.click(function (e) {
e.stopPropagation();
})
.end()
.end();
this.open = function () { this.open = function () {
setTimeout(function () { setTimeout(function () {
@ -1293,15 +1298,15 @@ H5P.MediaCopyright = function (copyright, labels, order, extraFields) {
*/ */
H5P.copyrightLicenses = { H5P.copyrightLicenses = {
'U': 'Undisclosed', 'U': 'Undisclosed',
'CC BY': 'Attribution', 'CC BY': '<a href="http://creativecommons.org/licenses/by/4.0/legalcode" target="_blank">Attribution 4.0</a>',
'CC BY-SA': 'Attribution-ShareAlike', 'CC BY-SA': '<a href="https://creativecommons.org/licenses/by-sa/4.0/legalcode" target="_blank">Attribution-ShareAlike 4.0</a>',
'CC BY-ND': 'Attribution-NoDerivs', 'CC BY-ND': '<a href="https://creativecommons.org/licenses/by-nd/4.0/legalcode" target="_blank">Attribution-NoDerivs 4.0</a>',
'CC BY-NC': 'Attribution-NonCommercial', 'CC BY-NC': '<a href="https://creativecommons.org/licenses/by-nc/4.0/legalcode" target="_blank">Attribution-NonCommercial 4.0</a>',
'CC BY-NC-SA': 'Attribution-NonCommercial-ShareAlike', 'CC BY-NC-SA': '<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode" target="_blank">Attribution-NonCommercial-ShareAlike 4.0</a>',
'CC BY-NC-ND': 'Attribution-NonCommercial-NoDerivs', 'CC BY-NC-ND': '<a href="https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode" target="_blank">Attribution-NonCommercial-NoDerivs 4.0</a>',
'GNU GPL': 'General Public License', 'GNU GPL': '<a href="http://www.gnu.org/licenses/gpl-3.0-standalone.html" target="_blank">General Public License v3</a>',
'PD': 'Public Domain', 'PD': 'Public Domain',
'ODC PDDL': 'Public Domain Dedication and Licence', 'ODC PDDL': '<a href="http://opendatacommons.org/licenses/pddl/1.0/" target="_blank">Public Domain Dedication and Licence</a>',
'CC PDM': 'Public Domain Mark', 'CC PDM': 'Public Domain Mark',
'C': 'Copyright' 'C': 'Copyright'
}; };