diff -r 5f011170de74 -r b5e6a2aa84cb cms/app-client/app/services/constants.js --- a/cms/app-client/app/services/constants.js Thu May 12 11:19:26 2016 +0200 +++ b/cms/app-client/app/services/constants.js Wed May 18 22:31:42 2016 +0200 @@ -27,6 +27,45 @@ 'http://www.language-archives.org/OLAC/1.1/translator': 'bo.olac_role_translator', }; + +const DISCOURSES = { + "http://ark.bnf.fr/ark:/12148/cb12083158d": "cat1", + "http://ark.bnf.fr/ark:/12148/cb119783362": "cat1", + "http://ark.bnf.fr/ark:/12148/cb119317924": "cat1", + "http://ark.bnf.fr/ark:/12148/cb12481481z": "cat1", + "http://ark.bnf.fr/ark:/12148/cb119341539": "cat1", + "http://ark.bnf.fr/ark:/12148/cb11946100d": "cat1", + "http://ark.bnf.fr/ark:/12148/cb11931724n": "cat2", + "http://ark.bnf.fr/ark:/12148/cb11949715t": "cat2", + "http://ark.bnf.fr/ark:/12148/cb13319048g": "cat3", + "http://ark.bnf.fr/ark:/12148/cb11936159v": "cat3", + "http://ark.bnf.fr/ark:/12148/cb11948542x": "cat3", + "http://ark.bnf.fr/ark:/12148/cb11953414d": "cat3", + "http://ark.bnf.fr/ark:/12148/cb11955657q": "cat3", + "http://ark.bnf.fr/ark:/12148/cb11957378b": "cat3", + "http://ark.bnf.fr/ark:/12148/cb11937212q": "cat3", + "http://ark.bnf.fr/ark:/12148/cb119834877": "cat3", + "http://ark.bnf.fr/ark:/12148/cb11976851v": "cat3", + "http://ark.bnf.fr/ark:/12148/cb120502737": "cat4", + "http://ark.bnf.fr/ark:/12148/cb11932135w": "cat4", + "http://ark.bnf.fr/ark:/12148/cb119829234": "cat4" +}; + +const DISCOURSE_CATEGORIES = { + "cat1": { + "fill": "#b6d7a8" + }, + "cat2": { + "fill": "#ea9999" + }, + "cat3": { + "fill": "#a2c4c9" + }, + "cat4":{ + "fill": "#ffe599" + } +}; + const KEY_CODES = { BACKSPACE : 8, DELETE : 46, @@ -255,6 +294,8 @@ export default Ember.Service.extend({ OLAC_ROLES: OLAC_ROLES, + DISCOURSES: DISCOURSES, + DISCOURSE_CATEGORIES: DISCOURSE_CATEGORIES, KEY_CODES: KEY_CODES, VIAF_BASE_URL: "http://viaf.org/viaf/", LEXVO_BASE_URL: "http://lexvo.org/id/iso639-3/",