JATS reader: strip ref-
prefix from ref id in xref.
This completes commit 807a574e9d
.
Closes #8007.
This commit is contained in:
parent
125210c108
commit
7fb74b74df
1 changed files with 3 additions and 1 deletions
|
@ -528,7 +528,9 @@ parseInline (Elem e) =
|
||||||
return $ if refType == Just ("ref-type","bibr")
|
return $ if refType == Just ("ref-type","bibr")
|
||||||
then cite
|
then cite
|
||||||
(map (\id' ->
|
(map (\id' ->
|
||||||
Citation{ citationId = id'
|
let id'' = fromMaybe id' $
|
||||||
|
T.stripPrefix "ref-" id'
|
||||||
|
in Citation { citationId = id''
|
||||||
, citationPrefix = []
|
, citationPrefix = []
|
||||||
, citationSuffix = []
|
, citationSuffix = []
|
||||||
, citationMode = NormalCitation
|
, citationMode = NormalCitation
|
||||||
|
|
Loading…
Reference in a new issue