Skip to content

Commit 7acc8c8

Browse files
committed
94060: Added thumbnail embed for submission object search results and added offset to status badge for mydspace results
1 parent 1355fb1 commit 7acc8c8

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

src/app/shared/object-list/my-dspace-result-list-element/workflow-item-search-result/workflow-item-search-result-list-element.component.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<ng-container *ngIf="derivedSearchResult$ | async">
2-
<ds-mydspace-item-status [status]="status"></ds-mydspace-item-status>
2+
<div class="row">
3+
<div [ngClass]="showThumbnails ? 'offset-3 offset-md-2 pl-3' : ''">
4+
<ds-mydspace-item-status [status]="status"></ds-mydspace-item-status>
5+
</div>
6+
</div>
37
<ds-listable-object-component-loader
48
[viewMode]="ViewModes.ListElement"
59
[object]="derivedSearchResult$ | async" [linkType]="LinkTypes.None"></ds-listable-object-component-loader>

src/app/shared/object-list/my-dspace-result-list-element/workspace-item-search-result/workspace-item-search-result-list-element.component.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<ng-container *ngIf="derivedSearchResult$ | async">
2-
<ds-mydspace-item-status [status]="status"></ds-mydspace-item-status>
2+
<div class="row">
3+
<div [ngClass]="showThumbnails ? 'offset-3 offset-md-2 pl-3' : ''">
4+
<ds-mydspace-item-status [status]="status"></ds-mydspace-item-status>
5+
</div>
6+
</div>
37
<ds-listable-object-component-loader
48
[viewMode]="ViewModes.ListElement"
59
[object]="derivedSearchResult$ | async" [linkType]="LinkTypes.None"></ds-listable-object-component-loader>

src/app/shared/search/search.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import { SelectionConfig } from './search-results/search-results.component';
3232
import { ListableObject } from '../object-collection/shared/listable-object.model';
3333
import { CollectionElementLinkType } from '../object-collection/collection-element-link.type';
3434
import { environment } from 'src/environments/environment';
35+
import { SubmissionObject } from '../../core/submission/models/submission-object.model';
3536

3637
@Component({
3738
selector: 'ds-search',
@@ -362,6 +363,7 @@ export class SearchComponent implements OnInit {
362363
this.useCachedVersionIfAvailable,
363364
true,
364365
followLink<Item>('thumbnail', { isOptional: true }),
366+
followLink<SubmissionObject>('item', { isOptional: true }, followLink<Item>('thumbnail', { isOptional: true })) as any,
365367
followLink<Item>('accessStatus', { isOptional: true, shouldEmbed: environment.item.showAccessStatuses })
366368
).pipe(getFirstCompletedRemoteData())
367369
.subscribe((results: RemoteData<SearchObjects<DSpaceObject>>) => {

0 commit comments

Comments
 (0)