
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Evergreen ILS". The branch, main has been updated via 6a3a51bb937badfb0fd8a3ac9d01a4f3bd11d23f (commit) from 0435f2f52a62aacac7476aaebb705938148a8035 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 6a3a51bb937badfb0fd8a3ac9d01a4f3bd11d23f Author: Stephanie Leary <stephanie.leary@equinoxoli.org> Date: Wed Mar 19 03:28:55 2025 +0000 LP2088096 Populate user email in report output options Sets the current user's email address as the default value for report output email field, if no address is saved via template. Also sets the autocomplete attribute and changes the input type to email for improved mobile user experience. Release-note: Sets user email as default for report output email option Signed-off-by: Stephanie Leary <stephanie.leary@equinoxoli.org> Signed-off-by: Steven Mayo <smayo@georgialibraries.org> Signed-off-by: Michele Morgan <mmorgan@noblenet.org> Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org> diff --git a/Open-ILS/src/eg2/src/app/staff/reporter/full/reporter-output-options.component.html b/Open-ILS/src/eg2/src/app/staff/reporter/full/reporter-output-options.component.html index 1c5186c1c6..479bd22848 100644 --- a/Open-ILS/src/eg2/src/app/staff/reporter/full/reporter-output-options.component.html +++ b/Open-ILS/src/eg2/src/app/staff/reporter/full/reporter-output-options.component.html @@ -133,7 +133,7 @@ <legend class="col-form-label col-sm-1 pt-0" i18n>Email</legend> <div class="col-sm-3 form-inline"> <label class="form-control-label me-sm-2" for="srEmail" i18n>Email Address</label> - <input [disabled]="disabled" class="form-control" type="text" id="srEmail" name="srEmail" [(ngModel)]="templ.email"> + <input [disabled]="disabled" class="form-control" type="email" autocomplete="email" id="srEmail" name="srEmail" [(ngModel)]="templ.email"> </div> </div> <div *ngIf="!advancedMode" class="form-group row"> diff --git a/Open-ILS/src/eg2/src/app/staff/reporter/full/reporter-output-options.component.ts b/Open-ILS/src/eg2/src/app/staff/reporter/full/reporter-output-options.component.ts index 0e0fddc063..438ffec97e 100644 --- a/Open-ILS/src/eg2/src/app/staff/reporter/full/reporter-output-options.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/reporter/full/reporter-output-options.component.ts @@ -1,16 +1,17 @@ /* eslint-disable */ -import {Component, Input} from '@angular/core'; +import {Component, Input, OnInit} from '@angular/core'; import {IdlService} from '@eg/core/idl.service'; import {ReporterService, SRTemplate} from '../share/reporter.service'; import {Tree} from '@eg/share/tree/tree'; import * as moment from 'moment-timezone'; +import { AuthService } from '@eg/core/auth.service'; @Component({ selector: 'eg-reporter-output-options', templateUrl: './reporter-output-options.component.html' }) -export class ReporterOutputOptionsComponent { +export class ReporterOutputOptionsComponent implements OnInit { @Input() advancedMode = false; @Input() disabled = false; @@ -23,6 +24,7 @@ export class ReporterOutputOptionsComponent { output_tree: Tree; constructor( + private auth: AuthService, private idl: IdlService, public RSvc: ReporterService ) { @@ -30,6 +32,13 @@ export class ReporterOutputOptionsComponent { this.output_tree = this.RSvc.myFolderTrees.outputs.clone({expanded:!this.RSvc.outputFolder}); } + ngOnInit(): void { + console.debug("User: ", this.auth.user()); + if (!this.templ.email) { + this.templ.email = this.auth.user().email(); + } + } + bibIdFields () { return this.templ.nonAggregateDisplayFields().filter( f => !!((f.type === 'link' && f.class === 'bre' && f.reltype === 'has_a' && f.key === 'id') || f.treeNodeId.endsWith('bre.id')) ----------------------------------------------------------------------- Summary of changes: .../reporter/full/reporter-output-options.component.html | 2 +- .../reporter/full/reporter-output-options.component.ts | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) hooks/post-receive -- Evergreen ILS