Update metadata for a given DOI Identifier or an Item or a Handle

This commit is contained in:
Marsa Haoua
2013-09-04 15:13:02 +02:00
committed by Pascal-Nicolas Becker
parent 66be510a64
commit edc4ceaa28
4 changed files with 201 additions and 14 deletions

View File

@@ -377,6 +377,18 @@ public class DOIIdentifierProvider
}
public void updateMetadata(Context context, DSpaceObject dso, String identifier )
throws IdentifierException
{
String doi = formatIdentifier(identifier);
if(connector.updateMetadata(context, dso, doi))
return;
throw new IdentifierException("it wasn't possible to update metadata for "
+ "the DOI" + identifier + ". Take a look into the logs"
+ " for further details.");
}
@Override
public String mint(Context context, DSpaceObject dso)
throws IdentifierException