cms/app-client/app/components/notice-component.js
changeset 278 f2c2c80a49f7
parent 271 e234339fe8df
child 335 9247384cb264
equal deleted inserted replaced
274:53a6985443f8 278:f2c2c80a49f7
    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             });