RIS reader: get right order of names.

Closes #8055.
This commit is contained in:
John MacFarlane 2022-05-03 10:44:09 -07:00
parent 67daf96bdd
commit 0b2adf9617
2 changed files with 5 additions and 5 deletions

View file

@ -142,7 +142,7 @@ risRecordToReference keys = addId $ foldr go defref keys
addName k v r =
let new = toName [] . B.toList . B.text $ v
f Nothing = Just (NamesVal new)
f (Just (NamesVal ns)) = Just (NamesVal (ns ++ new))
f (Just (NamesVal ns)) = Just (NamesVal (new ++ ns))
f (Just x) = Just x
in r{ referenceVariables =
M.alter f k (referenceVariables r) }

View file

@ -38,13 +38,13 @@ ER -
[
{
"author": [
{
"family": "Keisler",
"given": "H. Jerome"
},
{
"family": "Chang",
"given": "C. C."
},
{
"family": "Keisler",
"given": "H. Jerome"
}
],
"edition": "3",