Commit d46a54ae authored by Maxime Chaillet's avatar Maxime Chaillet

Merge branch 'issue72' into 'master'

add script in dom without using jquery. This is a test.

See merge request !88
parents bf92585a ddbded35
Pipeline #10583 passed with stages
in 1 minute and 21 seconds
This diff is collapsed.
......@@ -180,11 +180,16 @@ DOIView.prototype.setDataAccessMessage = function (doiData) {
* @param {string} data doi metadata in Json+LD format as provided by datacite.
*/
DOIView.prototype.addDOIMetadataToHead = function (data) {
$('#test').append(
$('<script>')
.attr('type', 'application/ld+json')
.text(data)
);
// $('#test').append(
// $('<script>')
// .attr('type', 'application/ld+json')
// .text(data)
// );
var scriptNode = document.createElement('script');
scriptNode.type = 'application/ld+json';
scriptNode.text = data;
document.getElementById('test').appendChild(scriptNode);
// $('<script>')
// .attr('type', 'application/ld+json')
......
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