aboutsummaryrefslogtreecommitdiff
path: root/test/command/biblatex-options-url-false-doi-false.md
diff options
context:
space:
mode:
Diffstat (limited to 'test/command/biblatex-options-url-false-doi-false.md')
-rw-r--r--test/command/biblatex-options-url-false-doi-false.md57
1 files changed, 57 insertions, 0 deletions
diff --git a/test/command/biblatex-options-url-false-doi-false.md b/test/command/biblatex-options-url-false-doi-false.md
new file mode 100644
index 000000000..259665e87
--- /dev/null
+++ b/test/command/biblatex-options-url-false-doi-false.md
@@ -0,0 +1,57 @@
+```
+% pandoc -f biblatex -t markdown -s
+@comment{
+
+Entry contains url and doi fields; these should be discarded since the
+options field specifies url=false, doi=false.
+
+Exception: As in standard biblatex, in online entries url should never be
+discarded, even if options contains url=false.
+
+}
+
+@article{item1,
+ Author = {Author, Andy},
+ Date = {2012},
+ Doi = {1234/5678.90},
+ Journal = {Journal},
+ Options = {url=false, doi=false},
+ Title = {Title, Any Entry Type Except online},
+ Url = {http://foo.bar}
+}
+
+@online{item2,
+ Author = {Author, Andy},
+ Date = {2012},
+ Doi = {1234/5678.90},
+ Journal = {Journal},
+ Options = {url=false, doi=false},
+ Title = {Title, Entry Type online},
+ Url = {http://foo.bar}
+}
+
+^D
+---
+nocite: '[@*]'
+references:
+- author:
+ - family: Author
+ given: Andy
+ container-title: Journal
+ id: item1
+ issued: 2012
+ title: 'Title, any entry type except online'
+ type: 'article-journal'
+- author:
+ - family: Author
+ given: Andy
+ container-title: Journal
+ id: item2
+ issued: 2012
+ title: 'Title, entry type online'
+ type: webpage
+ url: 'http://foo.bar'
+---
+
+
+```