From bb9f8f3a4db4a5f08b2bcc6d7f10885443731502 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 7 Mar 2019 13:55:04 -0500 Subject: [PATCH 1/1] LP1819053 Angular staff catalog basket export Adds a new "Export Records" option to the staff catalog basket menu. When selected, the user is directed to the Vandelay record export interface, which will be set to "basket export" mode. Staff can then apply export preferences (usmarc, marxml, etc.) and export the basket records. In "basket export" mode, Vandley provides a link to return to the catalog (preserving search params). Signed-off-by: Bill Erickson Signed-off-by: Dan Wells --- .../staff/cat/vandelay/export.component.html | 115 ++++++++++-------- .../staff/cat/vandelay/export.component.ts | 68 ++++++++--- .../app/staff/cat/vandelay/routing.module.ts | 3 + .../catalog/basket-actions.component.html | 1 + .../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 f96df6fd75..da3f793625 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.bucketClass = 'biblio'; -- 2.43.2