@arsedizioni/ars-utils 18.1.141 → 18.1.142

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.
@@ -1030,7 +1030,8 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
1030
1030
  this.snapshot = data;
1031
1031
  const filterParams = this.filterParams;
1032
1032
  const today = startOfToday();
1033
- const groupByYear = filterParams.sortMode === ClipperSort.DateAsc ||
1033
+ const groupByYear = !filterParams.sortMode ||
1034
+ filterParams.sortMode === ClipperSort.DateAsc ||
1034
1035
  filterParams.sortMode === ClipperSort.DateDesc ||
1035
1036
  filterParams.sortMode === ClipperSort.SourceDateAsc ||
1036
1037
  filterParams.sortMode === ClipperSort.SourceDateDesc;
@@ -1053,7 +1054,7 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
1053
1054
  if (n.expiringInfo) {
1054
1055
  let parts = n.expiringInfo.split('|');
1055
1056
  if (parts.length === 3)
1056
- n.description = parts[2];
1057
+ n.expiringDescription = parts[2];
1057
1058
  }
1058
1059
  if (n.expiringDate) {
1059
1060
  n.date = startOfDay(new Date(n.expiringDate));
@@ -1128,9 +1129,6 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
1128
1129
  n.isExpiring = today <= n.date && today >= d;
1129
1130
  n.isExpired = n.date < today;
1130
1131
  }
1131
- if (n.title) {
1132
- n.title1 = n.title;
1133
- }
1134
1132
  }
1135
1133
  if (groupByYear) {
1136
1134
  const year = SystemUtils.formatDate(n.date ?? n.publishingDate, DateFormat.LongMonthAndYear).toLowerCase();