equal
deleted
inserted
replaced
15 if(this.get('item')) { |
15 if(this.get('item')) { |
16 this.get('item').get('contributors').forEach(function(contributor) { |
16 this.get('item').get('contributors').forEach(function(contributor) { |
17 if(contributor.name) { |
17 if(contributor.name) { |
18 var participant = participants.find(participant => participant.name === contributor.name); |
18 var participant = participants.find(participant => participant.name === contributor.name); |
19 if(participant) { |
19 if(participant) { |
20 participant['role'].push(contributor.role.split('/').pop()) |
20 participant['role'].push(contributor.role.split('/').pop()); |
21 } else { |
21 } else { |
22 participants.push({ name: contributor.name, role: [ contributor.role.split('/').pop() ] }); |
22 participants.push({ name: contributor.name, role: [ contributor.role.split('/').pop() ] }); |
23 } |
23 } |
24 } |
24 } |
25 }); |
25 }); |