forked from rero/rero-ils-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patrons: restore fee count and refactoring patron history
* Fixes count on fees tab and total on header. * Uses the `operation logs` inex to display the patron history. * Closes rero/rero-ils#2319. * Closes rero/rero-ils#1902. * Closes rero/rero-ils#1227. Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
- Loading branch information
1 parent
d36099a
commit a55d3ab
Showing
38 changed files
with
528 additions
and
414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
125 changes: 0 additions & 125 deletions
125
projects/admin/src/app/circulation/patron/history/history-item/history-item.component.html
This file was deleted.
Oops, something went wrong.
78 changes: 0 additions & 78 deletions
78
projects/admin/src/app/circulation/patron/history/history-item/history-item.component.ts
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
...src/app/circulation/patron/history/history-log-library/history-log-library.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- | ||
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 <http://www.gnu.org/licenses/>. | ||
--> | ||
<i class="fa fa-map-marker mr-1"></i> | ||
<ng-container *ngIf="location.library; else noLibrary"> | ||
{{ location.library.name }} | ||
</ng-container> | ||
<ng-template #noLibrary> | ||
{{ location.name }} | ||
</ng-template> |
49 changes: 49 additions & 0 deletions
49
.../app/circulation/patron/history/history-log-library/history-log-library.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* 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 <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { HistoryLogLibraryComponent } from './history-log-library.component'; | ||
|
||
describe('HistoryLogLibraryComponent', () => { | ||
let component: HistoryLogLibraryComponent; | ||
let fixture: ComponentFixture<HistoryLogLibraryComponent>; | ||
|
||
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(); | ||
}); | ||
}); |
Oops, something went wrong.