@studyportals/fawkes 8.1.2-5 → 8.1.2-7

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.
@@ -31,6 +31,7 @@ export declare enum FilterCombinations {
31
31
  DISCIPLINE_CONTINENT_ATTENDANCE = "disciplineContinentAttendance",
32
32
  DISCIPLINE_SPECIAL_PROGRAMMES = "disciplineSpecialProgrammes",
33
33
  DISCIPLINE_COUNTRY_ATTENDANCE = "disciplineCountryAttendance",
34
+ DISCIPLINE_COUNTRY_FORMAT = "disciplineCountryFormat",
34
35
  DEGREE_COUNTRY_DISCIPLINE = "degreeCountryDiscipline",
35
36
  DEGREE_ATTENDANCE_DISCIPLINE = "degreeAttendanceDiscipline",
36
37
  DEGREE_COUNTRY_TUITION_FEE = "degreeCountryTuitionFee",
@@ -32,6 +32,7 @@ export var FilterCombinations;
32
32
  FilterCombinations["DISCIPLINE_CONTINENT_ATTENDANCE"] = "disciplineContinentAttendance";
33
33
  FilterCombinations["DISCIPLINE_SPECIAL_PROGRAMMES"] = "disciplineSpecialProgrammes";
34
34
  FilterCombinations["DISCIPLINE_COUNTRY_ATTENDANCE"] = "disciplineCountryAttendance";
35
+ FilterCombinations["DISCIPLINE_COUNTRY_FORMAT"] = "disciplineCountryFormat";
35
36
  FilterCombinations["DEGREE_COUNTRY_DISCIPLINE"] = "degreeCountryDiscipline";
36
37
  FilterCombinations["DEGREE_ATTENDANCE_DISCIPLINE"] = "degreeAttendanceDiscipline";
37
38
  FilterCombinations["DEGREE_COUNTRY_TUITION_FEE"] = "degreeCountryTuitionFee";
@@ -27,10 +27,12 @@ export class DisciplineCountryAttendance extends ProgrammesBaseIndexabilityPolic
27
27
  const countryFragments = CountryPresenter.getInstance().getFragments();
28
28
  const attendanceFragments = AttendancePresenter.getInstance().getFragments();
29
29
  const paths = [];
30
+ const allowedAttendanceIds = ["online"];
31
+ const allowedAttendances = attendanceFragments.filter(a => allowedAttendanceIds.includes(a.id));
30
32
  for (const pageNumber of this.indexablePageNumbers) {
31
33
  for (const discipline of disciplineFragments) {
32
34
  for (const country of countryFragments) {
33
- for (const attendance of attendanceFragments) {
35
+ for (const attendance of allowedAttendances) {
34
36
  const filterKeyValues = new Map([
35
37
  [FilterKey.DISCIPLINES, [discipline.id]],
36
38
  [FilterKey.COUNTRY, [country.id]],
@@ -49,6 +49,6 @@ export class DisciplineCountryFormat extends ProgrammesBaseIndexabilityPolicy {
49
49
  return paths;
50
50
  }
51
51
  get filterCombination() {
52
- return FilterCombinations.DISCIPLINE_COUNTRY_ATTENDANCE;
52
+ return FilterCombinations.DISCIPLINE_COUNTRY_FORMAT;
53
53
  }
54
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/fawkes",
3
- "version": "8.1.2-5",
3
+ "version": "8.1.2-7",
4
4
  "description": "A package to centralize SEO related logic for SBLP and Sitemap Generator.",
5
5
  "files": [
6
6
  "./dist"