LP1837059 Angular local admin page
authorBill Erickson <berickxx@gmail.com>
Wed, 17 Jul 2019 22:03:31 +0000 (18:03 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 6 Aug 2019 00:56:53 +0000 (20:56 -0400)
Links to the following pages now refer to their auto-generated Angular
equivalent:

actor/address_alert
config/barcode_completion
actor/copy_alert_suppress
asset/copy_location
asset/copy_tag
permission/grp_penalty_threshold
config/hold_matrix_matchpoint
config/non_cataloged_type
rating/badge

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/admin/local/admin-local-splash.component.html [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/admin/local/admin-local-splash.component.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/admin/local/admin-local.module.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/admin/local/routing.module.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/admin/routing.module.ts
Open-ILS/src/eg2/src/app/staff/nav.component.html
Open-ILS/src/templates/staff/navbar.tt2

diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/admin-local-splash.component.html b/Open-ILS/src/eg2/src/app/staff/admin/local/admin-local-splash.component.html
new file mode 100644 (file)
index 0000000..edbb68f
--- /dev/null
@@ -0,0 +1,69 @@
+<eg-staff-banner bannerText="Local Administration" i18n-bannerText>
+</eg-staff-banner>
+
+<div class="container">
+  <eg-link-table columnCount="3">
+    <eg-link-table-link i18n-label label="Address Alerts" 
+      routerLink="/staff/admin/local/actor/address_alert"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Age Overdue Circulations to Lost" 
+      url="/eg/staff/admin/local/circ/age_to_lost"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Auto-Print Settings" 
+      url="/eg/staff/admin/local/config/auto_print"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Barcode Completion" 
+      routerLink="/staff/admin/local/config/barcode_completion"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Cash Reports" 
+      url="/eg/staff/admin/local/money/cash_reports"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Circulation Limit Sets" 
+      url="/eg/staff/admin/local/config/circ_limit_set"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Circulation Policies" 
+      url="/eg/staff/admin/local/config/circ_matrix_matchpoint"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Closed Dates Editor" 
+      url="/eg/staff/admin/local/actor/closed_dates"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Item Alert Types" 
+      url="/eg/staff/admin/local/config/copy_alert_types"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Item Alert Suppression" 
+      routerLink="/staff/admin/local/actor/copy_alert_suppress"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Shelving Location Groups" 
+      url="/eg/staff/admin/local/asset/copy_location_group"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Shelving Location Order" 
+      url="/eg/staff/admin/local/asset/copy_location_order"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Shelving Locations Editor" 
+      routerLink="/staff/admin/local/asset/copy_location"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Item Tags" 
+      routerLink="/staff/admin/local/asset/copy_tag"></eg-link-table-link>
+    <!-- do-able with a list of IDL classes to add to the edit dialog -->
+    <eg-link-table-link i18n-label label="Field Documentation" 
+      url="/eg/staff/admin/local/config/idl_field_doc"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Group Penalty Thresholds" 
+      routerLink="/staff/admin/local/permission/grp_penalty_threshold"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Hold Policies" 
+      routerLink="/staff/admin/local/config/hold_matrix_matchpoint"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Library Settings Editor" 
+      url="/eg/staff/admin/local/asset/org_unit_settings"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Non-Cataloged Types Editor" 
+      routerLink="/staff/admin/local/config/non_cataloged_type"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Notifications / Action Triggers" 
+      url="/eg/staff/admin/local/action_trigger/event_definition"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Patrons with Negative Balances" 
+      url="/eg/staff/admin/local/circ/neg_balance_users"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Permission Tree Display Entries" 
+      url="/eg/staff/admin/local/permission/grp_tree_display_entry"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Search Filter Groups" 
+      url="/eg/staff/admin/local/actor/search_filter_group"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Standing Penalties" 
+      url="/eg/staff/admin/local/config/standing_penalty"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Statistical Categories Editor" 
+      url="/eg/staff/admin/local/asset/stat_cat_editor"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Statistical Popularity Badges" 
+      routerLink="/staff/admin/local/rating/badge"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Surveys" 
+      url="/eg/staff/admin/local/action/survey"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Transit List" 
+      url="/eg/staff/circ/transits/list"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Holdings Template Editor" 
+      url="/eg/staff/cat/volcopy/edit_templates"></eg-link-table-link>
+    <eg-link-table-link i18n-label label="Work Log" 
+      url="/eg/staff/admin/workstation/log"></eg-link-table-link>
+
+  </eg-link-table>
+</div>
diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/admin-local-splash.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/local/admin-local-splash.component.ts
new file mode 100644 (file)
index 0000000..7f07174
--- /dev/null
@@ -0,0 +1,10 @@
+import {Component} from '@angular/core';
+
+@Component({
+    templateUrl: './admin-local-splash.component.html'
+})
+
+export class AdminLocalSplashComponent {
+}
+
+
diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/admin-local.module.ts b/Open-ILS/src/eg2/src/app/staff/admin/local/admin-local.module.ts
new file mode 100644 (file)
index 0000000..a18d3e6
--- /dev/null
@@ -0,0 +1,26 @@
+import {NgModule} from '@angular/core';
+import {TreeModule} from '@eg/share/tree/tree.module';
+import {StaffCommonModule} from '@eg/staff/common.module';
+import {AdminLocalRoutingModule} from './routing.module';
+import {AdminCommonModule} from '@eg/staff/admin/common.module';
+import {AdminLocalSplashComponent} from './admin-local-splash.component';
+
+@NgModule({
+  declarations: [
+      AdminLocalSplashComponent
+  ],
+  imports: [
+    AdminCommonModule,
+    AdminLocalRoutingModule,
+    TreeModule
+  ],
+  exports: [
+  ],
+  providers: [
+  ]
+})
+
+export class AdminLocalModule {
+}
+
+
diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/routing.module.ts b/Open-ILS/src/eg2/src/app/staff/admin/local/routing.module.ts
new file mode 100644 (file)
index 0000000..c46dec9
--- /dev/null
@@ -0,0 +1,23 @@
+import {NgModule} from '@angular/core';
+import {RouterModule, Routes} from '@angular/router';
+import {AdminLocalSplashComponent} from './admin-local-splash.component';
+import {BasicAdminPageComponent} from '@eg/staff/admin/basic-admin-page.component';
+
+const routes: Routes = [{
+    path: 'splash',
+    component: AdminLocalSplashComponent
+}, {
+    path: 'config/hold_matrix_matchpoint',
+    component: BasicAdminPageComponent,
+    data: [{schema: 'config', table: 'hold_matrix_matchpoint', disableOrgFilter: true}]
+}, {
+    path: ':schema/:table',
+    component: BasicAdminPageComponent
+}];
+
+@NgModule({
+  imports: [RouterModule.forChild(routes)],
+  exports: [RouterModule]
+})
+
+export class AdminLocalRoutingModule {}
index 29df72c..a0df70e 100644 (file)
@@ -10,6 +10,9 @@ const routes: Routes = [{
     path: 'server',
     loadChildren: '@eg/staff/admin/server/admin-server.module#AdminServerModule'
   }, {
+    path: 'local',
+    loadChildren: '@eg/staff/admin/local/admin-local.module#AdminLocalModule'
+  }, {
     path: 'acq',
     loadChildren: '@eg/staff/admin/acq/admin-acq.module#AdminAcqModule'
   }, {
index 99c1a27..3595b3c 100644 (file)
             <span class="material-icons">account_balance</span>
             <span i18n>Server Administration</span>
           </a>
-          <a class="dropdown-item" href="/eg/staff/admin/local/index">
+          <a class="dropdown-item" routerLink="/staff/admin/local/splash">
             <span class="material-icons">landscape</span>
             <span i18n>Local Administration</span>
           </a>
index 0c325c7..a9208c8 100644 (file)
             </a>
           </li>
           <li>
-            <a href="./admin/local/index" target="_self">
+            <a href="/eg2/staff/admin/local/splash">
               <span class="glyphicon glyphicon-picture"></span>
               [% l('Local Administration') %]
             </a>