|
1 import Ember from 'ember'; |
|
2 |
|
3 const OLAC_ROLES = { |
|
4 'http://www.language-archives.org/OLAC/1.1/annotator': 'bo.olac_role_annotator', |
|
5 'http://www.language-archives.org/OLAC/1.1/author': 'bo.olac_role_author', |
|
6 'http://www.language-archives.org/OLAC/1.1/compiler': 'bo.olac_role_compiler', |
|
7 'http://www.language-archives.org/OLAC/1.1/consultant': 'bo.olac_role_consultant', |
|
8 'http://www.language-archives.org/OLAC/1.1/data_inputter': 'bo.olac_role_data_inputter', |
|
9 'http://www.language-archives.org/OLAC/1.1/depositor': 'bo.olac_role_depositor', |
|
10 'http://www.language-archives.org/OLAC/1.1/developer': 'bo.olac_role_developer', |
|
11 'http://www.language-archives.org/OLAC/1.1/editor': 'bo.olac_role_editor', |
|
12 'http://www.language-archives.org/OLAC/1.1/illustrator': 'bo.olac_role_illustrator', |
|
13 'http://www.language-archives.org/OLAC/1.1/interpreter': 'bo.olac_role_interpreter', |
|
14 'http://www.language-archives.org/OLAC/1.1/interviewer': 'bo.olac_role_interviewer', |
|
15 'http://www.language-archives.org/OLAC/1.1/participant': 'bo.olac_role_participant', |
|
16 'http://www.language-archives.org/OLAC/1.1/performer': 'bo.olac_role_performer', |
|
17 'http://www.language-archives.org/OLAC/1.1/photographer': 'bo.olac_role_photographer', |
|
18 'http://www.language-archives.org/OLAC/1.1/recorder': 'bo.olac_role_recorder', |
|
19 'http://www.language-archives.org/OLAC/1.1/researcher': 'bo.olac_role_researcher', |
|
20 'http://www.language-archives.org/OLAC/1.1/research_participant': 'bo.olac_role_research_participant', |
|
21 'http://www.language-archives.org/OLAC/1.1/responder': 'bo.olac_role_responder', |
|
22 'http://www.language-archives.org/OLAC/1.1/signer': 'bo.olac_role_signer', |
|
23 'http://www.language-archives.org/OLAC/1.1/singer': 'bo.olac_role_singer', |
|
24 'http://www.language-archives.org/OLAC/1.1/speaker': 'bo.olac_role_speaker', |
|
25 'http://www.language-archives.org/OLAC/1.1/sponsor': 'bo.olac_role_sponsor', |
|
26 'http://www.language-archives.org/OLAC/1.1/transcriber': 'bo.olac_role_transcriber', |
|
27 'http://www.language-archives.org/OLAC/1.1/translator': 'bo.olac_role_translator', |
|
28 }; |
|
29 |
|
30 const KEY_CODES = { |
|
31 BACKSPACE : 8, |
|
32 DELETE : 46, |
|
33 ESCAPE: 27, |
|
34 RETURN: 13, |
|
35 }; |
|
36 |
|
37 export default Ember.Service.extend({ |
|
38 OLAC_ROLES: OLAC_ROLES, |
|
39 KEY_CODES: KEY_CODES, |
|
40 VIAF_BASE_URL: "http://viaf.org/viaf/", |
|
41 LEXVO_BASE_URL: "http://lexvo.org/id/iso639-3/", |
|
42 }); |