-
Notifications
You must be signed in to change notification settings - Fork 1
/
apiConfig.js
97 lines (70 loc) · 2.46 KB
/
apiConfig.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
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
// The URL params and such for the api
"use strict"
var exports = module.exports = {}
exports.config = {
//number of previous requests to hold in memeory
cacheSize: 100,
//the default number of records to return
numberOfRecords: 50
}
exports.get = {
viafURL : "http://viaf.org/viaf/{X}/viaf.xml",
lccnURL : "http://viaf.org/viaf/lccn/{X}/viaf.xml"
}
exports.search = {
base : "http://viaf.org/viaf/search?query=",
acceptHTML : "httpAccept=text/html",
acceptRSS : "httpAccept=application/rss+xml",
acceptXML : "httpAccept=application/xml",
recordsMax : "maximumRecords={X}",
recordsStart : "startRecord={X}",
sortKey : "sortKeys=holdingscount",
operatorOneOrMore : "=",
operatorExact : "exact",
operatorAny : "any",
operatorAll : "all",
operatorLess : "<",
operatorLessEqual : "<=",
operatorGrater : ">",
operatorGraterEqual : ">=",
operatorNot : "not",
searchAny : 'cql.any+{OP}+"{X}"',
searchServerChoice : 'cql.serverChoice+{OP}+"{X}"',
searchCorporate : 'local.corporateNames+{OP}+"{X}"',
searchGeographic : 'local.geographicNames+{OP}+"{X}"',
searchLCCN : 'local.LCCN+{OP}+"{X}"',
searchPreferredName : 'local.mainHeadingEl+{OP}+"{X}"',
searchNames : 'local.names+{OP}+"{X}"',
searchPersonalNames : 'local.personalNames+{OP}+"{X}"',
searchSourceRecord : 'local.source+{OP}+"{X}"',
searchTitle : 'local.title+{OP}+"{X}"',
searchExpression : 'local.uniformTitleExpressions+{OP}+"{X}"',
searchWorks : 'local.uniformTitleWorks+{OP}+"{X}"',
//for testing
searchError: '?ERR&OR+{OP}+"{X}"',
limitSourceVIAF : "viaf",
limitSourceAustralia : "nla",
limitSourceBelgium : "vlacc",
limitSourceCanada : "lac",
limitSourceCzech : "nkc",
limitSourceEgypt : "egaxa",
limitSourceFranceBnF : "bnf",
limitSourceFranceSudoc :"sudoc",
limitSourceGermany : "dnb",
limitSourceGetty : "jpg",
limitSourceHungary : "nszl",
limitSourceIsrael : "nliara",
limitSourceItaly : "iccu",
limitSourceLOC : "lc",
limitSourceNorway : "bibsys",
limitSourcePoland : "nukat",
limitSourcePortugal : "ptbnp",
limitSourceSpain : "bne",
limitSourceSweden : "selibr",
limitSourceSwissNL : "swnl",
limitSourceSwissRERO : "rero",
limitSourceRussia : "rsl",
limitSourceVatican : "bav",
limitSourcexA : "xa",
limitSourceSyntax : '+and+local.sources+%3D+"{X}"'
}