Commit 14194725 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

Fixing minor collection/endpoint sync glitch

parent 4e5a837a
Pipeline #16248 passed with stages
in 4 minutes and 45 seconds
......@@ -335,13 +335,16 @@ public class CollectionSyncClient extends BaseApiClientImpl<CollectionApiPojo, E
e.setAccessType(accessPojo.getType());
e.setFileType(accessPojo.getSubtype());
if (accessPojo.getType().equals(AccessMethods.FILE.toString()) ||
accessPojo.getType().equals(AccessMethods.OAI_PMH.toString()) ||
accessPojo.getType().equals(AccessMethods.OPAC.toString())) {
e.setFileType("XML");
} else if (accessPojo.getType().equals(AccessMethods.GIT.toString())) {
e.setFileType("Text");
if (e.getFileType()==null) {
if (accessPojo.getType().equals(AccessMethods.FILE.toString()) ||
accessPojo.getType().equals(AccessMethods.OAI_PMH.toString()) ||
accessPojo.getType().equals(AccessMethods.OPAC.toString())) {
e.setFileType("XML");
} else if (accessPojo.getType().equals(AccessMethods.GIT.toString())) {
e.setFileType("TEXT");
}
}
e.setSet(accessPojo.getSet());
e.setUrl(accessPojo.getUri());
e.setPatterns(accessPojo.getPatterns());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment