Class Citation

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

public class Citation extends Object
Represents a formatted citation for a digitized record, wrapping a CSL citation processor with item metadata to generate bibliography output in a given citation style.
  • Constructor Details

    • Citation

      public Citation(String id, de.undercouch.citeproc.CSL processor, CitationDataProvider itemDataProvider, de.undercouch.citeproc.csl.CSLType type, Map<String,List<String>> fields)
      Constructor.
      Parameters:
      id - unique citation identifier
      processor - the CSL citation processor
      itemDataProvider - provider used to register item data
      type - the CSL document type
      fields - Map containing metadata fields
  • Method Details

    • getCitationString

      public String getCitationString(String outputFormat)
      Parameters:
      outputFormat - the CSL output format (e.g. "html" or "text")
      Returns:
      Citation string