Minor bug fixes to fix Travis Unit Test errors

This commit is contained in:
Tim Donohue
2016-07-18 13:25:38 -05:00
parent a2704fe1f6
commit 1399f08138

View File

@@ -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"))