Package io.goobi.viewer.model.citation
Class CitationTools
java.lang.Object
io.goobi.viewer.model.citation.CitationTools
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<CitationLink>
generateCitationLinksForLevel
(List<CitationLink> allLinks, CitationLink.CitationLinkLevel level, ViewManager viewManager) static de.undercouch.citeproc.csl.CSLType
getCSLTypeForDocstrct
(String docstruct, String topstruct)
-
Method Details
-
generateCitationLinksForLevel
public static List<CitationLink> generateCitationLinksForLevel(List<CitationLink> allLinks, CitationLink.CitationLinkLevel level, ViewManager viewManager) throws PresentationException, IndexUnreachableException - Parameters:
allLinks
-level
-viewManager
-- Returns:
- Subset of allLinks that corresponds given level, populated with values
- Throws:
IndexUnreachableException
PresentationException
-
getCSLTypeForDocstrct
public static de.undercouch.citeproc.csl.CSLType getCSLTypeForDocstrct(String docstruct, String topstruct) - Parameters:
docstruct
-topstruct
-- Returns:
- CLSType for the given docstruct; default value if none mapped
-