JATS reader: support edition in references.
Closes #8087. Note: we strip off any non-digits, since CSL wants "4" rather than "4th ed."
This commit is contained in:
parent
ae8ed408b0
commit
bd13077ce0
1 changed files with 2 additions and 0 deletions
|
@ -452,6 +452,8 @@ parseRef e = do
|
|||
"publisher-name" -> Just . ("publisher",) . toMetaValue <$> getInlines el
|
||||
"publisher-loc" -> Just . ("publisher-place",) . toMetaValue
|
||||
<$> getInlines el
|
||||
"edition" -> pure $ Just ("edition",
|
||||
toMetaValue . T.filter isDigit $ strContent el)
|
||||
"person-group" -> do names <- mapM getName
|
||||
(filterChildren (named "name") el)
|
||||
pure $ Just (attrValue "person-group-type" el,
|
||||
|
|
Loading…
Add table
Reference in a new issue