HFP-2052 Make changes requested in UX review
- Add link for source - Change URLs for licensespull/52/head
parent
367763a215
commit
e179ec2934
14
js/h5p.js
14
js/h5p.js
|
@ -1096,7 +1096,7 @@ H5P.buildMetadataCopyrights = function (metadata, contentTypeName) {
|
||||||
var dataset = {
|
var dataset = {
|
||||||
title: metadata.title,
|
title: metadata.title,
|
||||||
author: (metadata.authors && metadata.authors.length > 0) ? metadata.authors.map(function(author) {return author.name + ' (' + author.role + ')';}).join(', ') : undefined,
|
author: (metadata.authors && metadata.authors.length > 0) ? metadata.authors.map(function(author) {return author.name + ' (' + author.role + ')';}).join(', ') : undefined,
|
||||||
source: metadata.source,
|
source: '<a href="' + metadata.source + '" target="_blank">' + metadata.source + '</a>',
|
||||||
year: (metadata.yearFrom) ? (metadata.yearFrom + ((metadata.yearTo) ? '-' + metadata.yearTo: '')) : undefined,
|
year: (metadata.yearFrom) ? (metadata.yearFrom + ((metadata.yearTo) ? '-' + metadata.yearTo: '')) : undefined,
|
||||||
license: metadata.license,
|
license: metadata.license,
|
||||||
version: metadata.licenseVersion,
|
version: metadata.licenseVersion,
|
||||||
|
@ -2136,32 +2136,32 @@ H5P.createTitle = function (rawTitle, maxLength) {
|
||||||
'U': H5P.t('licenseU'),
|
'U': H5P.t('licenseU'),
|
||||||
'CC BY': {
|
'CC BY': {
|
||||||
label: H5P.t('licenseCCBY'),
|
label: H5P.t('licenseCCBY'),
|
||||||
link: 'http://creativecommons.org/licenses/by/:version/legalcode',
|
link: 'http://creativecommons.org/licenses/by/:version',
|
||||||
versions: ccVersions
|
versions: ccVersions
|
||||||
},
|
},
|
||||||
'CC BY-SA': {
|
'CC BY-SA': {
|
||||||
label: H5P.t('licenseCCBYSA'),
|
label: H5P.t('licenseCCBYSA'),
|
||||||
link: 'http://creativecommons.org/licenses/by-sa/:version/legalcode',
|
link: 'http://creativecommons.org/licenses/by-sa/:version',
|
||||||
versions: ccVersions
|
versions: ccVersions
|
||||||
},
|
},
|
||||||
'CC BY-ND': {
|
'CC BY-ND': {
|
||||||
label: H5P.t('licenseCCBYND'),
|
label: H5P.t('licenseCCBYND'),
|
||||||
link: 'http://creativecommons.org/licenses/by-nd/:version/legalcode',
|
link: 'http://creativecommons.org/licenses/by-nd/:version',
|
||||||
versions: ccVersions
|
versions: ccVersions
|
||||||
},
|
},
|
||||||
'CC BY-NC': {
|
'CC BY-NC': {
|
||||||
label: H5P.t('licenseCCBYNC'),
|
label: H5P.t('licenseCCBYNC'),
|
||||||
link: 'http://creativecommons.org/licenses/by-nc/:version/legalcode',
|
link: 'http://creativecommons.org/licenses/by-nc/:version',
|
||||||
versions: ccVersions
|
versions: ccVersions
|
||||||
},
|
},
|
||||||
'CC BY-NC-SA': {
|
'CC BY-NC-SA': {
|
||||||
label: H5P.t('licenseCCBYNCSA'),
|
label: H5P.t('licenseCCBYNCSA'),
|
||||||
link: 'http://creativecommons.org/licenses/by-nc-sa/:version/legalcode',
|
link: 'http://creativecommons.org/licenses/by-nc-sa/:version',
|
||||||
versions: ccVersions
|
versions: ccVersions
|
||||||
},
|
},
|
||||||
'CC BY-NC-ND': {
|
'CC BY-NC-ND': {
|
||||||
label: H5P.t('licenseCCBYNCND'),
|
label: H5P.t('licenseCCBYNCND'),
|
||||||
link: 'http://creativecommons.org/licenses/by-nc-nd/:version/legalcode',
|
link: 'http://creativecommons.org/licenses/by-nc-nd/:version',
|
||||||
versions: ccVersions
|
versions: ccVersions
|
||||||
},
|
},
|
||||||
'CC0 1.0': {
|
'CC0 1.0': {
|
||||||
|
|
Loading…
Reference in New Issue