Fix issues with external sources

This commit is contained in:
George Kalampokis 2021-10-08 12:14:09 +03:00
parent 1d48ee81b9
commit 0e97e6c0a8
2 changed files with 4 additions and 4 deletions

View File

@ -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);
} // }
} }
} }
} }

View File

@ -806,7 +806,7 @@
<type>External</type> <type>External</type>
<url>https://api.ror.org/organizations?query={like}&amp;page={page}</url> <url>https://api.ror.org/organizations?query={like}&amp;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>