Added DOI.RESOLVER instead of using "http://dx.doi.org" everywhere.

This commit is contained in:
Pascal-Nicolas Becker
2013-10-04 12:28:40 +02:00
parent 1dd5538d3b
commit 3504fb73de
3 changed files with 10 additions and 8 deletions

View File

@@ -851,7 +851,7 @@ public class DOIIdentifierProvider
DCValue[] metadata = item.getMetadata(MD_SCHEMA, DOI_ELEMENT, DOI_QUALIFIER, null);
for (DCValue id : metadata)
{
if (id.value.startsWith("http://dx.doi.org/10."))
if (id.value.startsWith(DOI.RESOLVER + "/10."))
{
return DOI.DOIFromExternalFormat(id.value);
}