experimenting with manage authorities user/sandbergja/ng_manage_reservations
authorJane Sandberg <sandbej@linnbenton.edu>
Sat, 10 Aug 2019 22:45:21 +0000 (15:45 -0700)
committerJane Sandberg <sandbej@linnbenton.edu>
Sat, 10 Aug 2019 22:45:21 +0000 (15:45 -0700)
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/eg2/src/app/staff/cat/authorities/authorities.module.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/cat/authorities/manage.component.html [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/cat/authorities/manage.component.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/cat/authorities/routing.module.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/cat/routing.module.ts

index d28d708..f770892 100644 (file)
@@ -2765,11 +2765,18 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <field name="record" reporter:datatype="link" />
                        <field name="atag" reporter:datatype="link" />
                        <field name="value" reporter:datatype="text" />
+                       <field name="sort_value" reporter:datatype="text" />
+                       <field name="thesaurus" reporter:datatype="text" />
                </fields>
                <links>
                        <link field="record" reltype="has_a" key="id" map="" class="are"/>
                        <link field="atag" reltype="has_a" key="id" map="" class="acsaf"/>
                </links>
+               <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+                       <actions>
+                               <retrieve/>
+                       </actions>
+               </permacrud>
        </class>
 
        <class id="ahf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="authority::heading_field" oils_persist:tablename="authority.heading_field" reporter:label="Authority Heading Fields">
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 (file)
index 0000000..d476ad5
--- /dev/null
@@ -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 (file)
index 0000000..6ec28c5
--- /dev/null
@@ -0,0 +1,4 @@
+<eg-grid #grid [dataSource]="gridSource"
+  persistKey="cat.authorities.manage"
+  idlClass="are">
+</eg-grid>
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 (file)
index 0000000..dae960e
--- /dev/null
@@ -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 (file)
index 0000000..5012ae4
--- /dev/null
@@ -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 {}
index a923b46..7eec430 100644 (file)
@@ -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'
   }
 ];