Skip to content

Commit

Permalink
src/app: add related video link to relations
Browse files Browse the repository at this point in the history
Add related video link to relations on simple item page page.
  • Loading branch information
alanorth committed May 19, 2024
1 parent 2737bef commit 932c7f5
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="item-page-field" *ngIf="item.hasMetadata(['dcterms.relation', 'cg.link.citation', 'cg.identifier.dataurl'])">
<div class="item-page-field" *ngIf="item.hasMetadata(['dcterms.relation', 'cg.link.citation', 'cg.link.video', 'cg.identifier.dataurl'])">
<div class="simple-view-element">
<h5>Related Material</h5>
<div class="simple-view-element-body">
Expand All @@ -25,6 +25,17 @@ <h5>Related Material</h5>
</div>
</ng-container>

<ng-container *ngIf="item.hasMetadata('cg.link.video')">
<div class="mb-2">Related video:
<ng-container *ngFor="let mdValue of item?.allMetadata('cg.link.video'); let last=last;">
<ng-container [ngTemplateOutlet]="relatedLink"
[ngTemplateOutletContext]="{value: mdValue.value}">
</ng-container>
<span *ngIf="!last">; </span>
</ng-container>
</div>
</ng-container>

<ng-container *ngIf="item.hasMetadata('cg.link.citation')">
<ng-container *ngFor="let mdValue of item?.allMetadata('cg.link.citation')"
[ngTemplateOutlet]="relatedCitation"
Expand Down

0 comments on commit 932c7f5

Please sign in to comment.