@studyportals/fawkes 8.0.2-1 → 8.0.2-2
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.
|
@@ -28,7 +28,6 @@ export class ProgrammesBaseIndexabilityPolicy extends BaseSeoIndexabilityPolicy
|
|
|
28
28
|
else {
|
|
29
29
|
result = await rule.forSitemapGenerator(filterKeyValues);
|
|
30
30
|
}
|
|
31
|
-
// console.log("RuleName: " + rule.getName() + " Rule result: " + result); // eslint-disable-line
|
|
32
31
|
if (!result) {
|
|
33
32
|
return false;
|
|
34
33
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DependencyMissingError } from '../../errors/DependencyMissingError';
|
|
2
|
+
import { FilterKey } from '@studyportals/search-filters/server-side';
|
|
2
3
|
export class MinimumAmountOfResultsRule {
|
|
3
4
|
minimumResultsCount = 7;
|
|
4
5
|
maximumPageSize = 20;
|
|
@@ -16,6 +17,11 @@ export class MinimumAmountOfResultsRule {
|
|
|
16
17
|
throw new DependencyMissingError('SearchApiClient');
|
|
17
18
|
}
|
|
18
19
|
const count = await this.searchApiClient.getCount(filterKeyValues);
|
|
20
|
+
if (Object.keys(filterKeyValues).includes(FilterKey.DURATION) && Object.keys(filterKeyValues).length === 1) {
|
|
21
|
+
const filterKey = FilterKey.DURATION;
|
|
22
|
+
const filterValue = filterKeyValues.get(filterKey);
|
|
23
|
+
console.log(`DEBUG: Duration filter applied alone, filter: ${filterValue} found results: ${count}`); // eslint-disable-line no-console
|
|
24
|
+
}
|
|
19
25
|
return count >= (pageNumber - 1) * this.maximumPageSize + this.minimumResultsCount;
|
|
20
26
|
}
|
|
21
27
|
forSitemapGenerator() {
|