encoding-desc.component.html 2.2 KB

12345678910111213141516171819202122232425262728
  1. <ng-container [ngSwitch]="data?.structuredData">
  2. <ng-container *ngSwitchCase="true">
  3. <ng-container *ngTemplateOutlet="section; context: { label: 'projectDesc', items: data?.projectDesc, class: 'projectDesc' }"></ng-container>
  4. <ng-container *ngTemplateOutlet="section; context: { label: 'samplingDecl', items: data?.samplingDecl, class: 'samplingDecl' }"></ng-container>
  5. <ng-container *ngTemplateOutlet="section; context: { label: 'editorialDecl', items: data?.editorialDecl, class: 'editorialDecl' }"></ng-container>
  6. <ng-container *ngTemplateOutlet="section; context: { label: 'tagsDecl', items: data?.tagsDecl, class: 'tagsDecl' }"></ng-container>
  7. <ng-container *ngTemplateOutlet="section; context: { label: 'refsDecl', items: data?.refsDecl, class: 'refsDecl' }"></ng-container>
  8. <ng-container *ngTemplateOutlet="section; context: { label: 'classDecl', items: data?.classDecl, class: 'classDecl' }"></ng-container>
  9. <ng-container *ngTemplateOutlet="section; context: { label: 'geoDecl', items: data?.geoDecl, class: 'geoDecl' }"></ng-container>
  10. <ng-container *ngTemplateOutlet="section; context: { label: 'unitDecl', items: data?.unitDecl, class: 'unitDecl' }"></ng-container>
  11. <ng-container *ngTemplateOutlet="section; context: { label: 'schemaSpec', items: data?.schemaSpec, class: 'schemaSpec' }"></ng-container>
  12. <ng-container *ngTemplateOutlet="section; context: { label: 'schemaRef', items: data?.schemaRef, class: 'schemaRef' }"></ng-container>
  13. </ng-container>
  14. <ng-container *ngSwitchDefault>
  15. <evt-content-viewer *ngFor="let element of data?.content" [content]="element"></evt-content-viewer>
  16. </ng-container>
  17. </ng-container>
  18. <ng-template #section let-label="label" let-items="items" let-class="class">
  19. <ng-container *ngIf="items?.length > 0" >
  20. <h4 *ngIf="label" class="main-section-title">{{ label | translate }}</h4>
  21. <evt-header-section [additionalClass]="class">
  22. <div content>
  23. <evt-content-viewer *ngFor="let item of items" [content]="item"></evt-content-viewer>
  24. </div>
  25. </evt-header-section>
  26. </ng-container>
  27. </ng-template>