@studyportals/fawkes 7.4.2-4 → 7.4.2-5

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.
@@ -13,7 +13,7 @@ export class DegreeArea extends ProgrammesBaseIndexabilityPolicy {
13
13
  new SingleValueSelectedForFilterRule(FilterKey.AREA),
14
14
  new SingleValueSelectedForFilterRule(FilterKey.COUNTRY),
15
15
  new SingleValueSelectedForFilterRule(FilterKey.DEGREE_TYPE),
16
- new OnlyFiltersSelectedRule([FilterKey.AREA, FilterKey.DEGREE_TYPE])
16
+ new OnlyFiltersSelectedRule([FilterKey.AREA, FilterKey.COUNTRY, FilterKey.DEGREE_TYPE])
17
17
  ];
18
18
  constructor(dependencies) {
19
19
  super(dependencies);
@@ -1,4 +1,4 @@
1
- import { FilterKey } from '@studyportals/search-filters/search_filters_interfaces';
1
+ import { DurationFilterOptionValue, FilterKey } from '@studyportals/search-filters/search_filters_interfaces';
2
2
  import { OnlyFiltersSelectedRule } from '../../common/rules/OnlyFiltersSelectedRule';
3
3
  import { SingleValueSelectedForFilterRule } from '../../common/rules/SingleValueSelectedForFilterRule';
4
4
  import { FilterCombinations } from '../../enums/FilterCombinations';
@@ -15,7 +15,7 @@ export class Duration extends ProgrammesBaseIndexabilityPolicy {
15
15
  }
16
16
  async generateUrls() {
17
17
  const durationFragments = DurationPresenter.getInstance().getFragments();
18
- const allowedDurationIds = ["[360,360]", "[720,720]"];
18
+ const allowedDurationIds = [DurationFilterOptionValue.ONE_YEAR, DurationFilterOptionValue.TWO_YEARS];
19
19
  const allowedDurations = durationFragments.filter(duration => allowedDurationIds.includes(duration.id));
20
20
  const paths = [];
21
21
  for (const pageNumber of this.indexablePageNumbers) {
@@ -1,4 +1,4 @@
1
- import { FilterKey } from '@studyportals/search-filters/search_filters_interfaces';
1
+ import { FilterKey, FormatFilterOptionValue } from '@studyportals/search-filters/search_filters_interfaces';
2
2
  import { OnlyFiltersSelectedRule } from '../../common/rules/OnlyFiltersSelectedRule';
3
3
  import { SingleValueSelectedForFilterRule } from '../../common/rules/SingleValueSelectedForFilterRule';
4
4
  import { FilterCombinations } from '../../enums/FilterCombinations';
@@ -8,14 +8,17 @@ export class Format extends ProgrammesBaseIndexabilityPolicy {
8
8
  name = 'Format Policy';
9
9
  description = 'Governs indexing of format-level filtered pages.';
10
10
  filterKeys = [FilterKey.ATTENDANCE];
11
- rules = [new SingleValueSelectedForFilterRule(FilterKey.ATTENDANCE), new OnlyFiltersSelectedRule([FilterKey.ATTENDANCE])];
11
+ rules = [
12
+ new SingleValueSelectedForFilterRule(FilterKey.ATTENDANCE),
13
+ new OnlyFiltersSelectedRule([FilterKey.ATTENDANCE])
14
+ ];
12
15
  constructor(dependencies) {
13
16
  super(dependencies);
14
17
  this.initateBaseRules();
15
18
  }
16
19
  async generateUrls() {
17
20
  const formatFragments = FormatPresenter.getInstance().getFragments();
18
- const allowedFormatIds = ["fulltime", "parttime"];
21
+ const allowedFormatIds = [FormatFilterOptionValue.PART_TIME, FormatFilterOptionValue.FULL_TIME];
19
22
  const allowedFormats = formatFragments.filter(format => allowedFormatIds.includes(format.id));
20
23
  const paths = [];
21
24
  for (const pageNumber of this.indexablePageNumbers) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/fawkes",
3
- "version": "7.4.2-4",
3
+ "version": "7.4.2-5",
4
4
  "description": "A package to centralize SEO related logic for SBLP and Sitemap Generator.",
5
5
  "files": [
6
6
  "./dist"