From 6d23e5d91ad2c37d0edcd5bba8a49e837c87c6af Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Sat, 10 Aug 2019 15:45:21 -0700 Subject: [PATCH] experimenting with manage authorities --- Open-ILS/examples/fm_IDL.xml | 7 +++++++ .../staff/cat/authorities/authorities.module.ts | 16 +++++++++++++++ .../staff/cat/authorities/manage.component.html | 4 ++++ .../app/staff/cat/authorities/manage.component.ts | 24 ++++++++++++++++++++++ .../app/staff/cat/authorities/routing.module.ts | 16 +++++++++++++++ .../src/eg2/src/app/staff/cat/routing.module.ts | 3 +++ 6 files changed, 70 insertions(+) create mode 100644 Open-ILS/src/eg2/src/app/staff/cat/authorities/authorities.module.ts create mode 100644 Open-ILS/src/eg2/src/app/staff/cat/authorities/manage.component.html create mode 100644 Open-ILS/src/eg2/src/app/staff/cat/authorities/manage.component.ts create mode 100644 Open-ILS/src/eg2/src/app/staff/cat/authorities/routing.module.ts diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index d28d7084d7..f770892e26 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -2765,11 +2765,18 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + + + + + + + diff --git a/Open-ILS/src/eg2/src/app/staff/cat/authorities/authorities.module.ts b/Open-ILS/src/eg2/src/app/staff/cat/authorities/authorities.module.ts new file mode 100644 index 0000000000..d476ad52ad --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/cat/authorities/authorities.module.ts @@ -0,0 +1,16 @@ +import {NgModule} from '@angular/core'; +import {StaffCommonModule} from '@eg/staff/common.module'; +import {ManageAuthoritiesComponent} from './manage.component'; +import {AuthoritiesRoutingModule} from './routing.module'; + +@NgModule({ + declarations: [ + ManageAuthoritiesComponent + ], + imports: [ + AuthoritiesRoutingModule, + ], +}) + +export class AuthoritiesModule { +} diff --git a/Open-ILS/src/eg2/src/app/staff/cat/authorities/manage.component.html b/Open-ILS/src/eg2/src/app/staff/cat/authorities/manage.component.html new file mode 100644 index 0000000000..6ec28c54fe --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/cat/authorities/manage.component.html @@ -0,0 +1,4 @@ + + diff --git a/Open-ILS/src/eg2/src/app/staff/cat/authorities/manage.component.ts b/Open-ILS/src/eg2/src/app/staff/cat/authorities/manage.component.ts new file mode 100644 index 0000000000..dae960e41c --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/cat/authorities/manage.component.ts @@ -0,0 +1,24 @@ +import { PcrudService } from '@eg/core/pcrud.service'; +import {Component} from '@angular/core'; +import {GridDataSource} from '@eg/share/grid/grid'; +import {Pager} from '@eg/share/util/pager'; + +@Component({ + templateUrl: './manage.component.html', +}) +export class ManageAuthoritiesComponent { + gridSource: GridDataSource; + + constructor( + private pcrud: PcrudService + ) { + + this.gridSource = new GridDataSource(); + + this.gridSource.getRows = (pager: Pager) => { + return this.pcrud.search('are', {id: {'>': 0}} + ); + }; + } + +} diff --git a/Open-ILS/src/eg2/src/app/staff/cat/authorities/routing.module.ts b/Open-ILS/src/eg2/src/app/staff/cat/authorities/routing.module.ts new file mode 100644 index 0000000000..5012ae44fe --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/cat/authorities/routing.module.ts @@ -0,0 +1,16 @@ +import {NgModule} from '@angular/core'; +import {RouterModule, Routes} from '@angular/router'; +import {ManageAuthoritiesComponent} from './manage.component'; + +const routes: Routes = [{ + path: 'manage', + component: ManageAuthoritiesComponent +}]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule], + providers: [] +}) + +export class AuthoritiesRoutingModule {} diff --git a/Open-ILS/src/eg2/src/app/staff/cat/routing.module.ts b/Open-ILS/src/eg2/src/app/staff/cat/routing.module.ts index a923b46822..7eec4306de 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/routing.module.ts +++ b/Open-ILS/src/eg2/src/app/staff/cat/routing.module.ts @@ -4,6 +4,9 @@ import {RouterModule, Routes} from '@angular/router'; const routes: Routes = [ { path: 'vandelay', loadChildren: '@eg/staff/cat/vandelay/vandelay.module#VandelayModule' + }, + { path: 'authorities', + loadChildren: '@eg/staff/cat/authorities/authorities.module#AuthoritiesModule' } ]; -- 2.11.0