diff --git a/projects/rero/ng-core/src/lib/core/component/abstract-can-deactivate/abstract-can-deactivate.component.ts b/projects/rero/ng-core/src/lib/core/component/abstract-can-deactivate/abstract-can-deactivate.component.ts
index dd7d74d5f..3b7586cd4 100644
--- a/projects/rero/ng-core/src/lib/core/component/abstract-can-deactivate/abstract-can-deactivate.component.ts
+++ b/projects/rero/ng-core/src/lib/core/component/abstract-can-deactivate/abstract-can-deactivate.component.ts
@@ -1,6 +1,6 @@
/*
* RERO angular core
- * Copyright (C) 2023 RERO
+ * Copyright (C) 2023-2026 RERO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
@@ -30,9 +30,9 @@ export abstract class AbstractCanDeactivateComponent {
abstract canDeactivate: boolean;
@HostListener('window:beforeunload', ['$event'])
- unloadNotification($event: Event): void {
+ unloadNotification($event: BeforeUnloadEvent): void {
if (!this.canDeactivate) {
- $event.returnValue = true;
+ $event.preventDefault();
}
}
diff --git a/projects/rero/ng-core/src/lib/record/component/search/record-search/menu-sort/menu-sort.component.ts b/projects/rero/ng-core/src/lib/record/component/search/record-search/menu-sort/menu-sort.component.ts
index 7d7ac207d..4bbc0498e 100644
--- a/projects/rero/ng-core/src/lib/record/component/search/record-search/menu-sort/menu-sort.component.ts
+++ b/projects/rero/ng-core/src/lib/record/component/search/record-search/menu-sort/menu-sort.component.ts
@@ -21,7 +21,7 @@ import { TranslatePipe, TranslateService } from '@ngx-translate/core';
import { MenuItem, MenuItemCommandEvent } from 'primeng/api';
import { Button } from 'primeng/button';
import { Menu } from 'primeng/menu';
-import { SortOption } from '../../../../model/record-search.iterface';
+import { SortOption } from '../../../../model/record-search.interface';
import { RecordSearchStore } from '../../store/record-search.store';
@Component({
diff --git a/projects/rero/ng-core/src/lib/record/component/search/record-search/record-search.component.ts b/projects/rero/ng-core/src/lib/record/component/search/record-search/record-search.component.ts
index fc7ba6355..ec5db05d7 100644
--- a/projects/rero/ng-core/src/lib/record/component/search/record-search/record-search.component.ts
+++ b/projects/rero/ng-core/src/lib/record/component/search/record-search/record-search.component.ts
@@ -40,7 +40,7 @@ import { tap } from 'rxjs/operators';
import { ErrorComponent, SearchInputComponent, UpperCaseFirstPipe } from '../../../../core';
import { Aggregations, SearchField, SearchFilter, SearchFilterSection } from '../../../../model';
import { ActionStatus, DEFAULT_ACTION_STATUS } from '../../../../model/action-status.interface';
-import { ExportFormat } from '../../../model/record-search.iterface';
+import { ExportFormat } from '../../../model/record-search.interface';
import { ApiService } from '../../../service/api/api.service';
import { RecordUiService } from '../../../service/record-ui/record-ui.service';
import { RecordService } from '../../../service/record/record.service';
diff --git a/projects/rero/ng-core/src/lib/record/component/search/store/features/with-config.feature.ts b/projects/rero/ng-core/src/lib/record/component/search/store/features/with-config.feature.ts
index 0f8217e68..1c8d35cf3 100644
--- a/projects/rero/ng-core/src/lib/record/component/search/store/features/with-config.feature.ts
+++ b/projects/rero/ng-core/src/lib/record/component/search/store/features/with-config.feature.ts
@@ -20,7 +20,7 @@ import { patchState, signalStoreFeature, type, withComputed, withMethods, withSt
import { Observable, of, switchMap } from 'rxjs';
import { first } from 'rxjs/operators';
import { ActionStatus, RecordData } from '../../../../../model';
-import { RecordType } from '../../../../model/record-search.iterface';
+import { RecordType } from '../../../../model/record-search.interface';
import { shallowEqual } from '../../../../record-search-utils';
import { DefaultSearchResultComponent } from '../../record-search/record-search-result/default-search-result/default-search-result.component';
diff --git a/projects/rero/ng-core/src/lib/record/model/index.ts b/projects/rero/ng-core/src/lib/record/model/index.ts
index 6eba47aca..580cee0f0 100644
--- a/projects/rero/ng-core/src/lib/record/model/index.ts
+++ b/projects/rero/ng-core/src/lib/record/model/index.ts
@@ -16,5 +16,5 @@
* along with this program. If not, see .
*/
-export * from './record-search.iterface';
+export * from './record-search.interface';
export * from './result-item.interface';
diff --git a/projects/rero/ng-core/src/lib/record/model/record-search.iterface.ts b/projects/rero/ng-core/src/lib/record/model/record-search.interface.ts
similarity index 99%
rename from projects/rero/ng-core/src/lib/record/model/record-search.iterface.ts
rename to projects/rero/ng-core/src/lib/record/model/record-search.interface.ts
index 00b7b406c..e065cf8b8 100644
--- a/projects/rero/ng-core/src/lib/record/model/record-search.iterface.ts
+++ b/projects/rero/ng-core/src/lib/record/model/record-search.interface.ts
@@ -58,6 +58,7 @@ export interface ExportFormat {
endpoint: string;
disableMaxRestResultsSize: boolean;
}
+
export interface RecordType {
key: string;
label: string;