From: Bill Erickson Date: Wed, 12 Aug 2020 16:50:48 +0000 (-0400) Subject: LP1904036 Patron sesarch form improvements X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2391d636040f06b3f9803798efaae0916d9508d7;p=working%2FEvergreen.git LP1904036 Patron sesarch form improvements 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/share/patron/search.component.html b/Open-ILS/src/eg2/src/app/staff/share/patron/search.component.html index a6c3f1b8b9..952cb42558 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/patron/search.component.html +++ b/Open-ILS/src/eg2/src/app/staff/share/patron/search.component.html @@ -1,32 +1,34 @@
-
-
+
+
-
+
-
+
-
+
-
- +
+ +
+
-
-
-
-
+
+
-
+
-
+
-
+
-
- +
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+
+
-
+
-
+
diff --git a/Open-ILS/src/eg2/src/app/staff/share/patron/search.component.ts b/Open-ILS/src/eg2/src/app/staff/share/patron/search.component.ts index 004f68437c..e5a7775f07 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/patron/search.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/patron/search.component.ts @@ -38,6 +38,7 @@ export class PatronSearchComponent implements OnInit, AfterViewInit { // Fired on dbl-click of a search result row. @Output() patronsSelected: EventEmitter; + @Output() patronsClicked: EventEmitter; search: any = {}; searchOrg: IdlObject; @@ -53,6 +54,7 @@ export class PatronSearchComponent implements OnInit, AfterViewInit { private store: ServerStoreService ) { this.patronsSelected = new EventEmitter(); + this.patronsClicked = new EventEmitter(); this.dataSource = new GridDataSource(); this.dataSource.getRows = (pager: Pager, sort: any[]) => { return this.getRows(pager, sort); @@ -93,6 +95,10 @@ export class PatronSearchComponent implements OnInit, AfterViewInit { this.patronsSelected.emit([].concat(rows)); } + rowsClicked(rows: IdlObject | IdlObject[]) { + this.patronsClicked.emit([].concat(rows)); + } + getSelected(): IdlObject[] { return this.searchGrid ? this.searchGrid.context.getSelectedRows() : [];