Skip to content

Commit 41d7c82

Browse files
committed
[DSC-1864] Fix issue after merge
1 parent 9887edb commit 41d7c82

4 files changed

Lines changed: 11 additions & 5 deletions

File tree

src/app/core/data/bitstream-data.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export class BitstreamDataService extends IdentifiableDataService<Bitstream> imp
176176
searchParams.push(new RequestParam('sequenceId', sequenceId));
177177
}
178178
if (hasValue(filename)) {
179-
searchParams.push(new RequestParam('filename', encodeURIComponent(filename)));
179+
searchParams.push(new RequestParam('filename', filename));
180180
}
181181

182182
const hrefObs = this.getSearchByHref(

src/app/shared/browse-most-elements/abstract-browse-elements.component.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { APP_CONFIG } from '../../../config/app-config.interface';
2020
import { BehaviorSubject, Observable, mergeMap } from 'rxjs';
2121
import { Item } from '../../core/shared/item.model';
2222
import { getItemPageRoute } from '../../item-page/item-page-routing-paths';
23+
import { TopSection } from '../../core/layout/models/section.model';
2324

2425
@Component({
2526
template: ''
@@ -63,6 +64,11 @@ export abstract class AbstractBrowseElementsComponent implements OnInit, OnChang
6364
*/
6465
@Input() showThumbnails = this.appConfig.browseBy.showThumbnails;
6566

67+
/**
68+
* TopSection object
69+
*/
70+
@Input() topSection: TopSection;
71+
6672
public collectionElementLinkTypeEnum = CollectionElementLinkType;
6773

6874
paginatedSearchOptions$: BehaviorSubject<PaginatedSearchOptions>;

src/app/shared/browse-most-elements/default-browse-elements/default-browse-elements.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="m-2">
22
<ng-container *ngIf="(searchResults$ | async) as searchResults">
33
<ul *ngIf="searchResults?.hasSucceeded" class="list-unstyled">
4-
<li *ngFor="let object of searchResults?.payload?.page; let i = index; let last = last" class="mt-4 mb-4 d-flex" [class.border-bottom]="true && !last">
4+
<li *ngFor="let object of searchResults?.payload?.page; let i = index; let last = last" class="mt-4 mb-4 d-flex" [class.border-bottom]="!last">
55
<ds-listable-object-component-loader [context]="context"
66
[index]="i"
77
[listID]="paginatedSearchOptions.configuration"

src/app/shared/form/builder/ds-dynamic-form-ui/models/scrollable-dropdown/dynamic-scrollable-dropdown.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class DsDynamicScrollableDropdownComponent extends DsDynamicVocabularyCom
7474
filterTextChanged: Subject<string> = new Subject<string>();
7575

7676
/**
77-
* The subscribtion to be utilized on destroy to remove filterTextChange subscription
77+
* The subscription to be utilized on destroy to remove filterTextChange subscription
7878
*/
7979
subSearch: Subscription;
8080

@@ -200,7 +200,7 @@ export class DsDynamicScrollableDropdownComponent extends DsDynamicVocabularyCom
200200
this.inputText += keyName;
201201
// When a new key is added, we need to reset the page info
202202
this.updatePageInfo(this.model.maxOptions, 1);
203-
this.retrieveEntries(null, false);
203+
this.retrieveEntries(this.inputText, false);
204204
}
205205

206206
removeKeyFromInput() {
@@ -209,7 +209,7 @@ export class DsDynamicScrollableDropdownComponent extends DsDynamicVocabularyCom
209209
if (this.inputText === '') {
210210
this.inputText = null;
211211
}
212-
this.retrieveEntries(null, false);
212+
this.retrieveEntries(this.inputText, false);
213213
}
214214
}
215215

0 commit comments

Comments
 (0)