equal
deleted
inserted
replaced
1 import DS from 'ember-data'; |
1 import DS from 'ember-data'; |
2 import Ember from 'ember'; |
2 import Ember from 'ember'; |
3 import _ from 'lodash/lodash'; |
3 import _ from 'lodash/lodash'; |
4 |
4 |
5 var Document = DS.Model.extend({ |
5 var CPDocument = DS.Model.extend({ |
6 // id: DS.attr('string'), |
6 // id: DS.attr('string'), |
7 uri: DS.attr('string'), |
7 uri: DS.attr('string'), |
8 title: DS.attr('string'), |
8 title: DS.attr('string'), |
9 language: DS.attr('string'), |
9 language: DS.attr('string'), |
10 publishers: DS.attr({defaultValue: []}), |
10 publishers: DS.attr({defaultValue: []}), |
25 } |
25 } |
26 return res; |
26 return res; |
27 }) |
27 }) |
28 }); |
28 }); |
29 |
29 |
30 Document.reopenClass({ |
30 CPDocument.reopenClass({ |
31 FIXTURES: [ |
31 FIXTURES: [ |
32 { |
32 { |
33 "id": "crdo-09-CAYCHAX_SOUND", |
33 "id": "crdo-09-CAYCHAX_SOUND", |
34 "uri": "http://purl.org/poi/corpusdelaparole.huma-num.fr/crdo-09-CAYCHAX_SOUND", |
34 "uri": "http://purl.org/poi/corpusdelaparole.huma-num.fr/crdo-09-CAYCHAX_SOUND", |
35 "title": "ALLOc : Caychax : Parabole", |
35 "title": "ALLOc : Caychax : Parabole", |
180 "mediaArray": [ ] |
180 "mediaArray": [ ] |
181 } |
181 } |
182 ] |
182 ] |
183 }); |
183 }); |
184 |
184 |
185 export default Document; |
185 export default CPDocument; |