JATS writer: don't include jats.csl in metadata if csl already specified.
This commit is contained in:
parent
8a3ef99882
commit
80c3c93273
1 changed files with 3 additions and 1 deletions
|
@ -404,7 +404,9 @@ convertWithOpts opts = do
|
|||
withMediaBag . r readerOpts) sources
|
||||
return (mconcat (map fst pairs), mconcat (map snd pairs))
|
||||
|
||||
metadata <- if format == "jats"
|
||||
metadata <- if format == "jats" &&
|
||||
lookup "csl" (optMetadata opts) == Nothing &&
|
||||
lookup "citation-style" (optMetadata opts) == Nothing
|
||||
then do
|
||||
jatsCSL <- readDataFile datadir "jats.csl"
|
||||
let jatsEncoded = makeDataURI ("application/xml", jatsCSL)
|
||||
|
|
Loading…
Add table
Reference in a new issue