@studyportals/fawkes 8.0.2-16 → 8.0.2-18

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.
@@ -35,7 +35,7 @@ export class AttendanceFormat extends ProgrammesBaseIndexabilityPolicy {
35
35
  ]);
36
36
  const result = await this.checkRulesForSitemapWithPageNumber(filterKeyValues, pageNumber);
37
37
  if (result) {
38
- paths.push(this.getPathWithPageNumber(`${attendance.path}/${format.path}`, pageNumber));
38
+ paths.push(this.getPathWithPageNumber(`${format.path}/${attendance.path}`, pageNumber));
39
39
  }
40
40
  }
41
41
  }
@@ -37,7 +37,7 @@ export class AttendanceTuitionFee extends ProgrammesBaseIndexabilityPolicy {
37
37
  ]);
38
38
  const result = await this.checkRulesForSitemapWithPageNumber(filterKeyValues, pageNumber);
39
39
  if (result) {
40
- paths.push(this.getPathWithPageNumber(`${attendance.path}/${affordableTuition.path}`, pageNumber));
40
+ paths.push(this.getPathWithPageNumber(`${affordableTuition.path}/${attendance.path}`, pageNumber));
41
41
  }
42
42
  }
43
43
  }
@@ -38,7 +38,7 @@ export class DegreeAttendanceFormat extends ProgrammesBaseIndexabilityPolicy {
38
38
  ]);
39
39
  const result = await this.checkRulesForSitemapWithPageNumber(filterKeyValues, pageNumber);
40
40
  if (result) {
41
- paths.push(this.getPathWithPageNumber(`${degree.path}/${attendance.path}/${format.path}`, pageNumber));
41
+ paths.push(this.getPathWithPageNumber(`${degree.path}/${format.path}/${attendance.path}`, pageNumber));
42
42
  }
43
43
  }
44
44
  }
@@ -42,7 +42,7 @@ export class DegreeAttendanceTuitionFee extends ProgrammesBaseIndexabilityPolicy
42
42
  ]);
43
43
  const result = await this.checkRulesForSitemapWithPageNumber(filterKeyValues, pageNumber);
44
44
  if (result) {
45
- paths.push(this.getPathWithPageNumber(`${degree.path}/${attendance.path}/${affordableTuition.path}`, pageNumber));
45
+ paths.push(this.getPathWithPageNumber(`${degree.path}/${affordableTuition.path}/${attendance.path}`, pageNumber));
46
46
  }
47
47
  }
48
48
  }
@@ -40,7 +40,7 @@ export class DisciplineTuitionFeeAttendance extends ProgrammesBaseIndexabilityPo
40
40
  ]);
41
41
  const result = await this.checkRulesForSitemapWithPageNumber(filterKeyValues, pageNumber);
42
42
  if (result) {
43
- paths.push(this.getPathWithPageNumber(`${tuitionFee.path}/${attendance.path}/${discipline.path}`, pageNumber));
43
+ paths.push(this.getPathWithPageNumber(`${discipline.path}/${tuitionFee.path}/${attendance.path}`, pageNumber));
44
44
  }
45
45
  }
46
46
  }
@@ -1,5 +1,4 @@
1
1
  import { DependencyMissingError } from '../../errors/DependencyMissingError';
2
- import { FilterKey } from '@studyportals/search-filters/server-side';
3
2
  export class MinimumAmountOfResultsRule {
4
3
  minimumResultsCount = 7;
5
4
  maximumPageSize = 20;
@@ -17,11 +16,6 @@ export class MinimumAmountOfResultsRule {
17
16
  throw new DependencyMissingError('SearchApiClient');
18
17
  }
19
18
  const count = await this.searchApiClient.getCount(filterKeyValues);
20
- if (filterKeyValues.has(FilterKey.DURATION)) {
21
- const filterKey = FilterKey.DURATION;
22
- const filterValue = filterKeyValues.get(filterKey);
23
- console.log(`DEBUG: Duration filter applied alone, filter key: ${filterKey}, filter value: ${filterValue} found results: ${count}`); // eslint-disable-line no-console
24
- }
25
19
  return count >= (pageNumber - 1) * this.maximumPageSize + this.minimumResultsCount;
26
20
  }
27
21
  forSitemapGenerator() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/fawkes",
3
- "version": "8.0.2-16",
3
+ "version": "8.0.2-18",
4
4
  "description": "A package to centralize SEO related logic for SBLP and Sitemap Generator.",
5
5
  "files": [
6
6
  "./dist"