Commit f9954d6d authored by Maxime Chaillet's avatar Maxime Chaillet

Merge branch 'issue26' into 'master'

change index to retrieve the match result for investigation id.

See merge request !30
parents 250566f2 bce8f4d8
This diff is collapsed.
......@@ -167,5 +167,5 @@ function extractFieldsFromCategories(data) {
function extractFieldsFromDoi(data) {
//extract the investigationId from the doi.
var regExp = RegExp(/\/\w*-*[Ee][Ss][Rr][Ff]-[Ee][Ss]-(\d+)$/);
data.investigationId = regExp.exec(data.DOI)[2];
data.investigationId = regExp.exec(data.DOI)[1];
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