# HG changeset patch # User Chloe Laisne # Date 1463603502 -7200 # Node ID b5e6a2aa84cb67d5654d4bdcbeabb679bcc0d8ba # Parent 5f011170de740ad514e6367420ba2d15ecad5859 Discourses Component diff -r 5f011170de74 -r b5e6a2aa84cb cms/app-client/app/controllers/tabs/discours.js --- a/cms/app-client/app/controllers/tabs/discours.js Thu May 12 11:19:26 2016 +0200 +++ b/cms/app-client/app/controllers/tabs/discours.js Wed May 18 22:31:42 2016 +0200 @@ -1,9 +1,5 @@ import Ember from 'ember'; export default Ember.Controller.extend({ - actions: { - updateUrl: function(selection){ - this.transitionToRoute({queryParams: {discours: selection}}); - } - } + }); 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/", diff -r 5f011170de74 -r b5e6a2aa84cb cms/app-client/app/templates/tabs/discours.hbs --- a/cms/app-client/app/templates/tabs/discours.hbs Thu May 12 11:19:26 2016 +0200 +++ b/cms/app-client/app/templates/tabs/discours.hbs Wed May 18 22:31:42 2016 +0200 @@ -1,30 +1,1 @@ -
-
-

Dialogue

-

Conversation

-

Entretien

-

Discussion

-

Bavardage

-

Argumentation

-

Negociation

-

Reunion

-

Discours

-

Lecture a haute voix

-

Recitation

-

Recit personnel

-

Seminaire

-
-
-

Colloque

-

Conte

-

Fable

-

Narration

-

Chanson

-

Enquete par telephone

-

Questionnaire

-

Enquete

-

Enquetes linguistiques

-

Enquetes de terrain

-

Musique instrumentale

-
-
+{{discourses-component}} \ No newline at end of file