@arsedizioni/ars-utils 21.1.76 → 21.1.77
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.
|
@@ -24,7 +24,7 @@ import * as i5 from '@angular/material/slide-toggle';
|
|
|
24
24
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
25
25
|
import * as i3 from '@angular/material/tooltip';
|
|
26
26
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
27
|
-
import { ClipperService, ClipperMessages, ClipperModel, ClipperQueryReferencesMode, ClipperModule, ClipperUtils,
|
|
27
|
+
import { ClipperService, ClipperMessages, ClipperModel, ClipperQueryReferencesMode, ClipperModule, ClipperUtils, ClipperSearchUtils, ClipperSearchParams, ClipperSearchFacetsSnapshot, ClipperFacet, ClipperSelectionMode, ClipperSearchResult, ClipperSort, ClipperQueryDocumentFlags, ClipperSources, ClipperDocumentChangeReasons, ClipperChannel, ClipperSectors, ClipperRegions, ClipperAuthors, ClipperSectorTypes } from '@arsedizioni/ars-utils/clipper.common';
|
|
28
28
|
import * as i19 from '@arsedizioni/ars-utils/core';
|
|
29
29
|
import { SystemUtils, BroadcastService, SafeUrlPipe, DateInterval, ThemeService, ScreenService, DateFormat, FormatPipe, SelectableModel, ArsCoreModule } from '@arsedizioni/ars-utils/core';
|
|
30
30
|
import { FlexLayoutModule, FlexModule } from '@ngbracket/ngx-layout';
|
|
@@ -1076,7 +1076,7 @@ class ClipperDocumentComponent extends ClipperDocumentManager {
|
|
|
1076
1076
|
// Split query and chunks
|
|
1077
1077
|
const queryParts = query.split('__CHUNKS__');
|
|
1078
1078
|
if (queryParts.length > 0) {
|
|
1079
|
-
this.lastQuery = queryParts[0];
|
|
1079
|
+
this.lastQuery = ClipperSearchUtils.normalizeTextQuery2(queryParts[0]);
|
|
1080
1080
|
if (queryParts.length > 1) {
|
|
1081
1081
|
const queryChunksParts = queryParts[1].split(':');
|
|
1082
1082
|
if (queryChunksParts.length > 2) {
|
|
@@ -2397,7 +2397,7 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
|
|
|
2397
2397
|
openDocument(documentId, query, queryChunks) {
|
|
2398
2398
|
if (!documentId)
|
|
2399
2399
|
return;
|
|
2400
|
-
query = query ??
|
|
2400
|
+
query = ClipperSearchUtils.normalizeTextQuery2(query ?? this.filterParams.text);
|
|
2401
2401
|
if ((this.filterParams.flags & ClipperQueryDocumentFlags.UseSemanticSearch) > 0) {
|
|
2402
2402
|
query = '$' + query;
|
|
2403
2403
|
}
|