mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 06:53:03 +00:00
Moved showAccessStatus to be self-contained
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
</span>
|
||||
<div class="card-body">
|
||||
<ds-type-badge *ngIf="showLabel" [object]="dso"></ds-type-badge>
|
||||
<ds-access-status-badge *ngIf="showAccessStatus" [uuid]="dso.uuid"></ds-access-status-badge>
|
||||
<ds-access-status-badge [uuid]="dso.uuid"></ds-access-status-badge>
|
||||
<ds-truncatable-part [id]="dso.id" [minLines]="3" type="h4">
|
||||
<h4 class="card-title" [innerHTML]="firstMetadataValue('dc.title')"></h4>
|
||||
</ds-truncatable-part>
|
||||
|
@@ -6,7 +6,6 @@ import { SearchResultGridElementComponent } from '../../search-result-grid-eleme
|
||||
import { Item } from '../../../../../core/shared/item.model';
|
||||
import { ItemSearchResult } from '../../../../object-collection/shared/item-search-result.model';
|
||||
import { getItemPageRoute } from '../../../../../item-page/item-page-routing-paths';
|
||||
import { environment } from 'src/environments/environment';
|
||||
|
||||
@listableObjectComponent('PublicationSearchResult', ViewMode.GridElement)
|
||||
@listableObjectComponent(ItemSearchResult, ViewMode.GridElement)
|
||||
@@ -24,14 +23,9 @@ export class ItemSearchResultGridElementComponent extends SearchResultGridElemen
|
||||
* Route to the item's page
|
||||
*/
|
||||
itemPageRoute: string;
|
||||
/**
|
||||
* Whether to show the access status badge or not
|
||||
*/
|
||||
showAccessStatus: boolean;
|
||||
|
||||
ngOnInit(): void {
|
||||
super.ngOnInit();
|
||||
this.itemPageRoute = getItemPageRoute(this.dso);
|
||||
this.showAccessStatus = environment.item.showAccessStatuses;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user