lp1779158 Inspect Queue Improvements
authorKyle Huckins <khuckins@catalyte.io>
Tue, 18 Dec 2018 22:57:21 +0000 (22:57 +0000)
committerDan Wells <dbw2@calvin.edu>
Tue, 19 Feb 2019 22:56:36 +0000 (17:56 -0500)
- Add "Delete selected" option to Authority Queues
- Change Queuetype to 'authority' from 'auth' when selecting single record to view
in auth record queue.
- Ensure "Imported As" link correctly navigates to Auth record view for Auth Queues

Signed-off-by: Kyle Huckins <khuckins@catalyte.io>

 Changes to be committed:
modified:   Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue-list.component.html
modified:   Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue.component.html
modified:   Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue.component.ts

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>

Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue-list.component.html
Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue.component.html
Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue.component.ts

index 6aface5..badc6df 100644 (file)
@@ -31,6 +31,8 @@
   persistKey="cat.vandelay.queue.list.auth"
   (onRowActivate)="rowActivated($event)"
   idlClass="vaq" [dataSource]="queueSource">
+  <eg-grid-toolbar-action label="Delete Selected" i18n-label 
+    [action]="deleteSelected"></eg-grid-toolbar-action>
 </eg-grid>
 
 
index bd99107..5584700 100644 (file)
 </ng-template>
 
 <ng-template #importedAsTmpl let-row="row">
-  <a routerLink="/staff/catalog/record/{{row.imported_as}}">
+  <a *ngIf="queueType=='bib'" routerLink="/staff/catalog/record/{{row.imported_as}}">
     {{row.imported_as}}
   </a>
+  <a *ngIf="queueType=='auth'" href="/eg/staff/cat/catalog/authority/{{row.imported_as}}/marc_edit">
+    {{row.imported_as}}
+  </a>
+  
 </ng-template>
 
 
index 034f39a..1b75f56 100644 (file)
@@ -96,6 +96,9 @@ export class QueueComponent implements OnInit, AfterViewInit {
     }
 
     openRecord(row: any) {
+        if (this.queueType == 'auth') {
+            this.queueType = 'authority';
+        }
         const url = 
           `/staff/cat/vandelay/queue/${this.queueType}/${this.queueId}/record/${row.id}/marc`;
         this.router.navigate([url]);