Pārlūkot izejas kodu

Adjusting idLabel parsing to work for studyId less entries

Andrej Studen 1 gadu atpakaļ
vecāks
revīzija
2a647999db
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      web/crf/crfSetup.js

+ 2 - 1
web/crf/crfSetup.js

@@ -152,7 +152,8 @@ function(entry){
 
 crfSetup.getStudyId=
 function(label){
-   return label.replace(/ \([^\)]*\)/,"");
+   this.print('getStudyId: label ['+label+']');
+   return label.replace(/ ?\([^\)]*\)/,"");
 }
 
 crfSetup.getLocalId=