aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-06-07 13:18:20 -0700
committerJohn MacFarlane <[email protected]>2023-06-07 13:18:20 -0700
commit4f440583a82d1090dbe212afe77eace8deb0531f (patch)
tree81d29ef85f09ea7f66d62aabfa9c58d817a408fb /test/command
parent0166aecaab1dfe050ea9ec780833a892c54060e9 (diff)
JATS writer: include title in ref-list.
Previously the reference title ended up in a separate section at the back of the body instead of in the ref-list in the back matter. Closes #8364.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/8364.md54
1 files changed, 54 insertions, 0 deletions
diff --git a/test/command/8364.md b/test/command/8364.md
new file mode 100644
index 000000000..95eaf2998
--- /dev/null
+++ b/test/command/8364.md
@@ -0,0 +1,54 @@
+```
+% pandoc --citeproc -t jats -s
+---
+reference-section-title: Bibliography
+csl: command/apa.csl
+references:
+- author:
+ - family: Doe
+ given: John
+ id: test
+ issued:
+ date-parts:
+ - - 2006
+ title: Test
+ type: 'article-journal'
+ volume: 81
+---
+
+@test
+^D
+<?xml version="1.0" encoding="utf-8" ?>
+<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.2 20190208//EN"
+ "JATS-archivearticle1.dtd">
+<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.2" article-type="other">
+<front>
+<journal-meta>
+<journal-id></journal-id>
+<journal-title-group>
+</journal-title-group>
+<issn></issn>
+<publisher>
+<publisher-name></publisher-name>
+</publisher>
+</journal-meta>
+<article-meta>
+<permissions>
+</permissions>
+</article-meta>
+</front>
+<body>
+<p>Doe (2006)</p>
+</body>
+<back>
+<ref-list>
+ <title>Bibliography</title>
+ <ref id="ref-test">
+ <mixed-citation>Doe, J. (2006). Test,
+ <italic>81</italic>.</mixed-citation>
+ </ref>
+</ref-list>
+</back>
+</article>
+
+```