-
Notifications
You must be signed in to change notification settings - Fork 34
/
config.json
253 lines (242 loc) · 7.99 KB
/
config.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
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
{
# service and super user accounts
"service_name" : "BibSoup",
"SITE_URL" : "http://bibsoup.net",
"host" : "0.0.0.0",
"debug" : true,
"port" : 5000,
"super_user" : ["test"],
# elasticsearch settings
"ELASTIC_SEARCH_HOST" : "127.0.0.1:9200",
"ELASTIC_SEARCH_DB" : "bibserver",
# bibserver functionality settings
# set to false if no frontend upload wanted
# set to false if no frontend edit wanted
"allow_upload" : true,
"allow_edit" : true,
# ingest settings
"download_cache_directory" : "download_cache",
"parserscrapers_plugin_directory" : "parserscrapers_plugins",
# external API service settings and keys (should overwrite from local_config)
"external_apis" : {
"servicecore" : {
"url" : "http://core.kmi.open.ac.uk/api/search/",
"key" : "",
"docs" : "http://core-project.kmi.open.ac.uk/api-doc/"
}
},
# The default fields and settings for which faceting should be made available on
# these can be nested fields, e.g. links.url
"search_facet_fields" : [
{
"field":"collection.exact",
"order":"term",
"size":200,
"display":"collection"
},
{
"field":"type.exact",
"order":"count",
"display":"type"
},
{
"field":"journal.name.exact",
"display":"journal"
},
{
"field":"author.name.exact",
"order":"term",
"size":500,
"display":"author"
},
{
"field":"year.exact",
"size":100,
"order":"reverse_term",
"display":"year"
}
],
# list of additional facet names that could be made available for users to choose
"add_remove_facets" : [
"keyword.exact",
"subject.name.exact",
"volume.exact",
"publisher.exact",
"editor.name.exact",
"title.exact",
"_created.exact",
"_last_modified.exact",
"theme.exact",
"chapter.exact",
"booktitle.exact",
"abstract.exact",
"journal.id.exact",
"author.id.exact",
"link.url.exact",
"pages.exact"
],
# search result display layout
# a list of lists. each list represents a line on the display.
# in each line, there are objects for each key to include on the line.
# must specify the key, and optional "pre" and "post" params for displaying round it
"search_result_display" : [
[
{
"field": "author.name"
},
{
"pre": "(",
"field": "year",
"post": ")"
}
],
[
{
"pre":"<span style=\"font-weight:bold;font-size:120%;\"><a title=\"view record\" style=\"color:#666;text-decoration:underline;\" href=\"/",
"field":"owner",
"post":"/"
},
{
"field":"collection",
"post":"/"
},
{
"field":"_id",
"post":"\">"
},
{
"field":"title",
"post":"</a></span>"
}
],
[
{
"field": "howpublished"
},
{
"pre": "in <em>",
"field": "journal.name",
"post": "</em>,"
},
{
"pre": "<em>",
"field": "booktitle",
"post": "</em>,"
},
{
"pre": "vol. ",
"field": "volume",
"post": ","
},
{
"pre": "p. ",
"field": "pages"
},
{
"field": "publisher"
}
],
[
{
"field": "link.url"
}
]
],
# default view for collections page
"colls_result_display" : [
[
{
"pre":"<h3><a href=\"/",
"field":"owner",
"post":"/"
},
{
"field":"collection",
"post":"\">"
},
{
"field":"label",
"post":"</a></h3>"
}
],
[
{
"field":"description"
},
{
"pre":" (created by <a href=\"/",
"field":"owner",
"post":"\">"
},
{
"field":"owner",
"post":"</a>)"
}
]
],
# a dict of the ES mappings. identify by name, and include name as first object name
# and identifier for how non-analyzed fields for faceting are differentiated in the mappings
"facet_field" : ".exact",
"mappings" : {
"record" : {
"record" : {
"date_detection" : false,
"dynamic_templates" : [
{
"default" : {
"match" : "*",
"match_mapping_type": "string",
"mapping" : {
"type" : "multi_field",
"fields" : {
"{name}" : {"type" : "{dynamic_type}", "index" : "analyzed", "store" : "no"},
"exact" : {"type" : "{dynamic_type}", "index" : "not_analyzed", "store" : "yes"}
}
}
}
}
]
}
},
"collection" : {
"collection" : {
"date_detection" : false,
"dynamic_templates" : [
{
"default" : {
"match" : "*",
"match_mapping_type": "string",
"mapping" : {
"type" : "multi_field",
"fields" : {
"{name}" : {"type" : "{dynamic_type}", "index" : "analyzed", "store" : "no"},
"exact" : {"type" : "{dynamic_type}", "index" : "not_analyzed", "store" : "yes"}
}
}
}
}
]
}
}
},
# list of external sites to search for record data at
"searchables" : {
"Google" : "http://www.google.com/search?q=",
"Google scholar" : "http://scholar.google.com/scholar?q=",
"Google video" : "http://www.google.com/search?tbm=vid&q=",
"Google blogs" : "http://www.google.com/search?tbm=blg&q=",
"Google books" : "http://www.google.com/search?tbm=bks&q=",
"Google images" : "http://www.google.com/search?tbm=isch&q=",
"Google search ResearcherID" : "http://www.google.com/search?q=XXXX+site%3Awww.researcherid.com",
"Google search ACM Author Profiles" : "http://www.google.com/search?q=XXXX+ACM+author+profile+site%3Adl.acm.org",
"Google search Mathemtatics Genealogy" : "http://www.google.com/search?q=XXXX+site%3Agenealogy.math.ndsu.nodak.edu",
"Microsoft academic search" : "http://academic.research.microsoft.com/Search?query=",
"Zentralblatt Math" : "http://www.zentralblatt-math.org/zmath/en/search/?q=",
"Zentralblatt Math authors" : "http://www.zentralblatt-math.org/zmath/en/authors/?au=",
"MathSciNet" : "http://www.ams.org/mathscinet-mref?ref=",
"DOI resolver" : "http://dx.doi.org/",
"PubMed" : "http://www.ncbi.nlm.nih.gov/pubmed?term=",
"PubMed Central" : "http://www.ncbi.nlm.nih.gov/pmc/?term=",
"BioMed Central" : "http://www.biomedcentral.com/search/results?terms="
}
}