From: Bill Erickson Date: Wed, 13 Jul 2022 18:31:55 +0000 (-0400) Subject: LP1904036 Ang Patron UI updating non-menu links X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6d10dee189c1e631c025004a52276c274507d6bc;p=Evergreen.git LP1904036 Ang Patron UI updating non-menu links Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts b/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts index 8344ee561a..92b23b87d5 100644 --- a/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/booking/reservations-grid.component.ts @@ -1,4 +1,5 @@ import {Component, EventEmitter, Input, Output, OnChanges, OnInit, ViewChild} from '@angular/core'; +import {Location} from '@angular/common'; import {Router} from '@angular/router'; import {Observable, from, of} from 'rxjs'; import {tap, switchMap, mergeMap} from 'rxjs/operators'; @@ -75,6 +76,7 @@ export class ReservationsGridComponent implements OnChanges, OnInit { returnNotAppropriate: (rows: IdlObject[]) => boolean; constructor( + private ngLocation: Location, private auth: AuthService, private format: FormatService, private pcrud: PcrudService, @@ -171,7 +173,11 @@ export class ReservationsGridComponent implements OnChanges, OnInit { this.viewPatronRecord = (reservations: IdlObject[]) => { const patronIds = reservations.map(reservation => reservation.usr().id()); - window.open('/eg/staff/circ/patron/' + patronIds[0] + '/checkout'); + window.open( + this.ngLocation.prepareExternalUrl( + '/staff/circ/patron/' + patronIds[0] + '/checkout' + ) + ); }; this.noSelectedRows = (rows: IdlObject[]) => (rows.length === 0); diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/catalog.component.html b/Open-ILS/src/eg2/src/app/staff/catalog/catalog.component.html index 17c7ffb8d2..7de0b03a0e 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/catalog.component.html +++ b/Open-ILS/src/eg2/src/app/staff/catalog/catalog.component.html @@ -6,7 +6,7 @@
Placing hold for patron - + {{holdForUser().pref_family_name() || holdForUser().family_name()}}, {{holdForUser().pref_first_given_name() || holdForUser().first_given_name()}} . diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.html b/Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.html index bc6ec77ff1..09f258c8f7 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.html +++ b/Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.html @@ -177,7 +177,7 @@ Created {{summary.record.create_date() | date:'shortDate'}} by + routerLink="/staff/circ/patron/{{summary.record.creator().id()}}/checkout"> {{summary.record.creator().usrname()}} @@ -190,7 +190,7 @@
Edited {{summary.record.edit_date() | date:'shortDate'}} by + routerLink="/staff/circ/patron/{{summary.record.editor().id()}}/checkout"> {{summary.record.editor().usrname()}} ... diff --git a/Open-ILS/src/eg2/src/app/staff/share/holdings/mark-damaged-dialog.component.html b/Open-ILS/src/eg2/src/app/staff/share/holdings/mark-damaged-dialog.component.html index 07e5c523bf..9510b4f64f 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/holdings/mark-damaged-dialog.component.html +++ b/Open-ILS/src/eg2/src/app/staff/share/holdings/mark-damaged-dialog.component.html @@ -32,7 +32,7 @@