From 6d10dee189c1e631c025004a52276c274507d6bc Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 13 Jul 2022 14:31:55 -0400 Subject: [PATCH] LP1904036 Ang Patron UI updating non-menu links Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- .../staff/booking/reservations-grid.component.ts | 8 +++++++- .../src/app/staff/catalog/catalog.component.html | 2 +- .../app/staff/catalog/result/record.component.html | 4 ++-- .../holdings/mark-damaged-dialog.component.html | 2 +- .../app/staff/share/holds/detail.component.html | 4 ++-- .../src/app/staff/share/holds/grid.component.html | 2 +- .../src/app/staff/share/holds/grid.component.ts | 8 +++++--- .../staff/admin/local/circ/neg_balance_users.tt2 | 2 +- .../staff/cat/bucket/batch_hold/t_pending.tt2 | 2 +- .../staff/cat/bucket/batch_hold/t_view.tt2 | 2 +- .../staff/cat/bucket/share/t_bucket_info.tt2 | 2 +- .../templates/staff/cat/item/t_circ_list_pane.tt2 | 6 +++--- .../src/templates/staff/cat/item/t_circs_pane.tt2 | 8 ++++---- .../src/templates/staff/cat/item/t_holds_pane.tt2 | 8 ++++---- Open-ILS/src/templates/staff/cat/item/t_list.tt2 | 2 +- .../src/templates/staff/circ/checkin/t_checkin.tt2 | 2 +- .../staff/circ/curbside/t_arrived_manager.tt2 | 2 +- .../staff/circ/curbside/t_delivered_manager.tt2 | 2 +- .../staff/circ/curbside/t_staged_manager.tt2 | 2 +- .../staff/circ/curbside/t_to_be_staged_manager.tt2 | 2 +- .../src/templates/staff/circ/holds/t_pull_list.tt2 | 2 +- .../staff/circ/patron/bucket/t_pending.tt2 | 2 +- .../templates/staff/circ/patron/bucket/t_view.tt2 | 2 +- .../staff/circ/share/t_event_override_dialog.tt2 | 2 +- Open-ILS/src/templates/staff/t_splash.tt2 | 4 ++-- 25 files changed, 46 insertions(+), 38 deletions(-) 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 8344ee5..92b23b8 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 17c7ffb..7de0b03 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 bc6ec77..09f258c 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 07e5c52..9510b4f 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 @@