@arsedizioni/ars-utils 20.3.59 → 20.3.61

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.
@@ -704,8 +704,8 @@ declare class ClipperBrowserComponent extends ClipperSearchResultManager impleme
704
704
  */
705
705
  protected sort(newSort?: NameValueItem<any>): void;
706
706
  /**
707
- * Show free text help
708
- */
707
+ * Show free text help
708
+ */
709
709
  protected help(): void;
710
710
  /**
711
711
  * Compose a free text search query
@@ -2636,7 +2636,7 @@ class ClipperService {
2636
2636
  loadBag() {
2637
2637
  return this.httpClient
2638
2638
  .get(this.serviceUri + '/documents/working')
2639
- .subscribe((r) => {
2639
+ .subscribe(r => {
2640
2640
  if (!r.success) {
2641
2641
  this.dialogService.error(r.message);
2642
2642
  }
@@ -2647,7 +2647,9 @@ class ClipperService {
2647
2647
  if (n.documentDescriptor) {
2648
2648
  const documentInfo = JSON.parse(n.documentDescriptor);
2649
2649
  if (documentInfo) {
2650
- n.documentId = documentInfo.documentId || documentInfo.DocumentId || documentInfo.id || documentInfo.Id;
2650
+ if (!n.documentId) {
2651
+ n.documentId = documentInfo.DocumentId || documentInfo.Id;
2652
+ }
2651
2653
  n.title1 = documentInfo.Title1 ?? documentInfo.Title2;
2652
2654
  n.title2 = documentInfo.Title1 ? documentInfo.Title2 : undefined;
2653
2655
  }