mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-12 20:43:18 +00:00
Always make item removal update the browse tables (may have entries in 'admin' tables).
git-svn-id: http://scm.dspace.org/svn/repo/trunk@2213 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -1697,22 +1697,22 @@ public class Item extends DSpaceObject
|
|||||||
** and the DB transaction will fail.
|
** and the DB transaction will fail.
|
||||||
** Any fix would involve too much work on Browse code that
|
** Any fix would involve too much work on Browse code that
|
||||||
** is likely to be replaced soon anyway. --lcs, Aug 2006
|
** 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
|
// FIXME: there is an exception handling problem here
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Remove from indicies
|
// Remove from indicies
|
||||||
IndexBrowse ib = new IndexBrowse(ourContext);
|
IndexBrowse ib = new IndexBrowse(ourContext);
|
||||||
ib.itemRemoved(this);
|
ib.itemRemoved(this);
|
||||||
}
|
}
|
||||||
catch (BrowseException e)
|
catch (BrowseException e)
|
||||||
{
|
{
|
||||||
log.error("caught exception: ", e);
|
log.error("caught exception: ", e);
|
||||||
throw new SQLException(e.getMessage());
|
throw new SQLException(e.getMessage());
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete the Dublin Core
|
// Delete the Dublin Core
|
||||||
|
Reference in New Issue
Block a user