Skip to content

Commit

Permalink
[DSC-1864] Fix issue after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
atarix83 committed Oct 23, 2024
1 parent 9887edb commit 41d7c82
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/core/data/bitstream-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export class BitstreamDataService extends IdentifiableDataService<Bitstream> imp
searchParams.push(new RequestParam('sequenceId', sequenceId));
}
if (hasValue(filename)) {
searchParams.push(new RequestParam('filename', encodeURIComponent(filename)));
searchParams.push(new RequestParam('filename', filename));
}

const hrefObs = this.getSearchByHref(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { APP_CONFIG } from '../../../config/app-config.interface';
import { BehaviorSubject, Observable, mergeMap } from 'rxjs';
import { Item } from '../../core/shared/item.model';
import { getItemPageRoute } from '../../item-page/item-page-routing-paths';
import { TopSection } from '../../core/layout/models/section.model';

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

/**
* TopSection object
*/
@Input() topSection: TopSection;

public collectionElementLinkTypeEnum = CollectionElementLinkType;

paginatedSearchOptions$: BehaviorSubject<PaginatedSearchOptions>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="m-2">
<ng-container *ngIf="(searchResults$ | async) as searchResults">
<ul *ngIf="searchResults?.hasSucceeded" class="list-unstyled">
<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">
<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">
<ds-listable-object-component-loader [context]="context"
[index]="i"
[listID]="paginatedSearchOptions.configuration"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class DsDynamicScrollableDropdownComponent extends DsDynamicVocabularyCom
filterTextChanged: Subject<string> = new Subject<string>();

/**
* The subscribtion to be utilized on destroy to remove filterTextChange subscription
* The subscription to be utilized on destroy to remove filterTextChange subscription
*/
subSearch: Subscription;

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

removeKeyFromInput() {
Expand All @@ -209,7 +209,7 @@ export class DsDynamicScrollableDropdownComponent extends DsDynamicVocabularyCom
if (this.inputText === '') {
this.inputText = null;
}
this.retrieveEntries(null, false);
this.retrieveEntries(this.inputText, false);
}
}

Expand Down

0 comments on commit 41d7c82

Please sign in to comment.