Skip to content

Commit 00fe7ec

Browse files
authored
Merge pull request #609 from OpenKnowledgeMaps/interface-changes-cite
Interface changes 3 (cite button)
2 parents 36aaf37 + a9064e7 commit 00fe7ec

32 files changed

Lines changed: 6250 additions & 308 deletions

package-lock.json

Lines changed: 296 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
},
2525
"homepage": "https://github.com/OpenKnowledgeMaps/Headstart#readme",
2626
"dependencies": {
27+
"@citation-js/core": "^0.5.4",
28+
"@citation-js/plugin-csl": "^0.5.4",
2729
"bootstrap": "3.4.1",
2830
"d3": "^3.5.17",
2931
"d3-ease": "^2.0.0",
@@ -72,6 +74,7 @@
7274
"process": "^0.11.10",
7375
"react-test-renderer": "^16.13.1",
7476
"redux-mock-store": "^1.5.4",
77+
"regenerator-runtime": "^0.13.9",
7578
"resolve": "^1.7.1",
7679
"sass": "^1.23.7",
7780
"sass-loader": "^12.1.0",
@@ -89,7 +92,8 @@
8992
"^lib/en.js$": "<rootDir>/vis/lib/en.js",
9093
"^lib/de.js$": "<rootDir>/vis/lib/de.js",
9194
"^markjs$": "<rootDir>/vis/test/fileMock.js",
92-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/vis/test/fileMock.js"
95+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/vis/test/fileMock.js",
96+
"\\.csl$": "<rootDir>/vis/test/cslMock.js"
9397
},
9498
"collectCoverage": true,
9599
"coveragePathIgnorePatterns": [

vis/csl/acm.csl

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US">
3+
<info>
4+
<title>ACM SIG Proceedings ("et al." for 3+ authors)</title>
5+
<id>http://www.zotero.org/styles/acm-sig-proceedings</id>
6+
<link href="http://www.zotero.org/styles/acm-sig-proceedings" rel="self"/>
7+
<link href="http://www.acm.org/sigs/publications/proceedings-templates" rel="documentation"/>
8+
<author>
9+
<name>Naeem Esfahani</name>
10+
<email>nesfaha2@gmu.edu</email>
11+
<uri>http://mason.gmu.edu/~nesfaha2/</uri>
12+
</author>
13+
<contributor>
14+
<name>Chris Horn</name>
15+
<email>chris.horn@securedecisions.com</email>
16+
</contributor>
17+
<contributor>
18+
<name>Patrick O'Brien</name>
19+
</contributor>
20+
<category citation-format="numeric"/>
21+
<category field="science"/>
22+
<category field="engineering"/>
23+
<updated>2017-07-15T14:06:44+00:00</updated>
24+
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
25+
</info>
26+
<macro name="author">
27+
<choose>
28+
<if type="webpage">
29+
<text variable="title" suffix=":"/>
30+
</if>
31+
<else>
32+
<names variable="author">
33+
<name name-as-sort-order="all" and="text" sort-separator=", " initialize-with="." delimiter-precedes-last="never" delimiter=", "/>
34+
<label form="short" prefix=" "/>
35+
<substitute>
36+
<names variable="editor"/>
37+
<names variable="translator"/>
38+
</substitute>
39+
</names>
40+
</else>
41+
</choose>
42+
</macro>
43+
<macro name="editor">
44+
<names variable="editor">
45+
<name initialize-with="." delimiter=", " and="text"/>
46+
<label form="short" prefix=", "/>
47+
</names>
48+
</macro>
49+
<macro name="access">
50+
<choose>
51+
<if type="article-journal" match="any">
52+
<text variable="DOI" prefix=". DOI:https://doi.org/"/>
53+
</if>
54+
</choose>
55+
</macro>
56+
<citation collapse="citation-number">
57+
<sort>
58+
<key variable="citation-number"/>
59+
</sort>
60+
<layout prefix="[" suffix="]" delimiter=", ">
61+
<text variable="citation-number"/>
62+
</layout>
63+
</citation>
64+
<bibliography entry-spacing="0" second-field-align="flush" et-al-min="3" et-al-use-first="1">
65+
<sort>
66+
<key macro="author"/>
67+
<key variable="title"/>
68+
</sort>
69+
<layout suffix=".">
70+
<text variable="citation-number" prefix="[" suffix="]"/>
71+
<text macro="author" suffix=" "/>
72+
<date variable="issued" suffix=". ">
73+
<date-part name="year"/>
74+
</date>
75+
<choose>
76+
<if type="paper-conference">
77+
<group delimiter=". ">
78+
<text variable="title"/>
79+
<group delimiter=" ">
80+
<text variable="container-title" font-style="italic"/>
81+
<group delimiter=", ">
82+
<group delimiter=", " prefix="(" suffix=")">
83+
<text variable="publisher-place"/>
84+
<date variable="issued">
85+
<date-part name="month" form="short" suffix=" "/>
86+
<date-part name="year"/>
87+
</date>
88+
</group>
89+
<text variable="page"/>
90+
</group>
91+
</group>
92+
</group>
93+
</if>
94+
<else-if type="article-journal">
95+
<group delimiter=". ">
96+
<text variable="title"/>
97+
<text variable="container-title" font-style="italic"/>
98+
<group delimiter=", ">
99+
<text variable="volume"/>
100+
<group delimiter=" ">
101+
<text variable="issue"/>
102+
<date variable="issued" prefix="(" suffix=")">
103+
<date-part name="month" form="short" suffix=" "/>
104+
<date-part name="year"/>
105+
</date>
106+
</group>
107+
<text variable="page"/>
108+
</group>
109+
</group>
110+
</else-if>
111+
<else-if type="patent">
112+
<group delimiter=". ">
113+
<text variable="title"/>
114+
<text variable="number"/>
115+
<date variable="issued">
116+
<date-part name="month" form="short" suffix=" "/>
117+
<date-part name="day" suffix=", "/>
118+
<date-part name="year"/>
119+
</date>
120+
</group>
121+
</else-if>
122+
<else-if type="thesis">
123+
<group delimiter=". ">
124+
<text variable="title" font-style="italic"/>
125+
<text variable="archive_location" prefix="Doctoral Thesis #"/>
126+
<text variable="publisher"/>
127+
</group>
128+
</else-if>
129+
<else-if type="report">
130+
<group delimiter=". ">
131+
<text variable="title" font-style="italic"/>
132+
<text variable="number" prefix="Technical Report #"/>
133+
<text variable="publisher"/>
134+
</group>
135+
</else-if>
136+
<else-if type="webpage">
137+
<group delimiter=". ">
138+
<text variable="URL" font-style="italic"/>
139+
<date variable="accessed" prefix="Accessed: ">
140+
<date-part name="year" suffix="-"/>
141+
<date-part name="month" form="numeric-leading-zeros" suffix="-"/>
142+
<date-part name="day" form="numeric-leading-zeros"/>
143+
</date>
144+
</group>
145+
</else-if>
146+
<else-if type="chapter paper-conference" match="any">
147+
<group delimiter=". ">
148+
<text variable="title"/>
149+
<text variable="container-title" font-style="italic"/>
150+
<text macro="editor"/>
151+
<text variable="publisher"/>
152+
<text variable="page"/>
153+
</group>
154+
</else-if>
155+
<else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
156+
<group delimiter=". ">
157+
<text variable="title" font-style="italic"/>
158+
<text variable="publisher"/>
159+
</group>
160+
</else-if>
161+
<else>
162+
<group delimiter=". ">
163+
<text variable="title"/>
164+
<text variable="container-title" font-style="italic"/>
165+
<text variable="publisher"/>
166+
</group>
167+
</else>
168+
</choose>
169+
<text macro="access"/>
170+
</layout>
171+
</bibliography>
172+
</style>

0 commit comments

Comments
 (0)