From b2b4ae930ec92c48a3c1fea2c7d961c1ab5f225e Mon Sep 17 00:00:00 2001 From: Bertrand Zuchuat Date: Wed, 10 Apr 2024 13:39:42 +0200 Subject: [PATCH] fix(document): import with many identifiers If the size of the query exceeds 1024 characters, we truncate the identifiers and display a warning message to the user. * Closes rero/rero-ils#3118. Co-Authored-by: Bertrand Zuchuat --- .../dialog-import/dialog-import.component.html | 12 ++++++++++++ .../dialog-import/dialog-import.component.ts | 3 +++ .../document-detail/document-detail.component.ts | 16 ++++++++++++++-- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/projects/admin/src/app/record/detail-view/document-detail-view/dialog-import/dialog-import.component.html b/projects/admin/src/app/record/detail-view/document-detail-view/dialog-import/dialog-import.component.html index 7c8b6e3e5..1c50f3908 100644 --- a/projects/admin/src/app/record/detail-view/document-detail-view/dialog-import/dialog-import.component.html +++ b/projects/admin/src/app/record/detail-view/document-detail-view/dialog-import/dialog-import.component.html @@ -36,6 +36,18 @@
Documents are available
} + @if (warningMessages.length > 0) { +
+
+ +
+
+ @for (message of warningMessages; track message) { +

{{ message }}

+ } +
+
+ }
Do you want to import this document?