@studyportals/fawkes 8.5.3-3 → 8.6.0

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.
@@ -22,7 +22,7 @@ export class ProgrammesBaseIndexabilityPolicy extends BaseSeoIndexabilityPolicy
22
22
  }
23
23
  async checkRulesForSitemapWithPageNumber(filterKeyValues, pageNumber) {
24
24
  const dependencies = this.dependencies;
25
- if (!Object.keys(filterKeyValues).some(key => key === FilterKey.EDUCATION_LEVEL)) {
25
+ if (!Object.keys(filterKeyValues).some(key => key === FilterKey.EDUCATION_LEVEL.toString())) {
26
26
  filterKeyValues[FilterKey.EDUCATION_LEVEL] = [dependencies.portalType];
27
27
  }
28
28
  for (const rule of this.rules) {
@@ -14,9 +14,7 @@ export class AttendanceDegree extends ProgrammesBaseIndexabilityPolicy {
14
14
  rules;
15
15
  constructor(dependencies) {
16
16
  super(dependencies);
17
- const portalType = this.isSitemapUrlGeneratorDependencies()
18
- ? dependencies.portalType
19
- : undefined;
17
+ const portalType = dependencies.portalType;
20
18
  this.rules = [
21
19
  new SingleValueSelectedForFilterRule(FilterKey.DELIVERY_METHOD),
22
20
  new SingleValueSelectedForFilterRule(FilterKey.DEGREE_TYPE),
@@ -13,9 +13,7 @@ export class CountryDegree extends ProgrammesBaseIndexabilityPolicy {
13
13
  rules;
14
14
  constructor(dependencies) {
15
15
  super(dependencies);
16
- const portalType = this.isSitemapUrlGeneratorDependencies()
17
- ? dependencies.portalType
18
- : undefined;
16
+ const portalType = dependencies.portalType;
19
17
  this.rules = [
20
18
  new SingleValueSelectedForFilterRule(FilterKey.COUNTRY),
21
19
  new SingleValueSelectedForFilterRule(FilterKey.DEGREE_TYPE),
@@ -14,9 +14,7 @@ export class CountryEducationalForm extends ProgrammesBaseIndexabilityPolicy {
14
14
  rules;
15
15
  constructor(dependencies) {
16
16
  super(dependencies);
17
- const portalType = this.isSitemapUrlGeneratorDependencies()
18
- ? dependencies.portalType
19
- : undefined;
17
+ const portalType = dependencies.portalType;
20
18
  this.rules = [
21
19
  new SingleValueSelectedForFilterRule(FilterKey.COUNTRY),
22
20
  new SingleValueSelectedForFilterRule(FilterKey.EDUCATIONAL_FORM),
@@ -17,9 +17,7 @@ export class DegreeAttendanceTuitionFee extends ProgrammesBaseIndexabilityPolicy
17
17
  rules;
18
18
  constructor(dependencies) {
19
19
  super(dependencies);
20
- const portalType = this.isSitemapUrlGeneratorDependencies()
21
- ? dependencies.portalType
22
- : undefined;
20
+ const portalType = dependencies.portalType;
23
21
  this.rules = [
24
22
  new SingleValueSelectedForFilterRule(FilterKey.DEGREE_TYPE),
25
23
  new SingleValueSelectedForFilterRule(FilterKey.DELIVERY_METHOD),
@@ -13,9 +13,7 @@ export class DegreeContinent extends ProgrammesBaseIndexabilityPolicy {
13
13
  rules;
14
14
  constructor(dependencies) {
15
15
  super(dependencies);
16
- const portalType = this.isSitemapUrlGeneratorDependencies()
17
- ? dependencies.portalType
18
- : undefined;
16
+ const portalType = dependencies.portalType;
19
17
  this.rules = [
20
18
  new SingleValueSelectedForFilterRule(FilterKey.CONTINENT),
21
19
  new SingleValueSelectedForFilterRule(FilterKey.DEGREE_TYPE),
@@ -14,9 +14,7 @@ export class DegreeContinentTuitionFee extends ProgrammesBaseIndexabilityPolicy
14
14
  rules;
15
15
  constructor(dependencies) {
16
16
  super(dependencies);
17
- const portalType = this.isSitemapUrlGeneratorDependencies()
18
- ? dependencies.portalType
19
- : undefined;
17
+ const portalType = dependencies.portalType;
20
18
  this.rules = [
21
19
  new SingleValueSelectedForFilterRule(FilterKey.CONTINENT),
22
20
  new SingleValueSelectedForFilterRule(FilterKey.DEGREE_TYPE),
@@ -14,9 +14,7 @@ export class DegreeDuration extends ProgrammesBaseIndexabilityPolicy {
14
14
  rules;
15
15
  constructor(dependencies) {
16
16
  super(dependencies);
17
- const portalType = this.isSitemapUrlGeneratorDependencies()
18
- ? dependencies.portalType
19
- : undefined;
17
+ const portalType = dependencies.portalType;
20
18
  this.rules = [
21
19
  new SingleValueSelectedForFilterRule(FilterKey.DURATION),
22
20
  new SingleValueSelectedForFilterRule(FilterKey.DEGREE_TYPE),
@@ -13,9 +13,7 @@ export class DegreeFormat extends ProgrammesBaseIndexabilityPolicy {
13
13
  rules;
14
14
  constructor(dependencies) {
15
15
  super(dependencies);
16
- const portalType = this.isSitemapUrlGeneratorDependencies()
17
- ? dependencies.portalType
18
- : undefined;
16
+ const portalType = dependencies.portalType;
19
17
  this.rules = [
20
18
  new SingleValueSelectedForFilterRule(FilterKey.ATTENDANCE),
21
19
  new SingleValueSelectedForFilterRule(FilterKey.DEGREE_TYPE),
@@ -16,9 +16,7 @@ export class DegreeFormatTuitionFee extends ProgrammesBaseIndexabilityPolicy {
16
16
  rules;
17
17
  constructor(dependencies) {
18
18
  super(dependencies);
19
- const portalType = this.isSitemapUrlGeneratorDependencies()
20
- ? dependencies.portalType
21
- : undefined;
19
+ const portalType = dependencies.portalType;
22
20
  this.rules = [
23
21
  new SingleValueSelectedForFilterRule(FilterKey.ATTENDANCE),
24
22
  new SingleValueSelectedForFilterRule(FilterKey.DEGREE_TYPE),
@@ -15,9 +15,7 @@ export class DisciplineCountryEducationalForm extends ProgrammesBaseIndexability
15
15
  rules;
16
16
  constructor(dependencies) {
17
17
  super(dependencies);
18
- const portalType = this.isSitemapUrlGeneratorDependencies()
19
- ? dependencies.portalType
20
- : undefined;
18
+ const portalType = dependencies.portalType;
21
19
  this.rules = [
22
20
  new SingleValueSelectedForFilterRule(FilterKey.DISCIPLINES),
23
21
  new SingleValueSelectedForFilterRule(FilterKey.COUNTRY),
@@ -14,9 +14,7 @@ export class DisciplineEducationalForm extends ProgrammesBaseIndexabilityPolicy
14
14
  rules;
15
15
  constructor(dependencies) {
16
16
  super(dependencies);
17
- const portalType = this.isSitemapUrlGeneratorDependencies()
18
- ? dependencies.portalType
19
- : undefined;
17
+ const portalType = dependencies.portalType;
20
18
  this.rules = [
21
19
  new SingleValueSelectedForFilterRule(FilterKey.DISCIPLINES),
22
20
  new SingleValueSelectedForFilterRule(FilterKey.EDUCATIONAL_FORM),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/fawkes",
3
- "version": "8.5.3-3",
3
+ "version": "8.6.0",
4
4
  "description": "A package to centralize SEO related logic for SBLP and Sitemap Generator.",
5
5
  "files": [
6
6
  "./dist"