GitLab will be upgraded on June 23th evening. During the upgrade the service will be unavailable, sorry for the inconvenience.

Commit 5be9a747 authored by Maxime Chaillet's avatar Maxime Chaillet

Merge branch 'issue72' into 'master'

replace appendTo() with append(). This is a test.

See merge request icat/doi-landing-page!84
parents 256c656b 93dd37e8
This diff is collapsed.
......@@ -150,7 +150,7 @@ DOIView.prototype.renderMetadata = function (data) {
if (data) {
var _this = this;
data.sessionDate = moment(data.sessionDate).format('YYYY-M-D');
dust.render('metadata_tpl', {
data: data,
constants: CONSTANTS
......@@ -180,8 +180,12 @@ DOIView.prototype.setDataAccessMessage = function (doiData) {
* @param {string} data doi metadata in Json+LD format as provided by datacite.
*/
DOIView.prototype.addDOIMetadataToHead = function (data) {
$('<script>')
$('head').append('<script>')
.attr('type', 'application/ld+json')
.text(data)
.appendTo('head');
.text(data);
// $('<script>')
// .attr('type', 'application/ld+json')
// .text(data)
// .appendTo('head');
};
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment