File: link_plainurls.txt

package info (click to toggle)
haskell-citeproc 0.8.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,452 kB
  • sloc: xml: 30,637; haskell: 6,659; makefile: 3
file content (150 lines) | stat: -rw-r--r-- 3,978 bytes parent folder | download
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
This test checks the following properties:
  - plain URLs appearing in bibliography items should be linkified
  - when a link's prefix+anchor matches its target, the
      prefix should be included in the anchor

>>===== MODE =====>>
bibliography
<<===== MODE =====<<

>>===== OPTIONS =====>>
{
  "linkBibliography" : true
}
<<===== OPTIONS =====<<

>>===== RESULT =====>>
<div class="csl-bib-body">
  <div class="csl-entry">Apple. AAAA. 2010. <a href="https://doi.org/10.1021/ja01577a030">https://doi.org/10.1021/ja01577a030</a></div>
  <div class="csl-entry">Blueberry. BBBB. 2011. <a href="https://doi.org/10/bbbbb">https://doi.org/10/bbbbb</a></div>
  <div class="csl-entry">Cherry. CCCC. 2012. <a href="https://pandoc.org/">https://pandoc.org/</a></div>
  <div class="csl-entry">Durian. DDDD. 2013. <a href="https://www.ncbi.nlm.nih.gov/pubmed/30310042">https://www.ncbi.nlm.nih.gov/pubmed/30310042</a></div>
  <div class="csl-entry">Elderberry. EEEE. 2014. <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3531190">https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3531190</a></div>
</div>
<<===== RESULT =====<<

>>===== CSL =====>>
<?xml version="1.0" encoding="utf-8"?>
<style 
      xmlns="http://purl.org/net/xbiblio/csl"
      class="note"
      version="1.0">
  <info>
    <id />
    <title />
    <updated>2009-08-10T04:49:00+09:00</updated>
  </info>
  <macro name="author">
    <names variable="author">
      <name form="short" />
    </names>
  </macro>
  <macro name="access">
    <choose>
      <if variable="DOI">
        <text variable="DOI" prefix="https://doi.org/"/>
      </if>
      <else-if variable="PMCID">
        <text variable="PMCID" prefix="https://www.ncbi.nlm.nih.gov/pmc/articles/"/>
      </else-if>
      <else-if variable="PMID">
        <text variable="PMID" prefix="https://www.ncbi.nlm.nih.gov/pubmed/"/>
      </else-if>
      <else>
        <text variable="URL"/>
      </else>
    </choose>
  </macro>
  <citation>
    <layout delimiter="; ">
      <text macro="author" />
      <date variable="issued" prefix=" ">
        <date-part name="year"/>
      </date>
    </layout>
  </citation>
  <bibliography>
    <sort>
      <key macro="author" />
    </sort>
    <layout delimiter=". ">
      <text macro="author" />
      <text variable="title" text-case="title" prefix=". "/>
      <date variable="issued" prefix=". ">
        <date-part name="year"/>
      </date>
      <text macro="access" prefix=". "/>
    </layout>
  </bibliography>
</style>
<<===== CSL =====<<

>>===== INPUT =====>>
[
    {
        "author": [
            { "family": "Apple", "given": "Andrew" }
        ],
        "id": "ITEM-A",
        "type": "book",
        "title": "AAAA",
        "DOI": "10.1021/ja01577a030",
        "issued": {
          "date-parts": [ [ 2010 ] ]
        }
    },
    {
        "author": [
            { "family": "Blueberry", "given": "Bethany" }
        ],
        "id": "ITEM-B",
        "type": "book",
        "title": "BBBB",
        "DOI": "10/bbbbb",
        "issued": {
          "date-parts": [ [ 2011 ] ]
        }
    },
    {
        "author": [
            { "family": "Cherry", "given": "Carlos" }
        ],
        "id": "ITEM-C",
        "type": "book",
        "title": "CCCC",
        "URL": "https://pandoc.org/",
        "issued": {
          "date-parts": [ [ 2012 ] ]
        }
    },
    {
        "author": [
            { "family": "Durian", "given": "Denice" }
        ],
        "id": "ITEM-D",
        "type": "book",
        "title": "DDDD",
        "PMID": "30310042",
        "issued": {
          "date-parts": [ [ 2013 ] ]
        }
    },
    {
        "author": [
            { "family": "Elderberry", "given": "Edward" }
        ],
        "id": "ITEM-E",
        "type": "book",
        "title": "EEEE",
        "PMCID": "PMC3531190",
        "issued": {
          "date-parts": [ [ 2014 ] ]
        }
    }
]
<<===== INPUT =====<<


>>===== VERSION =====>>
1.0
<<===== VERSION =====<<