Class CrossrefCreateAndLinkResourceProvider
- java.lang.Object
-
- org.vivoweb.webapp.createandlink.crossref.CrossrefCreateAndLinkResourceProvider
-
- All Implemented Interfaces:
CreateAndLinkResourceProvider
public class CrossrefCreateAndLinkResourceProvider extends Object implements CreateAndLinkResourceProvider
Provider for looking up DOIs in CrossRef
-
-
Constructor Summary
Constructors Constructor Description CrossrefCreateAndLinkResourceProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalIdentifiersallExternalIDsForFind(String externalId)Resolve the DOI into other external identifiersStringfindInExternal(String id, Citation citation)Look up the DOI in CrossRef, and populate a citation objectStringgetLabel()Label for the UIResourceModelmakeResourceModel(String externalId, String externalResource)Create an internmediate model of the external resource (JSON string)Stringnormalize(String id)Make a normalized version of the ID
-
-
-
Method Detail
-
normalize
public String normalize(String id)
Make a normalized version of the ID- Specified by:
normalizein interfaceCreateAndLinkResourceProvider- Parameters:
id-- Returns:
-
getLabel
public String getLabel()
Label for the UI- Specified by:
getLabelin interfaceCreateAndLinkResourceProvider- Returns:
-
allExternalIDsForFind
public ExternalIdentifiers allExternalIDsForFind(String externalId)
Resolve the DOI into other external identifiers- Specified by:
allExternalIDsForFindin interfaceCreateAndLinkResourceProvider- Parameters:
externalId-- Returns:
-
findInExternal
public String findInExternal(String id, Citation citation)
Look up the DOI in CrossRef, and populate a citation object- Specified by:
findInExternalin interfaceCreateAndLinkResourceProvider- Parameters:
id-citation-- Returns:
-
makeResourceModel
public ResourceModel makeResourceModel(String externalId, String externalResource)
Create an internmediate model of the external resource (JSON string)- Specified by:
makeResourceModelin interfaceCreateAndLinkResourceProvider- Parameters:
externalId-externalResource-- Returns:
-
-