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 icat/doi-landing-page!88
parents bf92585a ddbded35
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) {
.attr('type', 'application/ld+json')
// $('#test').append(
// $('<script>')
// .attr('type', 'application/ld+json')
// .text(data)
// );
var scriptNode = document.createElement('script');
scriptNode.type = 'application/ld+json';
scriptNode.text = data;
// $('<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