mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00

# Conflicts: # src/app/shared/object-list/metadata-representation-list-element/metadata-representation-list-element.component.ts # src/app/shared/object-list/metadata-representation-list-element/plain-text/plain-text-metadata-list-element.component.html # src/app/shared/object-list/my-dspace-result-list-element/claimed-search-result/claimed-search-result-list-element.component.ts # src/app/shared/object-list/my-dspace-result-list-element/pool-search-result/pool-search-result-list-element.component.ts # src/app/shared/shared.module.ts # src/app/shared/theme-support/themed.component.ts # src/themes/custom/lazy-theme.module.ts
46 lines
2.1 KiB
HTML
46 lines
2.1 KiB
HTML
<div class="card" [@focusShadow]="(isCollapsed$ | async)?'blur':'focus'">
|
|
<ds-truncatable [id]="dso.id">
|
|
<div class="position-absolute ml-1">
|
|
<ng-content></ng-content>
|
|
</div>
|
|
<a *ngIf="linkType != linkTypes.None"
|
|
[target]="(linkType == linkTypes.ExternalLink) ? '_blank' : '_self'"
|
|
rel="noopener noreferrer" [routerLink]="[itemPageRoute]"
|
|
class="card-img-top full-width" [attr.title]="'search.results.view-result' | translate">
|
|
<div>
|
|
<ds-themed-thumbnail [thumbnail]="dso?.thumbnail | async" [limitWidth]="false">
|
|
</ds-themed-thumbnail>
|
|
</div>
|
|
</a>
|
|
<span *ngIf="linkType == linkTypes.None" class="card-img-top full-width">
|
|
<div>
|
|
<ds-themed-thumbnail [thumbnail]="dso?.thumbnail | async" [limitWidth]="false">
|
|
</ds-themed-thumbnail>
|
|
</div>
|
|
</span>
|
|
<div class="card-body">
|
|
<ds-themed-badges *ngIf="showLabel" [object]="dso" [context]="context"></ds-themed-badges>
|
|
<ds-truncatable-part [id]="dso.id" [minLines]="3" type="h4">
|
|
<h4 class="card-title" [innerHTML]="dsoTitle"></h4>
|
|
</ds-truncatable-part>
|
|
<p *ngIf="dso.hasMetadata('creativework.datePublished')"
|
|
class="item-date card-text text-muted">
|
|
<ds-truncatable-part [id]="dso.id" [minLines]="1">
|
|
<span [innerHTML]="firstMetadataValue('creativework.datePublished')"></span>
|
|
</ds-truncatable-part>
|
|
</p>
|
|
<p *ngIf="dso.hasMetadata('dc.description')" class="item-description card-text">
|
|
<ds-truncatable-part [id]="dso.id" [minLines]="3">
|
|
<span [innerHTML]="firstMetadataValue('dc.description')"></span>
|
|
</ds-truncatable-part>
|
|
</p>
|
|
<div *ngIf="linkType != linkTypes.None" class="text-center">
|
|
<a [target]="(linkType == linkTypes.ExternalLink) ? '_blank' : '_self'"
|
|
rel="noopener noreferrer" [routerLink]="[itemPageRoute]"
|
|
class="lead btn btn-primary viewButton">{{ 'search.results.view-result' | translate}}</a>
|
|
</div>
|
|
</div>
|
|
</ds-truncatable>
|
|
<ng-content></ng-content>
|
|
</div>
|