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) {
|
||||
if (source != null) {
|
||||
String content = source.get("content");
|
||||
if (isTitle) {
|
||||
/*if (isTitle) {
|
||||
String classId = source.get("classid");
|
||||
if (classId.equals("main title")) {
|
||||
destination.put(key, content);
|
||||
}
|
||||
} else {
|
||||
} else {*/
|
||||
destination.put(key, content);
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -806,7 +806,7 @@
|
|||
<type>External</type>
|
||||
<url>https://api.ror.org/organizations?query={like}&page={page}</url>
|
||||
<firstPage>1</firstPage>
|
||||
<contenttype>application/vnd.api+json; charset=utf-8</contenttype>
|
||||
<contenttype>application/json; charset=utf-8</contenttype>
|
||||
<data>
|
||||
<path>$['items'][*]</path>
|
||||
<fields>
|
||||
|
|
Loading…
Reference in New Issue