@@ -154,7 +154,8 @@ data Opt = Opt
154 , optWrapText :: Bool -- ^ Wrap text
154 , optWrapText :: Bool -- ^ Wrap text
155 , optSanitizeHTML :: Bool -- ^ Sanitize HTML
155 , optSanitizeHTML :: Bool -- ^ Sanitize HTML
156#ifdef _CITEPROC
156#ifdef _CITEPROC
157− , optModsFile :: String
157+ , optBiblioFile :: String
158+ , optBiblioFormat :: String
158 , optCslFile :: String
159 , optCslFile :: String
@@ -187,7 +188,8 @@ defaultOpts = Opt
187 , optWrapText = True
188 , optWrapText = True
188 , optSanitizeHTML = False
189 , optSanitizeHTML = False
189#ifdef _CITEPROC
190#ifdef _CITEPROC
190− , optModsFile = []
191+ , optBiblioFile = []
192+ , optBiblioFormat = []
191 , optCslFile = []
193 , optCslFile = []
@@ -364,11 +366,16 @@ options =
364 "FORMAT")
366 "FORMAT")
365 "" -- "Print default header for FORMAT"
367 "" -- "Print default header for FORMAT"
366#ifdef _CITEPROC
368#ifdef _CITEPROC
367− , Option "" ["mods"]
369+ , Option "" ["biblio"]
369− (\arg opt -> return opt { optModsFile = arg} )
371+ (\arg opt -> return opt { optBiblioFile = arg} )
370 "FILENAME")
372 "FILENAME")
374+ , Option "" ["biblio-format"]
376+ (\arg opt -> return opt { optBiblioFormat = arg} )
372 , Option "" ["csl"]
379 , Option "" ["csl"]
374 (\arg opt -> return opt { optCslFile = arg} )
381 (\arg opt -> return opt { optCslFile = arg} )
@@ -513,7 +520,8 @@ main = do
513 , optWrapText = wrap
520 , optWrapText = wrap
514 , optSanitizeHTML = sanitize
521 , optSanitizeHTML = sanitize
515#ifdef _CITEPROC
522#ifdef _CITEPROC
516− , optModsFile = modsFile
523+ , optBiblioFile = biblioFile
524+ , optBiblioFormat = biblioFormat
517 , optCslFile = cslFile
525 , optCslFile = cslFile
@@ -566,7 +574,7 @@ main = do
566 let standalone' = (standalone && not strict) || isNonTextOutput writerName'
574 let standalone' = (standalone && not strict) || isNonTextOutput writerName'
568#ifdef _CITEPROC
576#ifdef _CITEPROC
569− refs <- if null modsFile then return [] else readModsColletionFile modsFile
577+ refs <- if null biblioFile then return [] else readBiblioFile biblioFile biblioFormat
572 let startParserState =
580 let startParserState =