Commit 93dd37e8 authored by Maxime Chaillet's avatar Maxime Chaillet

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

parent 256c656b
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