diff --git a/projects/admin/src/app/circulation/circulation.module.ts b/projects/admin/src/app/circulation/circulation.module.ts
index 6052f46e7..833bf3791 100644
--- a/projects/admin/src/app/circulation/circulation.module.ts
+++ b/projects/admin/src/app/circulation/circulation.module.ts
@@ -22,8 +22,11 @@ import { RecordModule } from '@rero/ng-core';
import { SharedModule } from '@rero/shared';
import { ButtonModule } from 'primeng/button';
import { DynamicDialogModule } from 'primeng/dynamicdialog';
+import { InputSwitchModule } from 'primeng/inputswitch';
import { MenuModule } from 'primeng/menu';
+import { MessagesModule } from 'primeng/messages';
import { RippleModule } from 'primeng/ripple';
+import { SplitButtonModule } from 'primeng/splitbutton';
import { TabMenuModule } from 'primeng/tabmenu';
import { TagModule } from 'primeng/tag';
import { JournalVolumePipe } from 'projects/public-search/src/app/pipe/journal-volume.pipe';
@@ -38,7 +41,6 @@ import { RequestedItemsListComponent } from './main-request/requested-items-list
import { CancelRequestButtonComponent } from './patron/cancel-request-button.component';
import { CardComponent } from './patron/card/card.component';
import { ChangePasswordFormComponent } from './patron/change-password-form/change-password-form.component';
-import { HistoryLogLibraryComponent } from './patron/history/history-log-library/history-log-library.component';
import { HistoryLogComponent } from './patron/history/history-log/history-log.component';
import { HistoryComponent } from './patron/history/history.component';
import { IllRequestItemComponent } from './patron/ill-request/ill-request-item/ill-request-item.component';
@@ -97,7 +99,6 @@ import { GetLoanCipoPipe } from './pipe/get-loan-cipo.pipe';
FixedDateFormComponent,
OverdueTransactionComponent,
HistoryLogComponent,
- HistoryLogLibraryComponent,
GetLoanCipoPipe,
CheckinActionComponent,
PatronFeeComponent,
@@ -120,7 +121,10 @@ import { GetLoanCipoPipe } from './pipe/get-loan-cipo.pipe';
TagModule,
ButtonModule,
TabMenuModule,
- RippleModule
+ RippleModule,
+ MessagesModule,
+ InputSwitchModule,
+ SplitButtonModule
],
providers: [
CurrencyPipe
diff --git a/projects/admin/src/app/circulation/circulation.scss b/projects/admin/src/app/circulation/circulation.scss
index f5d1c379d..2e8057c8b 100644
--- a/projects/admin/src/app/circulation/circulation.scss
+++ b/projects/admin/src/app/circulation/circulation.scss
@@ -1,6 +1,6 @@
/*
* RERO ILS UI
- * Copyright (C) 2023 RERO
+ * Copyright (C) 2023-2024 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
@@ -18,12 +18,6 @@
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
- .btn-hover {
- color: $black;
- background-color: $warning;
- // could be better to use ``@extend .btn:hover`` but it doesn't work for hover property
- }
-
.item {
margin-bottom: map-get($spacers, 1) !important;
padding: map-get($spacers, 1) !important;
diff --git a/projects/admin/src/app/circulation/main-request/main-request.component.html b/projects/admin/src/app/circulation/main-request/main-request.component.html
index d44b75119..b75250f6d 100644
--- a/projects/admin/src/app/circulation/main-request/main-request.component.html
+++ b/projects/admin/src/app/circulation/main-request/main-request.component.html
@@ -14,33 +14,27 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
-->
-
diff --git a/projects/admin/src/app/circulation/main-request/main-request.component.ts b/projects/admin/src/app/circulation/main-request/main-request.component.ts
index 55f3b090d..433da8321 100644
--- a/projects/admin/src/app/circulation/main-request/main-request.component.ts
+++ b/projects/admin/src/app/circulation/main-request/main-request.component.ts
@@ -198,14 +198,6 @@ export class MainRequestComponent implements OnInit, OnDestroy {
}
}
- /**
- * Function used when detail collapsed is clicked
- * @param state: the toggle switch state
- */
- toggleDetailCollapsed(state: boolean): void {
- this.isDetailCollapsed = state;
- }
-
/**
* Function used when auto-refresh is toggled
* @param state: the toggle switch state
diff --git a/projects/admin/src/app/circulation/main-request/requested-item/requested-item.component.html b/projects/admin/src/app/circulation/main-request/requested-item/requested-item.component.html
index e4427c26c..aa02b786f 100644
--- a/projects/admin/src/app/circulation/main-request/requested-item/requested-item.component.html
+++ b/projects/admin/src/app/circulation/main-request/requested-item/requested-item.component.html
@@ -14,28 +14,22 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
-->
-
@if (document) {
-
diff --git a/projects/admin/src/app/circulation/main-request/requested-items-list/requested-items-list.component.html b/projects/admin/src/app/circulation/main-request/requested-items-list/requested-items-list.component.html
index 1064d854d..5eaee360f 100644
--- a/projects/admin/src/app/circulation/main-request/requested-items-list/requested-items-list.component.html
+++ b/projects/admin/src/app/circulation/main-request/requested-items-list/requested-items-list.component.html
@@ -15,7 +15,7 @@
along with this program. If not, see .
-->
-
}
diff --git a/projects/admin/src/app/circulation/patron/card/card.component.scss b/projects/admin/src/app/circulation/patron/card/card.component.scss
index ee2357705..a3ed182c0 100644
--- a/projects/admin/src/app/circulation/patron/card/card.component.scss
+++ b/projects/admin/src/app/circulation/patron/card/card.component.scss
@@ -1,6 +1,6 @@
/*
* RERO ILS UI
- * Copyright (C) 2019 RERO
+ * Copyright (C) 2019-2024 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
@@ -14,18 +14,11 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
-
-.user-icon {
- line-height: 90px;
- i {
- vertical-align: bottom;
- }
-}
-
.blink {
animation: blink-animation 1s steps(5, start) infinite;
-webkit-animation: blink-animation 1s steps(5, start) infinite;
}
+
@keyframes blink-animation {
to {
visibility: hidden;
diff --git a/projects/admin/src/app/circulation/patron/card/card.component.ts b/projects/admin/src/app/circulation/patron/card/card.component.ts
index f1bd94e0d..a0ee6920d 100644
--- a/projects/admin/src/app/circulation/patron/card/card.component.ts
+++ b/projects/admin/src/app/circulation/patron/card/card.component.ts
@@ -15,9 +15,9 @@
* along with this program. If not, see .
*/
import { Component, EventEmitter, inject, Input, Output } from '@angular/core';
-import { getBootstrapLevel } from '../../../utils/utils';
-import { CirculationService } from '../../services/circulation.service';
import { DateTime } from 'luxon';
+import { getSeverity } from '../../../utils/utils';
+import { CirculationService } from '../../services/circulation.service';
@Component({
selector: 'admin-circulation-patron-detailed',
@@ -84,12 +84,12 @@ export class CardComponent {
}
/**
- * Get bootstrap color by level
+ * Get message severity
* @param level - string
* @return string
*/
- getBootstrapColor(level: string): string {
- return getBootstrapLevel(level);
+ getMessageSeverity(level: string): string {
+ return getSeverity(level);
}
}
diff --git a/projects/admin/src/app/circulation/patron/history/history-log-library/history-log-library.component.html b/projects/admin/src/app/circulation/patron/history/history-log-library/history-log-library.component.html
deleted file mode 100644
index 2c1df37b8..000000000
--- a/projects/admin/src/app/circulation/patron/history/history-log-library/history-log-library.component.html
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-@if (location.library) {
- {{ location.library.name }}
-} @else {
- {{ location.name }}
-}
diff --git a/projects/admin/src/app/circulation/patron/history/history-log-library/history-log-library.component.spec.ts b/projects/admin/src/app/circulation/patron/history/history-log-library/history-log-library.component.spec.ts
deleted file mode 100644
index 38b563f42..000000000
--- a/projects/admin/src/app/circulation/patron/history/history-log-library/history-log-library.component.spec.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * RERO ILS UI
- * Copyright (C) 2021 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
- * the Free Software Foundation, version 3 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-import { HistoryLogLibraryComponent } from './history-log-library.component';
-
-describe('HistoryLogLibraryComponent', () => {
- let component: HistoryLogLibraryComponent;
- let fixture: ComponentFixture;
-
- const location = {
- library: {
- name: 'library name',
- pid: '1'
- }
- };
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- declarations: [HistoryLogLibraryComponent]
- })
- .compileComponents();
- });
-
- beforeEach(() => {
- fixture = TestBed.createComponent(HistoryLogLibraryComponent);
- component = fixture.componentInstance;
- component.location = location;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/projects/admin/src/app/circulation/patron/history/history-log-library/history-log-library.component.ts b/projects/admin/src/app/circulation/patron/history/history-log-library/history-log-library.component.ts
deleted file mode 100644
index 8b04dafeb..000000000
--- a/projects/admin/src/app/circulation/patron/history/history-log-library/history-log-library.component.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * RERO ILS UI
- * Copyright (C) 2021 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
- * the Free Software Foundation, version 3 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- */
-
-import { Component, Input } from '@angular/core';
-
-@Component({
- selector: 'admin-history-log-library',
- templateUrl: './history-log-library.component.html'
-})
-export class HistoryLogLibraryComponent {
-
- /** Transaction location */
- @Input() location: any;
-}
diff --git a/projects/admin/src/app/circulation/patron/history/history-log/history-log.component.html b/projects/admin/src/app/circulation/patron/history/history-log/history-log.component.html
index 7193680d1..f2851b3f0 100644
--- a/projects/admin/src/app/circulation/patron/history/history-log/history-log.component.html
+++ b/projects/admin/src/app/circulation/patron/history/history-log/history-log.component.html
@@ -18,12 +18,7 @@
diff --git a/projects/admin/src/app/circulation/patron/patron-transactions/patron-fee/patron-fee.component.html b/projects/admin/src/app/circulation/patron/patron-transactions/patron-fee/patron-fee.component.html
index 4095cb254..6a9dd471b 100644
--- a/projects/admin/src/app/circulation/patron/patron-transactions/patron-fee/patron-fee.component.html
+++ b/projects/admin/src/app/circulation/patron/patron-transactions/patron-fee/patron-fee.component.html
@@ -14,23 +14,12 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
-->
-@if (form) {
-