Class CitationTools

java.lang.Object
io.goobi.viewer.model.citation.CitationTools

public final class CitationTools extends Object
Utility class providing static helper methods for building and resolving citation links from Solr documents, supporting record, docstruct, and image level citations.
  • 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 levels
      level - the citation link level to filter and populate
      viewManager - ViewManager for the current record
      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 - docstruct type name of the current structure element
      topstruct - docstruct type name of the top-level structure element
      Returns:
      CLSType for the given docstruct; default value if none mapped