mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 13:03:11 +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,9 +1697,11 @@ 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
|
||||||
{
|
{
|
||||||
@@ -1713,8 +1715,6 @@ public class Item extends DSpaceObject
|
|||||||
throw new SQLException(e.getMessage());
|
throw new SQLException(e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete the Dublin Core
|
// Delete the Dublin Core
|
||||||
removeMetadataFromDatabase();
|
removeMetadataFromDatabase();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user