@arsedizioni/ars-utils 21.1.16 → 21.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1402,6 +1402,7 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
|
1402
1402
|
*/
|
|
1403
1403
|
open(documentId, query, queryChunks, newWindow) {
|
|
1404
1404
|
if (!newWindow) {
|
|
1405
|
+
console.log("Opening document " + documentId);
|
|
1405
1406
|
if (this.opening)
|
|
1406
1407
|
this.opening.emit(documentId);
|
|
1407
1408
|
else
|
|
@@ -1536,6 +1537,7 @@ class ClipperDocumentsUtils {
|
|
|
1536
1537
|
dialogService.error("Documento non valido.");
|
|
1537
1538
|
return undefined;
|
|
1538
1539
|
}
|
|
1540
|
+
console.log("Opening document dialog " + documentId);
|
|
1539
1541
|
return dialogService.open(ClipperDocumentComponent, {
|
|
1540
1542
|
ariaLabel: 'documento',
|
|
1541
1543
|
autoFocus: false,
|
|
@@ -1936,27 +1938,6 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
|
|
|
1936
1938
|
return (this.filterParams.sectors?.filter(n => n.value === 'LR').length ?? 0) > 0;
|
|
1937
1939
|
};
|
|
1938
1940
|
}
|
|
1939
|
-
ngOnInit() {
|
|
1940
|
-
this.broadcastService.getMessage()
|
|
1941
|
-
.pipe(takeUntil(this.unsubscribe))
|
|
1942
|
-
.subscribe(message => {
|
|
1943
|
-
if (message.id === ClipperMessages.DOCUMENT_READ) {
|
|
1944
|
-
if (this.filterParams.showUnreadDocumentsOnly) {
|
|
1945
|
-
if (this.snapshot) {
|
|
1946
|
-
const p = this.snapshot.items?.findIndex(n => n.documentId !== message.data.document.documentId);
|
|
1947
|
-
if (p != -1) {
|
|
1948
|
-
this.snapshot.total--;
|
|
1949
|
-
this.snapshot.items?.splice(p, 1);
|
|
1950
|
-
if (this.snapshot.items?.length === 0) {
|
|
1951
|
-
this.broadcastService.sendMessage(ClipperMessages.COMMAND_SEARCH_EMPTY_RESULT);
|
|
1952
|
-
}
|
|
1953
|
-
this.changeDetector.markForCheck();
|
|
1954
|
-
}
|
|
1955
|
-
}
|
|
1956
|
-
}
|
|
1957
|
-
}
|
|
1958
|
-
});
|
|
1959
|
-
}
|
|
1960
1941
|
ngOnDestroy() {
|
|
1961
1942
|
this.unsubscribe.next();
|
|
1962
1943
|
this.unsubscribe.complete();
|
|
@@ -2364,6 +2345,7 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
|
|
|
2364
2345
|
openDocument(documentId, query, queryChunks) {
|
|
2365
2346
|
if (!documentId)
|
|
2366
2347
|
return;
|
|
2348
|
+
console.log("Opening document " + documentId);
|
|
2367
2349
|
ClipperDocumentsUtils.openDocument(this.injector, documentId, query ?? this.filterParams.text, queryChunks, this.selectionMode(), null, this.themeService.getTheme(), this.canUseArchive(), this.canHandleTooManyResults());
|
|
2368
2350
|
}
|
|
2369
2351
|
///
|