mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 23:13:10 +00:00
Minor bug fixes to fix Travis Unit Test errors
This commit is contained in:
@@ -62,6 +62,7 @@ public class InstallItemServiceImpl implements InstallItemService
|
|||||||
AuthorizeException
|
AuthorizeException
|
||||||
{
|
{
|
||||||
Item item = is.getItem();
|
Item item = is.getItem();
|
||||||
|
Collection collection = is.getCollection();
|
||||||
try {
|
try {
|
||||||
if(suppliedHandle == null)
|
if(suppliedHandle == null)
|
||||||
{
|
{
|
||||||
@@ -81,7 +82,7 @@ public class InstallItemServiceImpl implements InstallItemService
|
|||||||
// As this is a BRAND NEW item, as a final step we need to remove the
|
// As this is a BRAND NEW item, as a final step we need to remove the
|
||||||
// submitter item policies created during deposit and replace them with
|
// submitter item policies created during deposit and replace them with
|
||||||
// the default policies from the collection.
|
// the default policies from the collection.
|
||||||
itemService.inheritCollectionDefaultPolicies(c, item, is.getCollection());
|
itemService.inheritCollectionDefaultPolicies(c, item, collection);
|
||||||
|
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
@@ -182,7 +183,7 @@ public class InstallItemServiceImpl implements InstallItemService
|
|||||||
|
|
||||||
// If an issue date was passed in and it wasn't set to "today" (literal string)
|
// If an issue date was passed in and it wasn't set to "today" (literal string)
|
||||||
// then note this previous issue date in provenance message
|
// then note this previous issue date in provenance message
|
||||||
if (currentDateIssued.isEmpty())
|
if (!currentDateIssued.isEmpty())
|
||||||
{
|
{
|
||||||
String previousDateIssued = currentDateIssued.get(0).getValue();
|
String previousDateIssued = currentDateIssued.get(0).getValue();
|
||||||
if(previousDateIssued!=null && !previousDateIssued.equalsIgnoreCase("today"))
|
if(previousDateIssued!=null && !previousDateIssued.equalsIgnoreCase("today"))
|
||||||
|
Reference in New Issue
Block a user