From: Bill Erickson Date: Thu, 7 Mar 2019 18:55:04 +0000 (-0500) Subject: LP1819053 Angular staff catalog basket export X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bb9f8f3a4db4a5f08b2bcc6d7f10885443731502;p=contrib%2FConifer.git 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 --- 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';