Package org.mycore.orcid.works
Class MCRWorksSection
java.lang.Object
org.mycore.orcid.works.MCRWorksSection
Represents the "works" section of an ORCID profile with grouped works
- Author:
- Frank Lützenkirchen
-
Constructor Summary
ConstructorDescriptionMCRWorksSection
(MCRORCIDProfile orcid) Creates a representation of the ORCID's works section and fetches the grouping of works and the work summaries -
Method Summary
Modifier and TypeMethodDescriptionaddWorkFrom
(MCRObjectID objectID) Adds a new "work" to the remote ORCID profile.Returns a mods:modsCollection containing all MODS representations of the works.boolean
boolean
containsWork
(MCRObjectID oid) Returns true, if there is a work in the ORCID profile that's origin is the given MyCoRe objectvoid
Fetches the work details for all work summaries from the ORCID profile.findOwnWork
(MCRObject obj) findOwnWork
(MCRObjectID oid) findWork
(MCRObjectID oid) Returns the work originating from the given local object, if any.Returns the list of grouped works after fetching work summaries.getORCID()
Returns the work with the given put code, if anygetWorks()
Returns all works in the ORCID profile that have been added by ths MyCoRe applicationvoid
Fetches the grouping of works and all work summaries from the ORCID profile.
-
Constructor Details
-
MCRWorksSection
Creates a representation of the ORCID's works section and fetches the grouping of works and the work summaries- Throws:
JDOMException
IOException
SAXException
-
-
Method Details
-
getORCID
-
getWorks
-
getWork
Returns the work with the given put code, if any -
getGroups
Returns the list of grouped works after fetching work summaries. Multiple works from different sources which are assumed to represent the same publication are grouped together by ORCID. -
buildMODSCollection
Returns a mods:modsCollection containing all MODS representations of the works. The MODS from multiple works within the same groups is merged together, so for each group of works there will be a single mods within the collection. -
buildUnmergedMODSCollection
-
refetchGroupsAndSummaries
Fetches the grouping of works and all work summaries from the ORCID profile. Can be called to refresh information on grouping to find out how grouping of works may have changed after adding or deleting works.- Throws:
JDOMException
IOException
SAXException
-
fetchDetails
Fetches the work details for all work summaries from the ORCID profile.- Throws:
IOException
JDOMException
SAXException
-
addWorkFrom
Adds a new "work" to the remote ORCID profile. The publication data is taken from the MODS stored in the MyCoRe object with the given ID.- Throws:
IOException
JDOMException
SAXException
-
findWork
Returns the work originating from the given local object, if any. This is done by comparing the ID and all mods:identifier elements given in the MyCoRe MODS object with the identifiers given in the ORCID work. -
findWork
-
findOwnWork
-
findOwnWork
-
findWorks
-
containsWork
Returns true, if there is a work in the ORCID profile that's origin is the given MyCoRe object -
containsOwnWork
-
getWorksFromThisApplication
Returns all works in the ORCID profile that have been added by ths MyCoRe application
-