Revision 52036
Added by Miriam Baglioni over 6 years ago
modules/dnet-collector-plugins/trunk/src/main/java/eu/dnetlib/data/collector/plugins/HTTPWithFileName/HTTPWithFileNameCollectorIterable.java | ||
---|---|---|
37 | 37 |
if(isJson) |
38 | 38 |
meta = meta.substring(0, meta.length() - 1) + ",'downloadFileUrl':'" + path.substring(0, path.indexOf(".json")) + ".pdf'}"; |
39 | 39 |
else{ |
40 |
if (meta.startsWith("<!DOCTYPE")) |
|
41 |
meta = meta.substring(meta.indexOf(">")+1); |
|
40 | 42 |
int index = meta.lastIndexOf("</"); |
41 | 43 |
meta = meta.substring(0, index) + "<downloadFileUrl>" + path.substring(0, path.indexOf(".xml")) + ".pdf</downloadFileUrl>" + meta.substring(index); |
42 | 44 |
} |
Also available in: Unified diff
removed DOCTYPE from xml metadata document