Commit bce8f4d8 authored by Maxime Chaillet's avatar Maxime Chaillet

change index to retrieve the match result for investigation id.

parent 250566f2
Pipeline #2252 failed with stages
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