@arsedizioni/ars-utils 19.2.12 → 19.2.14
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.
|
@@ -2861,7 +2861,8 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
|
|
|
2861
2861
|
});
|
|
2862
2862
|
this.isLaws = (allowEmpty = true) => {
|
|
2863
2863
|
return (allowEmpty && this.filterParams.modules && this.filterParams.modules.length === 0) || (this.filterParams.modules?.findIndex(x => x.value === ClipperModule.GazzetteBollettiniEFontiDiverse ||
|
|
2864
|
-
x.value === ClipperModule.NormativaVigente
|
|
2864
|
+
x.value === ClipperModule.NormativaVigente ||
|
|
2865
|
+
x.value === ClipperModule.GiurisprudenzaRecente) !== -1);
|
|
2865
2866
|
};
|
|
2866
2867
|
this.isReadable = () => {
|
|
2867
2868
|
return ((this.canSearch() && this.filterParams.modules?.length === 0) ||
|
|
@@ -3415,18 +3416,21 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
|
|
|
3415
3416
|
this.filterParams.authors = [];
|
|
3416
3417
|
this.filterParams.type = null;
|
|
3417
3418
|
let authors = [];
|
|
3419
|
+
const sectors = (this.filterParams.sectors?.length ?? 0) > 0
|
|
3420
|
+
? this.filterParams.sectors
|
|
3421
|
+
: this.sectors();
|
|
3418
3422
|
ClipperAuthors.forEach(n => {
|
|
3419
|
-
if (
|
|
3420
|
-
|
|
3421
|
-
|
|
3423
|
+
if (sectors &&
|
|
3424
|
+
sectors.length > 0 &&
|
|
3425
|
+
sectors.findIndex(x => x.value === n.sectorId) !== -1) {
|
|
3422
3426
|
authors.push(n);
|
|
3423
3427
|
}
|
|
3424
3428
|
});
|
|
3425
3429
|
let types = [];
|
|
3426
3430
|
ClipperSectorTypes.forEach(n => {
|
|
3427
|
-
if (
|
|
3428
|
-
|
|
3429
|
-
|
|
3431
|
+
if (sectors &&
|
|
3432
|
+
sectors.length > 0 &&
|
|
3433
|
+
sectors.findIndex(x => x.value === n.parentValue) !== -1) {
|
|
3430
3434
|
types.push(n);
|
|
3431
3435
|
}
|
|
3432
3436
|
});
|