common/corpus-common-addon/addon/utils/constants.js
author ymh <ymh.work@gmail.com>
Tue, 12 Apr 2016 13:42:04 +0200
changeset 151 95dfb40ff3d2
parent 137 1baa7c6bd370
child 160 c77f06ff3e54
permissions -rw-r--r--
upgrade php dependencies
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
127
5cd8c3065c38 extract common functionalities to common module. First application to lexvo name resolving
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
5cd8c3065c38 extract common functionalities to common module. First application to lexvo name resolving
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
5cd8c3065c38 extract common functionalities to common module. First application to lexvo name resolving
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
export const LEXVO_BASE_URL = "http://lexvo.org/id/iso639-3/";
132
d97eda8bc8ec move viaf-resolver to common module
ymh <ymh.work@gmail.com>
parents: 127
diff changeset
     4
export const VIAF_BASE_URL = "http://viaf.org/viaf/";
134
c06d08c8a1b8 add bnf resolver in common addon + applications
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
     5
export const BNF_BASE_URL = "http://data.bnf.fr/";
c06d08c8a1b8 add bnf resolver in common addon + applications
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
     6
export const BNF_ARK_BASE_URL = "http://ark.bnf.fr/";
c06d08c8a1b8 add bnf resolver in common addon + applications
ymh <ymh.work@gmail.com>
parents: 132
diff changeset
     7
export const BNF_ARK_BASE_ID = "ark:/12148/";
127
5cd8c3065c38 extract common functionalities to common module. First application to lexvo name resolving
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
export const DEFAULT_STORE_EXP = 3600000;
137
1baa7c6bd370 add subject edition
ymh <ymh.work@gmail.com>
parents: 134
diff changeset
     9
export const NOID_CHARS = [
1baa7c6bd370 add subject edition
ymh <ymh.work@gmail.com>
parents: 134
diff changeset
    10
  '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
1baa7c6bd370 add subject edition
ymh <ymh.work@gmail.com>
parents: 134
diff changeset
    11
	'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'm', 'n',
1baa7c6bd370 add subject edition
ymh <ymh.work@gmail.com>
parents: 134
diff changeset
    12
	'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'z'
1baa7c6bd370 add subject edition
ymh <ymh.work@gmail.com>
parents: 134
diff changeset
    13
];
1baa7c6bd370 add subject edition
ymh <ymh.work@gmail.com>
parents: 134
diff changeset
    14
export const NOID_CHARS_POS = {
1baa7c6bd370 add subject edition
ymh <ymh.work@gmail.com>
parents: 134
diff changeset
    15
  '0': 0, '1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9,
1baa7c6bd370 add subject edition
ymh <ymh.work@gmail.com>
parents: 134
diff changeset
    16
	'b': 10, 'c': 11, 'd': 12, 'f': 13, 'g': 14, 'h': 15, 'j': 16, 'k': 17, 'm': 18, 'n': 19,
1baa7c6bd370 add subject edition
ymh <ymh.work@gmail.com>
parents: 134
diff changeset
    17
	'p': 20, 'q': 21, 'r': 22, 's': 23, 't': 24, 'v': 25, 'w': 26, 'x': 27, 'z': 28
1baa7c6bd370 add subject edition
ymh <ymh.work@gmail.com>
parents: 134
diff changeset
    18
};