Skip to content

Commit

Permalink
src: override item-search-result list
Browse files Browse the repository at this point in the history
Default DSpace uses many DC metadata fields, but we use DCTERMS, so
they don't show up. I don't think it's possible to override this
component in themes yet.
  • Loading branch information
alanorth committed Sep 5, 2023
1 parent 07a4a9d commit 87de013
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
[innerHTML]="dsoTitle"></span>
<span class="text-muted">
<ds-truncatable-part [id]="dso.id" [minLines]="1">
<ng-container *ngIf="dso.firstMetadataValue('dc.publisher') || dso.firstMetadataValue('dc.date.issued')">
(<span *ngIf="dso.firstMetadataValue('dc.publisher')" class="item-list-publisher" [innerHTML]="firstMetadataValue('dc.publisher')"></span>
<span *ngIf="dso.firstMetadataValue('dc.publisher') && dso.firstMetadataValue('dc.date.issued')">, </span>
<span *ngIf="dso.firstMetadataValue('dc.date.issued')" class="item-list-date" [innerHTML]="firstMetadataValue('dc.date.issued')"></span>)
<ng-container *ngIf="dso.firstMetadataValue('dcterms.publisher') || dso.firstMetadataValue('dcterms.issued')">
(<span *ngIf="dso.firstMetadataValue('dcterms.publisher')" class="item-list-publisher" [innerHTML]="firstMetadataValue('dcterms.publisher')"></span>
<span *ngIf="dso.firstMetadataValue('dcterms.publisher') && dso.firstMetadataValue('dcterms.issued')">, </span>
<span *ngIf="dso.firstMetadataValue('dcterms.issued')" class="item-list-date" [innerHTML]="firstMetadataValue('dcterms.issued')"></span>)
</ng-container>
<span *ngIf="dso.allMetadata(['dc.contributor.author', 'dc.creator', 'dc.contributor.*']).length > 0" class="item-list-authors">
<span *ngFor="let author of allMetadataValues(['dc.contributor.author', 'dc.creator', 'dc.contributor.*']); let last=last;">
Expand All @@ -36,9 +36,9 @@
</span>
</ds-truncatable-part>
</span>
<div *ngIf="dso.firstMetadataValue('dc.description.abstract')" class="item-list-abstract">
<div *ngIf="dso.firstMetadataValue('dcterms.abstract')" class="item-list-abstract">
<ds-truncatable-part [id]="dso.id" [minLines]="3"><span
[innerHTML]="firstMetadataValue('dc.description.abstract')"></span>
[innerHTML]="firstMetadataValue('dcterms.abstract')"></span>
</ds-truncatable-part>
</div>
</ds-truncatable>
Expand Down

0 comments on commit 87de013

Please sign in to comment.