File tree 1 file changed +3
-1
lines changed
src/main/java/io/github/ilri/cgspace/ctasks
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 29
29
* TODO: allow operation on communities and collections (currently only works on items)
30
30
*
31
31
* @author Alan Orth for the International Livestock Research Institute
32
- * @version 7.6.1.2
32
+ * @version 7.6.1.3
33
33
* @since 7.6.1.1
34
34
*/
35
35
@ Suspendable
@@ -88,6 +88,8 @@ private static String getNormalizedDOI(MetadataValue itemDOI) {
88
88
newDOI = newDOI .replace ("dx.doi.org" , "doi.org" );
89
89
// Prefer doi.org to www.doi.org
90
90
newDOI = newDOI .replace ("www.doi.org" , "doi.org" );
91
+ // Fix URL encoded slashes (%2f)
92
+ newDOI = newDOI .replace ("%2f" , "/" );
91
93
// Replace values like doi: 10.11648/j.jps.20140201.14
92
94
newDOI = newDOI .replaceAll ("^doi: 10\\ ." , "https://doi.org/10." );
93
95
// Replace values like 10.3390/foods12010115
You can’t perform that action at this time.
0 commit comments