Fix issues with external sources
This commit is contained in:
parent
1d48ee81b9
commit
0e97e6c0a8
|
@ -528,14 +528,14 @@ public class RemoteFetcher {
|
||||||
private void mapToMap(String key, Map<String, String> source, Map<String, String> destination, boolean isTitle) {
|
private void mapToMap(String key, Map<String, String> source, Map<String, String> destination, boolean isTitle) {
|
||||||
if (source != null) {
|
if (source != null) {
|
||||||
String content = source.get("content");
|
String content = source.get("content");
|
||||||
if (isTitle) {
|
/*if (isTitle) {
|
||||||
String classId = source.get("classid");
|
String classId = source.get("classid");
|
||||||
if (classId.equals("main title")) {
|
if (classId.equals("main title")) {
|
||||||
destination.put(key, content);
|
destination.put(key, content);
|
||||||
}
|
}
|
||||||
} else {
|
} else {*/
|
||||||
destination.put(key, content);
|
destination.put(key, content);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -806,7 +806,7 @@
|
||||||
<type>External</type>
|
<type>External</type>
|
||||||
<url>https://api.ror.org/organizations?query={like}&page={page}</url>
|
<url>https://api.ror.org/organizations?query={like}&page={page}</url>
|
||||||
<firstPage>1</firstPage>
|
<firstPage>1</firstPage>
|
||||||
<contenttype>application/vnd.api+json; charset=utf-8</contenttype>
|
<contenttype>application/json; charset=utf-8</contenttype>
|
||||||
<data>
|
<data>
|
||||||
<path>$['items'][*]</path>
|
<path>$['items'][*]</path>
|
||||||
<fields>
|
<fields>
|
||||||
|
|
Loading…
Reference in New Issue