WIP commit for oai master port

This commit is contained in:
Kim Shepherd
2019-01-18 07:30:47 +13:00
parent 04d11924a5
commit e7f39c23b2

View File

@@ -57,6 +57,7 @@ import org.dspace.content.service.ItemService;
import org.dspace.core.ConfigurationManager;
import org.dspace.core.Constants;
import org.dspace.core.Context;
import org.dspace.services.factory.DSpaceServicesFactory;
import org.dspace.xoai.exceptions.CompilingException;
import org.dspace.xoai.services.api.CollectionsService;
import org.dspace.xoai.services.api.cache.XOAICacheService;
@@ -283,6 +284,7 @@ public class XOAI {
throws DSpaceSolrIndexerException {
try {
int i = 0;
int batchSize = configurationService.getIntProperty("oai.import.batch.size", 1000);
SolrServer server = solrServerResolver.getServer();
while (iterator.hasNext()) {
try {