aboutsummaryrefslogtreecommitdiff
path: root/test/command/biblatex-options-url-false-doi-false.md
blob: 259665e87944d55e65d56d09a8b599442e237f24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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'
---


```