forked from pensoft/refindit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
69 lines (62 loc) · 1.43 KB
/
config.js
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
/*jslint nomen: true */
"use strict";
//Development or Production
var dev = true;
module.exports = {
// GENERAL SETTINGS
modules: [
'search', // Unified search service
'format', // Format service
'websrv', // Static files web server
'tester', // sanity checks
],
initModules: function (app) {
this.modules.map(function (moduleName) {
require('./' + moduleName)(app);
});
},
port: 5000,
apidoc: __dirname + '/client/API.txt',
trace_level: 1,
// SEARCH MODULE
limit: 5,
more: 30,
// Note: BHL, Mendeley and CrossRef advanced search require a free
// API key to work and are commented out.
// See below for links to obtain the keys.
simpleDBs: [
'crossref',
'datacite',
'pubmed',
'refbank',
'gnub',
//'mendeley'
],
advancedDBs: [
//'crossref',
'datacite',
'pubmed',
'refbank',
//'bhlarticles',
//'bhlbooks',
//'mendeley'
],
refBankHost: 'plazi.cs.umb.edu',
gnubHost: 'zoobank.org',
// bhlApiKey: 'http://www.biodiversitylibrary.org/getapikey.aspx',
// mendeleyApiKey: 'http://dev.mendeley.com/applications/register/',
// crossrefApiKey: 'http://www.crossref.org/requestaccount/',
filter: function (a) { return a.isParsed; },
// FORMAT MODULE
stylesPath: __dirname + '/format/csl/',
localesPath: __dirname + '/format/csl-locales/',
// WEBSRV MODULE
maxAge: dev ? 0 : 86400000,
clientPath: __dirname + '/client',
// TESTER MODULE
modules2test: [
'search',
//'format',
'websrv'
],
};