-
Notifications
You must be signed in to change notification settings - Fork 0
/
ZotFile_wildcards.json
118 lines (118 loc) · 3.87 KB
/
ZotFile_wildcards.json
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
{"E":{"field":"editor"},"B":"bookTitle","P":{"default":"bookTitle","bookSection":"pages"},"J":{"field":"publicationTitle","operations":[{"function":"replace","regex":": ","replacement":"- "}]},"K":{"default":"publicationTitle","bookSection":{"field":"publicationTitle","operations":[{"function":"replace","regex":" ?:.*","replacement":""}]}},"k":{"default":"bookTitle","bookSection":{"field":"publicationTitle","operations":[{"function":"exec","regex":"^(.+?) ?:","group":"1"}]}},"C":{"field":"extra","operations":[{"function":"replace","regex":"[\\s\\S]*chapter-number:[\\s\\S]?([a-zA-Z0-9'.\\-]+)[\\s\\S]*|[\\s\\S].*[\\s\\S]","replacement":"$1"}]},"W":{"field":"title","operations":{"function":"replace","regex":":","replacement":"-","flags":"g"}},"V":{"default":"issue","bookSection":{"field":"date","regex":"\\d{4}","replacement":"$1","group":1}},"m":{"default":"itemType","bookSection":{"field":"itemType","operations":[{"function":"exec","regex":"(Book)","group":"1"}]}},"O":{"default":{"field":"publicationTitle","operations":[{"function":"replace","regex":".*","replacement":""}]},"book":"citationKey"},"Z":{"default":"citationKey","book":{"field":"title","operations":[{"function":"exec","regex":"^(.+?) ?:","group":"1"}]}},"z":{"default":"citationKey","book":"shortTitle"}}
{
"E": {
"field": "editor"
},
"B": "bookTitle",
"P": {
"default": "bookTitle",
"bookSection": "pages"
},
"J": {
"field": "publicationTitle",
"operations": [
{
"function": "replace",
"regex": ": ",
"replacement": "- "
}
]
},
"K": {
"default": "publicationTitle",
"bookSection": {
"field": "publicationTitle",
"operations": [
{
"function": "replace",
"regex": " ?:.*",
"replacement": ""
}
]
}
},
"k": {
"default": "bookTitle",
"bookSection": {
"field": "publicationTitle",
"operations": [
{
"function": "exec",
"regex": "^(.+?) ?:",
"group": "1"
}
]
}
},
"C": {
"field": "extra",
"operations": [
{
"function": "replace",
"regex": "[\\s\\S]*chapter-number:[\\s\\S]?([a-zA-Z0-9'.\\-]+)[\\s\\S]*|[\\s\\S].*[\\s\\S]",
"replacement": "$1"
}
]
},
"W": {
"field": "title",
"operations": {
"function": "replace",
"regex": ":",
"replacement": "-",
"flags": "g"
}
},
"V": {
"default": "issue",
"bookSection": {
"field": "date",
"regex": "\\d{4}",
"replacement": "$1",
"group": 1
}
},
"m": {
"default": "itemType",
"bookSection": {
"field": "itemType",
"operations": [
{
"function": "exec",
"regex": "(Book)",
"group": "1"
}
]
}
},
"O": {
"default": {
"field": "publicationTitle",
"operations": [
{
"function": "replace",
"regex": ".*",
"replacement": ""
}
]
},
"book": "citationKey"
},
"Z": {
"default": "citationKey",
"book": {
"field": "title",
"operations": [
{
"function": "exec",
"regex": "^(.+?) ?:",
"group": "1"
}
]
}
},
"z": {
"default": "citationKey",
"book": "shortTitle"
}
}