diff --git a/js/h5p.js b/js/h5p.js index dc50cd4..5579751 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -1096,7 +1096,7 @@ H5P.buildMetadataCopyrights = function (metadata, contentTypeName) { var dataset = { title: metadata.title, author: (metadata.authors && metadata.authors.length > 0) ? metadata.authors.map(function(author) {return author.name + ' (' + author.role + ')';}).join(', ') : undefined, - source: '' + metadata.source + '', + source: (metadata.source) ? '' + metadata.source + '' : undefined, year: (metadata.yearFrom) ? (metadata.yearFrom + ((metadata.yearTo) ? '-' + metadata.yearTo: '')) : undefined, license: metadata.license, version: metadata.licenseVersion,