Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Maxime Chaillet
doi-landing-page
Commits
01a43643
Commit
01a43643
authored
Oct 16, 2018
by
Maxime Chaillet
Browse files
Reactivate investigationId retrieval. It fixes
icat/doi-landing-page#55
.
parent
dcceb909
Pipeline
#5933
failed with stages
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
www/min/doi.min.js
View file @
01a43643
This diff is collapsed.
Click to expand it.
www/src/jsonextractor.js
View file @
01a43643
...
...
@@ -9,8 +9,7 @@ function JsonExtractor(json) {
*/
JsonExtractor
.
prototype
.
extractInvestigationId
=
function
(
data
)
{
var
regExp
=
RegExp
(
/
\/\w
*-*
[
Ee
][
Ss
][
Rr
][
Ff
]
-
[
Ee
][
Ss
]
-
(\d
+
)
$/
);
//return regExp.exec( data.doi )[1];
return
"
investigationId
"
;
return
regExp
.
exec
(
data
.
doi
)[
1
];
};
/**
...
...
Write
Preview
Markdown
is supported
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