From f5cb3203546027209b7c35a0255df937b4be9108 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 2 Jul 2018 18:16:40 -0400 Subject: [PATCH] LP#1779158 Ang vandelay starting queue view Signed-off-by: Bill Erickson --- .../app/staff/cat/vandelay/queue.component.html | 11 ++++++ .../src/app/staff/cat/vandelay/queue.component.ts | 43 ++++++++++++++++++++++ .../src/app/staff/cat/vandelay/routing.module.ts | 7 ++++ .../src/app/staff/cat/vandelay/vandelay.module.ts | 4 +- 4 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue.component.html create mode 100644 Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue.component.ts diff --git a/Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue.component.html b/Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue.component.html new file mode 100644 index 0000000000..7b74fa2573 --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue.component.html @@ -0,0 +1,11 @@ + + + View MARC + + + + + + + + diff --git a/Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue.component.ts b/Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue.component.ts new file mode 100644 index 0000000000..8167ebd729 --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue.component.ts @@ -0,0 +1,43 @@ +import {Component, OnInit, ViewChild} from '@angular/core'; +import {Observable} from 'rxjs/Observable'; +import {Router, ActivatedRoute, ParamMap} from '@angular/router'; +import {Pager} from '@eg/share/util/pager'; +import {GridComponent} from '@eg/share/grid/grid.component'; +import {GridDataSource} from '@eg/share/grid/grid'; + +@Component({ + templateUrl: 'queue.component.html' +}) +export class QueueComponent implements OnInit { + + queueId: number; + queueSource: GridDataSource; + @ViewChild('queueGrid') queueGrid: GridComponent; + + constructor( + private router: Router, + private route: ActivatedRoute) { + + this.route.paramMap.subscribe((params: ParamMap) => { + this.queueId = +params.get('id'); + if (this.queueId) { + this.loadQueue(); + } + }); + + this.queueSource = new GridDataSource(); + this.queueSource.getRows = + (pager: Pager, sort: any[]): Observable => { + return Observable.of([{id:1}]); + } + + } + + ngOnInit() { + } + + loadQueue() { + } + +} + diff --git a/Open-ILS/src/eg2/src/app/staff/cat/vandelay/routing.module.ts b/Open-ILS/src/eg2/src/app/staff/cat/vandelay/routing.module.ts index c37e172ff3..419a03fab6 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/vandelay/routing.module.ts +++ b/Open-ILS/src/eg2/src/app/staff/cat/vandelay/routing.module.ts @@ -3,6 +3,7 @@ import {RouterModule, Routes} from '@angular/router'; import {VandelayComponent} from './vandelay.component'; import {ImportComponent} from './import.component'; import {ExportComponent} from './export.component'; +import {QueueComponent} from './queue.component'; const routes: Routes = [{ path: '', @@ -17,6 +18,12 @@ const routes: Routes = [{ }, { path: 'export', component: ExportComponent + }, { + path: 'queue', + component: QueueComponent + }, { + path: 'queue/:id', + component: QueueComponent }] }]; diff --git a/Open-ILS/src/eg2/src/app/staff/cat/vandelay/vandelay.module.ts b/Open-ILS/src/eg2/src/app/staff/cat/vandelay/vandelay.module.ts index 675894534b..6babf9498d 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/vandelay/vandelay.module.ts +++ b/Open-ILS/src/eg2/src/app/staff/cat/vandelay/vandelay.module.ts @@ -5,6 +5,7 @@ import {VandelayService} from './vandelay.service'; import {VandelayComponent} from './vandelay.component'; import {ImportComponent} from './import.component'; import {ExportComponent} from './export.component'; +import {QueueComponent} from './queue.component'; import {GridModule} from '@eg/share/grid/grid.module'; import {HttpClientModule} from '@angular/common/http'; @@ -12,7 +13,8 @@ import {HttpClientModule} from '@angular/common/http'; declarations: [ VandelayComponent, ImportComponent, - ExportComponent + ExportComponent, + QueueComponent ], imports: [ StaffCommonModule, -- 2.11.0