Commit 74b6f2b2 authored by Maxime Chaillet's avatar Maxime Chaillet

Merge branch 'issue72' into 'master'

Fix append() method. This is a test.

See merge request !85
parents 5be9a747 d587728b
Pipeline #10316 passed with stages
in 1 minute and 15 seconds
This diff is collapsed.
...@@ -180,9 +180,11 @@ DOIView.prototype.setDataAccessMessage = function (doiData) { ...@@ -180,9 +180,11 @@ DOIView.prototype.setDataAccessMessage = function (doiData) {
* @param {string} data doi metadata in Json+LD format as provided by datacite. * @param {string} data doi metadata in Json+LD format as provided by datacite.
*/ */
DOIView.prototype.addDOIMetadataToHead = function (data) { DOIView.prototype.addDOIMetadataToHead = function (data) {
$('head').append('<script>') $('head').append(
.attr('type', 'application/ld+json') $('<script>')
.text(data); .attr('type', 'application/ld+json')
.text(data)
);
// $('<script>') // $('<script>')
// .attr('type', 'application/ld+json') // .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