Project

General

Profile

« Previous | Next » 

Revision 57873

added software field to events list

View differences:

modules/uoa-repository-dashboard-gui/trunk/src/app/pages/content/content-events-of-repo-eventslist.component.html
276 276
                            </td>
277 277
                          </tr>
278 278

  
279
                          <!--Software-->
280
                          <tr class="el-item" [ngClass]="{'success': event.highlight.softwares && event.highlight.softwares.length>0 }">
281
                            <td *ngIf="this.topic.includes('SOFTWARE')" class="uk-table-shrink uk-width-1-4">
282
                              <strong class="el-title uk-display-block">Software</strong>
283
                            </td>
284
                            <td *ngIf="!(this.topic.includes('SOFTWARE'))" class="uk-table-shrink uk-width-1-4">
285
                              <strong class="el-title uk-display-block">Software</strong>
286
                            </td>
287
                            <td class="uk-table-shrink">
288
                              <div class="el-title">
289
                                <span *ngFor="let software of event.publication.softwares; let s_index = index">
290
                                  <br *ngIf="s_index > 0">
291
                                  <span>{{ software.name }}</span>
292
                                  <span *ngIf="software.description"> <br> {{ software.description }}</span>
293
                                  <span><br><a href="{{ software.landingPage }}" target="_blank">{{ software.landingPage }}</a></span>
294
                                  <span *ngIf="software.landingPage !== software.repository"><br><a href="{{ software.repository }}" target="_blank">{{ software.repository }}</a></span>
295
                                  <span *ngFor="let hl_software of event.highlight.softwares">
296
                                    <span *ngIf="hl_software.name.indexOf(software.name)>=0 && event.highlight.softwares.length>0 && event.provenance">
297
                                      <span class="pull-right">
298
                                        <b>from: </b>
299
                                        <ng-container *ngIf="event.provenance.url">
300
                                          <a href="{{ event.provenance.url }}" target="_blank">{{ event.provenance.repositoryName }}</a>
301
                                          <span *ngIf="event.provenance.id"> (ID: {{ event.provenance.id }})</span>
302
                                        </ng-container>
303
                                        <ng-container *ngIf="!event.provenance.url">
304
                                          <span>{{ event.provenance.repositoryName }}</span>
305
                                        </ng-container>
306
                                      </span>
307
                                    </span>
308
                                  </span>
309
                                </span>
310
                              </div>
311
                            </td>
312
                          </tr>
279 313

  
280 314
                          <tr class="el-item" [ngClass]="{'success': event.highlight.publicationdate && event.highlight.publicationdate.length>0 }">
281 315
                            <td class="uk-table-shrink uk-width-1-4"><strong class="el-title uk-display-block">Publication date</strong></td>
modules/uoa-repository-dashboard-gui/trunk/src/app/domain/typeScriptClasses.ts
478 478
    publications: Publication[];
479 479
    projects: Project[];
480 480
    datasets: Dataset[];
481
    softwares: Software[];
481 482
}
482 483

  
483 484
export class Range implements IsSerializable {
......
494 495
    lastNotificationDate: Date;
495 496
}
496 497

  
498
export class Software implements IsSerializable {
499
  name: string;
500
  description: string;
501
  landingPage: string;
502
  repository: string;
503
}
504

  
497 505
export class Subscription implements IsSerializable {
498 506
    subscriptionId: string;
499 507
    subscriber: string;

Also available in: Unified diff