@arsedizioni/ars-utils 19.3.12 → 19.3.13
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.
|
@@ -3683,8 +3683,14 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
|
|
|
3683
3683
|
newParams.number = this.filterParams.number;
|
|
3684
3684
|
newParams.year = this.filterParams.year;
|
|
3685
3685
|
newParams.topics = this.filterParams.topics;
|
|
3686
|
-
newParams.authors = this.filterParams.authors;
|
|
3687
|
-
newParams.
|
|
3686
|
+
newParams.authors = this.filterParams.authors ?? [];
|
|
3687
|
+
if (newParams.authors.length == 0 && this.filterParams.author) {
|
|
3688
|
+
newParams.authors = [{ name: '?', value: this.filterParams.author }];
|
|
3689
|
+
}
|
|
3690
|
+
newParams.types = this.filterParams.types ?? [];
|
|
3691
|
+
if (newParams.types.length == 0 && this.filterParams.type) {
|
|
3692
|
+
newParams.types = [{ name: '?', value: this.filterParams.type }];
|
|
3693
|
+
}
|
|
3688
3694
|
newParams.source = this.filterParams.source;
|
|
3689
3695
|
newParams.sourceNumber = this.filterParams.sourceNumber;
|
|
3690
3696
|
newParams.sourceYear = this.filterParams.sourceYear;
|
|
@@ -3698,6 +3704,14 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
|
|
|
3698
3704
|
}
|
|
3699
3705
|
else {
|
|
3700
3706
|
newParams = SystemUtils.clone(this.filterParams);
|
|
3707
|
+
newParams.authors = this.filterParams.authors ?? [];
|
|
3708
|
+
if (newParams.authors.length == 0 && this.filterParams.author) {
|
|
3709
|
+
newParams.authors = [{ name: '?', value: this.filterParams.author }];
|
|
3710
|
+
}
|
|
3711
|
+
newParams.types = this.filterParams.types ?? [];
|
|
3712
|
+
if (newParams.types.length == 0 && this.filterParams.type) {
|
|
3713
|
+
newParams.types = [{ name: '?', value: this.filterParams.type }];
|
|
3714
|
+
}
|
|
3701
3715
|
}
|
|
3702
3716
|
// Setup sort options
|
|
3703
3717
|
this.sortOptions = ClipperUtils.getClipperAvailableSortOptions(this.filterParams.modules, newParams);
|