File tree Expand file tree Collapse file tree
src/main/java/io/github/ilri/cgspace/ctasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,19 +78,19 @@ public int perform(DSpaceObject dso) throws IOException {
7878 }
7979
8080 private static String getNormalizedDOI (MetadataValue itemDOI ) {
81- // 1. Convert to lowercase
81+ // Convert to lowercase
8282 String newDOI = itemDOI .getValue ().toLowerCase ();
83- // 2. Strip leading and trailing whitespace
83+ // Strip leading and trailing whitespace
8484 newDOI = newDOI .strip ();
85- // 3. Convert to HTTPS
85+ // Convert to HTTPS
8686 newDOI = newDOI .replace ("http://" , "https://" );
87- // 4. Prefer doi.org to dx.doi.org
87+ // Prefer doi.org to dx.doi.org
8888 newDOI = newDOI .replace ("dx.doi.org" , "doi.org" );
89- // 5. Prefer doi.org to www.doi.org
89+ // Prefer doi.org to www.doi.org
9090 newDOI = newDOI .replace ("www.doi.org" , "doi.org" );
91- // 6. Replace values like doi: 10.11648/j.jps.20140201.14
91+ // Replace values like doi: 10.11648/j.jps.20140201.14
9292 newDOI = newDOI .replaceAll ("^doi: 10\\ ." , "https://doi.org/10." );
93- // 7. Replace values like 10.3390/foods12010115
93+ // Replace values like 10.3390/foods12010115
9494 newDOI = newDOI .replaceAll ("^10\\ ." , "https://doi.org/10." );
9595
9696 return newDOI ;
You can’t perform that action at this time.
0 commit comments