From 203bc162cd8807968f964bb35f75747397b8856c Mon Sep 17 00:00:00 2001
From: jonaswinkler <17569239+jonaswinkler@users.noreply.github.com>
Date: Sat, 20 Feb 2021 16:10:50 +0100
Subject: [PATCH] front end support for downloading multiple documents
---
src-ui/messages.xlf | 49 +++++++++++--------
src-ui/package-lock.json | 5 ++
src-ui/package.json | 1 +
.../bulk-editor/bulk-editor.component.html | 14 ++++++
.../bulk-editor/bulk-editor.component.ts | 7 +++
.../src/app/services/rest/document.service.ts | 4 ++
6 files changed, 59 insertions(+), 21 deletions(-)
diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf
index 731fdff7f..95e0fad15 100644
--- a/src-ui/messages.xlf
+++ b/src-ui/messages.xlf
@@ -1226,21 +1226,21 @@
Error executing bulk operation:
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 73
+ 74
""
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 112
+ 113
"" and ""
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 114
+ 115
This is for messages like 'modify "tag1" and "tag2"'
@@ -1248,7 +1248,7 @@
,
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 116
+ 117
this is used to separate enumerations and should probably be a comma and a whitespace in most languages
@@ -1256,7 +1256,7 @@
and ""
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 117
+ 118
this is for messages like 'modify "tag1", "tag2" and "tag3"'
@@ -1264,112 +1264,112 @@
Confirm tags assignment
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 126
+ 127
This operation will add the tag "" to selected document(s).
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 129
+ 130
This operation will add the tags to selected document(s).
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 131
+ 132
This operation will remove the tag "" from selected document(s).
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 134
+ 135
This operation will remove the tags from selected document(s).
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 136
+ 137
This operation will add the tags and remove the tags on selected document(s).
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 138
+ 139
Confirm correspondent assignment
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 158
+ 159
This operation will assign the correspondent "" to selected document(s).
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 160
+ 161
This operation will remove the correspondent from selected document(s).
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 162
+ 163
Confirm document type assignment
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 181
+ 182
This operation will assign the document type "" to selected document(s).
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 183
+ 184
This operation will remove the document type from selected document(s).
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 185
+ 186
Delete confirm
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 200
+ 201
This operation will permanently delete selected document(s).
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 201
+ 202
This operation cannot be undone.
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 202
+ 203
Delete document(s)
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
- 204
+ 205
@@ -1393,6 +1393,13 @@
27
+
+ Download originals
+
+ src/app/components/document-list/bulk-editor/bulk-editor.component.html
+ 68
+
+
Suggestions:
diff --git a/src-ui/package-lock.json b/src-ui/package-lock.json
index c3827f80c..148bc72eb 100644
--- a/src-ui/package-lock.json
+++ b/src-ui/package-lock.json
@@ -5545,6 +5545,11 @@
"schema-utils": "^2.6.5"
}
},
+ "file-saver": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/file-saver/-/file-saver-2.0.5.tgz",
+ "integrity": "sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA=="
+ },
"file-uri-to-path": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
diff --git a/src-ui/package.json b/src-ui/package.json
index 14d828483..d6082c6b9 100644
--- a/src-ui/package.json
+++ b/src-ui/package.json
@@ -23,6 +23,7 @@
"@ng-bootstrap/ng-bootstrap": "^8.0.0",
"@ng-select/ng-select": "^5.0.9",
"bootstrap": "^4.5.0",
+ "file-saver": "^2.0.5",
"ng-bootstrap": "^1.6.3",
"ng2-pdf-viewer": "^6.3.2",
"ngx-cookie-service": "^10.1.1",
diff --git a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html
index 053126445..98716e2f9 100644
--- a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html
+++ b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html
@@ -56,6 +56,20 @@
+
+
+
+
+
+
+
+