mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 13:33:03 +00:00
46063: removed ellipsis, added other animations..
This commit is contained in:
@@ -1,28 +1,23 @@
|
||||
<ds-truncatable [id]="dso.id">
|
||||
<div class="card">
|
||||
<a [@slide]="(isCollapsed() | async)? 'expanded' : 'collapsed'"
|
||||
[routerLink]="['/items/' + dso.id]" class="card-img-top full-width">
|
||||
<div class="card mt-1" [@focusShadow]="(isCollapsed() | async)?'blur':'focus'">
|
||||
<a [routerLink]="['/items/' + dso.id]" class="card-img-top full-width">
|
||||
<div>
|
||||
<ds-grid-thumbnail [thumbnail]="dso.getThumbnail()">
|
||||
</ds-grid-thumbnail>
|
||||
<div [@overlay]="(isCollapsed() | async)? 'hide' : 'show'"
|
||||
class="thumbnail-overlay"></div>
|
||||
</div>
|
||||
</a>
|
||||
<div class="card-body">
|
||||
<ds-truncatable-part [id]="dso.id" [minLines]="1" [maxLines]="3" type="h4">
|
||||
<h4 class="card-title" [innerHTML]="dso.findMetadata('dc.title')"></h4>
|
||||
</ds-truncatable-part>
|
||||
<h4 class="card-title" [innerHTML]="dso.findMetadata('dc.title')"></h4>
|
||||
<p *ngIf="dso.filterMetadata(['dc.contributor.author', 'dc.creator', 'dc.contributor.*'])"
|
||||
class="item-authors card-text text-muted">
|
||||
<ds-truncatable-part [id]="dso.id" [minLines]="1" [maxLines]="3">
|
||||
<ds-truncatable-part [id]="dso.id" [minLines]="1">
|
||||
<span *ngIf="dso.findMetadata('dc.date.issued')" class="item-list-date">{{dso.findMetadata("dc.date.issued")}}</span>
|
||||
<span *ngFor="let authorMd of dso.filterMetadata(['dc.contributor.author', 'dc.creator', 'dc.contributor.*']);">,
|
||||
<span [innerHTML]="authorMd.value"></span>
|
||||
</span>
|
||||
</ds-truncatable-part>
|
||||
</p>
|
||||
<ds-truncatable-part [id]="dso.id" [minLines]="3" [maxLines]="15">
|
||||
<ds-truncatable-part [id]="dso.id" [minLines]="3">
|
||||
<p class="item-abstract card-text"
|
||||
[innerHTML]="getFirstValue('dc.description.abstract')">
|
||||
</p>
|
||||
@@ -32,6 +27,5 @@
|
||||
class="lead btn btn-primary viewButton">View</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</ds-truncatable>
|
@@ -5,14 +5,13 @@ import { SearchResultGridElementComponent } from '../search-result-grid-element.
|
||||
import { Item } from '../../../../core/shared/item.model';
|
||||
import { ItemSearchResult } from '../../../object-collection/shared/item-search-result.model';
|
||||
import { ViewMode } from '../../../../+search-page/search-options.model';
|
||||
import { slide } from '../../../animations/slide';
|
||||
import { overlay } from '../../../animations/overlay';
|
||||
import { focusShadow } from '../../../../shared/animations/focus';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-item-search-result-grid-element',
|
||||
styleUrls: ['../search-result-grid-element.component.scss', 'item-search-result-grid-element.component.scss'],
|
||||
templateUrl: 'item-search-result-grid-element.component.html',
|
||||
animations: [slide, overlay],
|
||||
animations: [focusShadow],
|
||||
})
|
||||
|
||||
@renderElementsFor(ItemSearchResult, ViewMode.Grid)
|
||||
|
Reference in New Issue
Block a user