//Check if we have a history for the item
VersioningService versioningService = new DSpace().getSingletonService(VersioningService.class);
VersionHistory history = versioningService.findVersionHistory(context, item.getID());
if(history != null){
Version latestVersion = retrieveLatestVersion(history, item);
if(latestVersion != null && latestVersion.getItemID() != item.getID())
{
//We have a newer version
Item latestVersionItem = latestVersion.getItem();
if(latestVersionItem.isArchived())
{
//Available, add a link for the user alerting him that a new version is available
addVersionNotice(mainDivision, latestVersionItem, T_new_version_head, T_new_version_help, true);
}else{