Package io.goobi.viewer.model.citation
Class Citation
java.lang.Object
io.goobi.viewer.model.citation.Citation
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 Summary
Constructors -
Method Summary
-
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 identifierprocessor- the CSL citation processoritemDataProvider- provider used to register item datatype- the CSL document typefields- Map containing metadata fields
-
-
Method Details
-
getCitationString
- Parameters:
outputFormat- the CSL output format (e.g. "html" or "text")- Returns:
- Citation string
-