diff --git a/dspace-api/src/main/java/org/dspace/content/Item.java b/dspace-api/src/main/java/org/dspace/content/Item.java index 4a01b63f56..06ff58f78a 100644 --- a/dspace-api/src/main/java/org/dspace/content/Item.java +++ b/dspace-api/src/main/java/org/dspace/content/Item.java @@ -1697,22 +1697,22 @@ public class Item extends DSpaceObject ** and the DB transaction will fail. ** Any fix would involve too much work on Browse code that ** is likely to be replaced soon anyway. --lcs, Aug 2006 + ** + ** NB Do not check to see if the item is archived - withdrawn / + ** non-archived items may still be tracked in some browse tables + ** for administrative purposes, and these need to be removed. **/ - if (isArchived()) - { // FIXME: there is an exception handling problem here - try - { + try + { // Remove from indicies - IndexBrowse ib = new IndexBrowse(ourContext); - ib.itemRemoved(this); - } - catch (BrowseException e) - { - log.error("caught exception: ", e); - throw new SQLException(e.getMessage()); - } - + IndexBrowse ib = new IndexBrowse(ourContext); + ib.itemRemoved(this); + } + catch (BrowseException e) + { + log.error("caught exception: ", e); + throw new SQLException(e.getMessage()); } // Delete the Dublin Core