Package io.goobi.viewer.model.citation
Class CitationTools
java.lang.Object
io.goobi.viewer.model.citation.CitationTools
Utility class providing static helper methods for building and resolving citation links from
Solr documents, supporting record, docstruct, and image level citations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<CitationLink> generateCitationLinksForLevel(List<CitationLink> allLinks, CitationLink.CitationLinkLevel level, ViewManager viewManager) static de.undercouch.citeproc.csl.CSLTypegetCSLTypeForDocstrct(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- all configured citation links across all levelslevel- the citation link level to filter and populateviewManager- ViewManager for the current record- Returns:
- Subset of allLinks that corresponds given level, populated with values
- Throws:
IndexUnreachableExceptionPresentationException
-
getCSLTypeForDocstrct
public static de.undercouch.citeproc.csl.CSLType getCSLTypeForDocstrct(String docstruct, String topstruct) - Parameters:
docstruct- docstruct type name of the current structure elementtopstruct- docstruct type name of the top-level structure element- Returns:
- CLSType for the given docstruct; default value if none mapped
-