@arsedizioni/ars-utils 21.1.6 → 21.1.8
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.
|
@@ -2476,9 +2476,19 @@ class ClipperSearchResultItemComponent {
|
|
|
2476
2476
|
* @returns the chunks info string or undefined
|
|
2477
2477
|
*/
|
|
2478
2478
|
getChunks() {
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2479
|
+
if (this.item().chunks && this.item().chunks.length > 0) {
|
|
2480
|
+
let chunks = "chunks:";
|
|
2481
|
+
let count = 0;
|
|
2482
|
+
this.item().chunks.forEach((chunk, index) => {
|
|
2483
|
+
if (chunk <= 0)
|
|
2484
|
+
return;
|
|
2485
|
+
if (index > 0) {
|
|
2486
|
+
chunks += "|";
|
|
2487
|
+
}
|
|
2488
|
+
chunks += chunk;
|
|
2489
|
+
count++;
|
|
2490
|
+
});
|
|
2491
|
+
return count > 0 ? chunks : undefined;
|
|
2482
2492
|
}
|
|
2483
2493
|
return undefined;
|
|
2484
2494
|
}
|