Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Maxime Chaillet
doi-landing-page
Commits
93dd37e8
Commit
93dd37e8
authored
Apr 15, 2019
by
Maxime Chaillet
Browse files
replace appendTo() with append(). This is a test.
parent
256c656b
Pipeline
#10313
canceled with stages
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
www/min/doi.min.js
View file @
93dd37e8
This diff is collapsed.
Click to expand it.
www/src/doiview.js
View file @
93dd37e8
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment