mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 13:03:11 +00:00
DS-3782: Restore lines that should not be modified
This commit is contained in:
@@ -680,6 +680,7 @@ public abstract class DSpaceObjectServiceImpl<T extends DSpaceObject> implements
|
||||
moved.getAuthority(), moved.getConfidence());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void replaceMetadata(Context context, T dso, String schema, String element, String qualifier, String lang,
|
||||
String value, String authority, int confidence, int index) throws SQLException {
|
||||
|
@@ -254,7 +254,7 @@ public class DSpaceAIPDisseminator extends AbstractMETSDisseminator {
|
||||
throws SQLException, IOException, AuthorizeException {
|
||||
String[] dmdTypes = configurationService.getArrayProperty("aip.disseminate.dmd");
|
||||
if (ArrayUtils.isEmpty(dmdTypes)) {
|
||||
return new String[]{"MODS", "DIM"};
|
||||
return new String[] {"MODS", "DIM"};
|
||||
} else {
|
||||
return dmdTypes;
|
||||
}
|
||||
@@ -280,7 +280,7 @@ public class DSpaceAIPDisseminator extends AbstractMETSDisseminator {
|
||||
String[] techTypes = configurationService.getArrayProperty("aip.disseminate.techMD");
|
||||
if (ArrayUtils.isEmpty(techTypes)) {
|
||||
if (dso.getType() == Constants.BITSTREAM) {
|
||||
return new String[]{"PREMIS"};
|
||||
return new String[] {"PREMIS"};
|
||||
} else {
|
||||
return new String[0];
|
||||
}
|
||||
@@ -312,7 +312,7 @@ public class DSpaceAIPDisseminator extends AbstractMETSDisseminator {
|
||||
throws SQLException, IOException, AuthorizeException {
|
||||
String[] sourceTypes = configurationService.getArrayProperty("aip.disseminate.sourceMD");
|
||||
if (ArrayUtils.isEmpty(sourceTypes)) {
|
||||
return new String[]{"AIP-TECHMD"};
|
||||
return new String[] {"AIP-TECHMD"};
|
||||
} else {
|
||||
return sourceTypes;
|
||||
}
|
||||
|
@@ -97,13 +97,12 @@ public class EPersonDAOImpl extends AbstractHibernateDSODAO<EPerson> implements
|
||||
|
||||
List<MetadataField> sortFields = Collections.EMPTY_LIST;
|
||||
|
||||
if (metadataSortField != null) {
|
||||
if (metadataSortField != null) {ItemRestRepositoryIT
|
||||
sortFields = Collections.singletonList(metadataSortField);
|
||||
}
|
||||
|
||||
Query query = getSearchQuery(context, queryString, null, Collections.EMPTY_LIST, sortFields, sortField,
|
||||
pageSize,
|
||||
offset);
|
||||
Query query = getSearchQuery(context, queryString, null, Collections.EMPTY_LIST, sortFields,
|
||||
sortField, pageSize, offset);
|
||||
return list(query);
|
||||
|
||||
}
|
||||
|
@@ -12,7 +12,6 @@ import java.util.Collection;
|
||||
|
||||
import org.apache.commons.collections4.map.MultiValueMap;
|
||||
|
||||
|
||||
/**
|
||||
* Represents a query to a source. Subclasses may enforce stricter typing or more verbose setting of parameters.
|
||||
*
|
||||
|
@@ -17,12 +17,8 @@ import static org.junit.Assert.assertThat;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.fail;
|
||||
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.dspace.core.Constants;
|
||||
import org.dspace.core.Context;
|
||||
import mockit.NonStrictExpectations;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.sql.SQLException;
|
||||
@@ -31,9 +27,13 @@ import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import mockit.NonStrictExpectations;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.dspace.authorize.AuthorizeException;
|
||||
import org.dspace.authorize.ResourcePolicy;
|
||||
import org.dspace.core.Constants;
|
||||
import org.dspace.core.Context;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
Reference in New Issue
Block a user