Project

General

Profile

« Previous | Next » 

Revision 56949

Fixed the events list page for new publication and subject topics

View differences:

content-events-of-repo-eventslist.component.html
185 185
                              </div>
186 186
                            </td>
187 187
                          </tr>
188

  
189
                          <!--Publications-->
190
                          <tr class="el-item" [ngClass]="{'success': event.highlight.publications && event.highlight.publications.length>0 }">
191
                            <td *ngIf="this.topic.includes('PUBLICATION')" class="uk-table-shrink uk-width-1-4">
192
                              <strong class="el-title uk-display-block">{{this.lastTopicEntry}}<br>Publication(s)</strong>
193
                            </td>
194
                            <td *ngIf="!(this.topic.includes('PUBLICATION'))"
195
                                class="uk-table-shrink uk-width-1-4">
196
                              <strong class="el-title uk-display-block">Publication(s)</strong>
197
                            </td>
198
                            <td class="uk-table-shrink">
199
                              <div class="el-title">
200
                                <span *ngFor="let pub of event.publication.publications; let s_index = index">
201
                                  <br *ngIf="s_index > 0">
202
                                  <span>{{ pub.titles[0] }} (ID: {{pub.originalId}})</span>
203
                                  <span *ngIf="event.highlight.publications && event.highlight.publications.length>0 && event.provenance">
204
                                    <span class="pull-right">
205
                                      <b>from: </b>
206
                                      <ng-container *ngIf="event.provenance.url">
207
                                        <a href="{{ event.provenance.url }}" target="_blank">{{ event.provenance.repositoryName }}</a>
208
                                        <span *ngIf="event.provenance.id"> (ID: {{ event.provenance.id }})</span>
209
                                      </ng-container>
210
                                      <ng-container *ngIf="!event.provenance.url">
211
                                        <span>{{ event.provenance.repositoryName }}</span>
212
                                      </ng-container>
213
                                    </span>
214
                                  </span>
215
                                </span>
216
                              </div>
217
                            </td>
218
                          </tr>
219

  
220
                          <!--Datasets-->
221
                          <tr class="el-item" [ngClass]="{'success': event.highlight.datasets && event.highlight.datasets.length>0 }">
222
                            <td *ngIf="this.topic.includes('DATASET')" class="uk-table-shrink uk-width-1-4">
223
                              <strong class="el-title uk-display-block">{{this.lastTopicEntry}}<br>Dataset(s)</strong>
224
                            </td>
225
                            <td *ngIf="!(this.topic.includes('DATASET'))" class="uk-table-shrink uk-width-1-4">
226
                              <strong class="el-title uk-display-block">Dataset(s)</strong>
227
                            </td>
228
                            <td class="uk-table-shrink">
229
                              <div class="el-title">
230
                                <span *ngFor="let dataset of event.publication.datasets; let s_index = index">
231
                                  <br *ngIf="s_index > 0">
232
                                  <span>{{ dataset.titles[0] }} <span *ngIf="dataset.pids && dataset.pids.length>0">({{dataset.pids[0].type}}: {{dataset.pids[0].value}})</span></span>
233
                                  <span *ngIf="event.highlight.datasets && event.highlight.datasets.length>0 && event.provenance">
234
                                    <span class="pull-right">
235
                                      <b>from: </b>
236
                                      <ng-container *ngIf="event.provenance.url">
237
                                        <a href="{{ event.provenance.url }}" target="_blank">{{ event.provenance.repositoryName }}</a>
238
                                        <span *ngIf="event.provenance.id"> (ID: {{ event.provenance.id }})</span>
239
                                      </ng-container>
240
                                      <ng-container *ngIf="!event.provenance.url">
241
                                        <span>{{ event.provenance.repositoryName }}</span>
242
                                      </ng-container>
243
                                    </span>
244
                                  </span>
245
                                </span>
246
                              </div>
247
                            </td>
248
                          </tr>
249

  
250

  
251

  
188 252
                          <tr class="el-item" [ngClass]="{'success': event.highlight.publicationdate && event.highlight.publicationdate.length>0 }">
189 253
                            <td class="uk-table-shrink uk-width-1-4"><strong class="el-title uk-display-block">Publication date</strong></td>
190 254
                            <td class="uk-table-shrink"><div class="el-title">{{ event.publication.publicationdate }}</div></td>

Also available in: Unified diff