From 594db18924a27b497c70eaee09c0c2dc08f17002 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 7 Mar 2019 13:55:04 -0500 Subject: [PATCH] LPXXX Catalog basket export option Signed-off-by: Bill Erickson --- .../app/staff/cat/vandelay/export.component.html | 115 ++++++++++++--------- .../src/app/staff/cat/vandelay/export.component.ts | 68 +++++++++--- .../src/app/staff/cat/vandelay/routing.module.ts | 3 + .../staff/catalog/basket-actions.component.html | 1 + .../app/staff/catalog/basket-actions.component.ts | 8 +- 5 files changed, 127 insertions(+), 68 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/cat/vandelay/export.component.html b/Open-ILS/src/eg2/src/app/staff/cat/vandelay/export.component.html index 53f36e6813..b6fb361799 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/vandelay/export.component.html +++ b/Open-ILS/src/eg2/src/app/staff/cat/vandelay/export.component.html @@ -3,60 +3,73 @@
-
- - - -
-
- -
-
- -
-
-
-
- -
-
- -
-
-
-
- - -
-
- + +
+ Exporting {{basketRecords.length}} Records from Catalog Basket. +
+ +
+ +
+ + + +
+
+ +
+
+ +
-
- +
+
+ +
+
+ +
-
-
-
- - -
-
- + + + + +
+
+ +
+
+ +
-
- + + + + +
+
+ +
+
+ +
-
-
-
- + + + +
+
@@ -64,6 +77,7 @@
diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/basket-actions.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/basket-actions.component.ts index e00a396d17..3b2d8ddbbc 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/basket-actions.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/basket-actions.component.ts @@ -1,6 +1,5 @@ import {Component, OnInit, ViewChild} from '@angular/core'; import {BasketService} from '@eg/share/catalog/basket.service'; -import {Subscription} from 'rxjs'; import {Router} from '@angular/router'; import {NetService} from '@eg/core/net.service'; import {AuthService} from '@eg/core/auth.service'; @@ -87,6 +86,13 @@ export class BasketActionsComponent implements OnInit { }); break; + case 'export_marc': + this.router.navigate( + ['/staff/cat/vandelay/export/basket'], + {queryParamsHandling: 'merge'} + ) + break; + case 'bucket': this.basket.getRecordIds().then(ids => { this.addToBucketDialog.recordId = ids; -- 2.11.0