Skip to content

Commit 48b8f4b

Browse files
vNovskiDavide Negretti
authored andcommitted
Merged in DSC-1387-export-menu-in-person-entity-main-cris (pull request DSpace#1315)
DSC-1387 export menu in person entity main cris Approved-by: Davide Negretti
2 parents 4c2d08c + 02d4e04 commit 48b8f4b

9 files changed

Lines changed: 25 additions & 7 deletions

File tree

src/app/core/data/processes/process-data.service.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ export class ProcessDataService extends IdentifiableDataService<Process> impleme
6868
/**
6969
* Get a process' output files
7070
* @param processId The ID of the process
71+
* @param useCacheVersionIfAvailable If value needs to be red from cache or not
7172
*/
72-
getFiles(processId: string): Observable<RemoteData<PaginatedList<Bitstream>>> {
73+
getFiles(processId: string, useCacheVersionIfAvailable = true): Observable<RemoteData<PaginatedList<Bitstream>>> {
7374
const href$ = this.getFilesEndpoint(processId);
74-
return this.bitstreamDataService.findListByHref(href$);
75+
return this.bitstreamDataService.findListByHref(href$, {}, useCacheVersionIfAvailable);
7576
}
7677

7778
/**

src/app/process-page/detail/process-detail.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export class ProcessDetailComponent implements OnInit, OnDestroy {
146146

147147
this.filesRD$ = this.processRD$.pipe(
148148
getFirstSucceededRemoteDataPayload(),
149-
switchMap((process: Process) => this.processService.getFiles(process.processId))
149+
switchMap((process: Process) => this.processService.getFiles(process.processId, false)),
150150
);
151151
}
152152

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<div *ngIf="logo" class="dso-logo mb-3">
2-
<img [src]="logo._links.content.href" class="img-fluid" [attr.alt]="alternateText ? alternateText : null" (error)="errorHandler($event)"/>
2+
<img [src]="logo._links.content.href" class="w-100 img-fluid" [attr.alt]="alternateText ? alternateText : null" (error)="errorHandler($event)"/>
33
</div>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
img {
2+
max-width: var(--ds-comcol-logo-max-width);
3+
max-height: var(--ds-comcol-logo-max-height);
4+
}

src/app/shared/dso-selector/dso-selector/dso-selector.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
[formControl]="input" ngbAutofocus (keyup.enter)="selectSingleResult()">
77
</div>
88
<div class="dropdown-divider"></div>
9-
<div class="scrollable-menu list-group">
9+
<div id="scrollable-menu-dso-selector-{{randomSeed}}" class="scrollable-menu list-group">
1010
<div
1111
infiniteScroll
1212
[infiniteScrollDistance]="1"
1313
[infiniteScrollThrottle]="0"
14-
[infiniteScrollContainer]="'.scrollable-menu'"
14+
[infiniteScrollContainer]="'#scrollable-menu-dso-selector-' + randomSeed"
1515
[fromRoot]="true"
1616
(scrolled)="onScrollDown()">
1717
<ng-container *ngIf="listEntries$ | async">

src/app/shared/dso-selector/dso-selector/dso-selector.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ export class DSOSelectorComponent implements OnInit, OnDestroy {
142142
*/
143143
public subs: Subscription[] = [];
144144

145+
/**
146+
* Random seed of 4 characters to avoid duplicate ids
147+
*/
148+
randomSeed: string = Math.random().toString(36).substring(2, 6);
149+
145150
constructor(
146151
protected searchService: SearchService,
147152
protected notifcationsService: NotificationsService,
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
:host {
22
display: none;
33
}
4+
5+
.dropdown-menu {
6+
z-index: 1020;
7+
}

src/app/shared/search/search.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
</ng-template>
9797

9898
<ng-template #searchForm>
99-
<div class="d-flex flex-wrap flex-xl-nowrap search-form-flex-wrapper">
99+
<div class="d-flex flex-wrap flex-xl-nowrap search-form-flex-wrapper" [class.justify-content-end]="!searchEnabled">
100100
<div *ngIf="!(isXsOrSm$ | async) && showFilterToggle && showSidebar">
101101
<button class="btn btn-outline-secondary"
102102
ngbTooltip="{{'search.sidebar.show.hide.filters.tooltip' | translate}}"

src/styles/_custom_variables.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,8 @@
140140
--ds-dso-edit-security-width: 136px;
141141
--ds-dso-edit-actions-width: 173px;
142142
--ds-dso-edit-virtual-tooltip-min-width: 300px;
143+
144+
145+
--ds-comcol-logo-max-width: 500px;
146+
--ds-comcol-logo-max-height: 500px;
143147
}

0 commit comments

Comments
 (0)