@studyportals/fawkes 8.0.2-10 → 8.0.2-12
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.
- package/dist/src/enums/FilterCombinations.d.ts +1 -0
- package/dist/src/enums/FilterCombinations.js +1 -0
- package/dist/src/programmes/policies/AttendanceArea.js +1 -1
- package/dist/src/programmes/policies/ContinentDuration.js +2 -2
- package/dist/src/programmes/policies/ContinentSpecialProgrammes.js +1 -1
- package/dist/src/programmes/policies/DisciplineSpecialProgrammes.js +2 -2
- package/dist/src/programmes/policies/index.d.ts +1 -0
- package/dist/src/programmes/policies/index.js +1 -0
- package/dist/src/sitemap-generator/ProgrammesSitemapUrlGeneratorManager.js +11 -9
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ export declare enum FilterCombinations {
|
|
|
16
16
|
COUNTRY_SPECIAL_PROGRAMMES = "countrySpecialProgrammes",
|
|
17
17
|
CONTINENT_FORMAT = "continentFormat",
|
|
18
18
|
CONTINENT_DURATION = "continentDuration",
|
|
19
|
+
CONTINENT_SPECIAL_PROGRAMMES = "continentSpecialProgrammes",
|
|
19
20
|
DISCIPLINE_AREA = "disciplineArea",
|
|
20
21
|
DISCIPLINE_ATTENDANCE = "disciplineAttendance",
|
|
21
22
|
DISCIPLINE_COUNTRY = "disciplineCountry",
|
|
@@ -17,6 +17,7 @@ export var FilterCombinations;
|
|
|
17
17
|
FilterCombinations["COUNTRY_SPECIAL_PROGRAMMES"] = "countrySpecialProgrammes";
|
|
18
18
|
FilterCombinations["CONTINENT_FORMAT"] = "continentFormat";
|
|
19
19
|
FilterCombinations["CONTINENT_DURATION"] = "continentDuration";
|
|
20
|
+
FilterCombinations["CONTINENT_SPECIAL_PROGRAMMES"] = "continentSpecialProgrammes";
|
|
20
21
|
FilterCombinations["DISCIPLINE_AREA"] = "disciplineArea";
|
|
21
22
|
FilterCombinations["DISCIPLINE_ATTENDANCE"] = "disciplineAttendance";
|
|
22
23
|
FilterCombinations["DISCIPLINE_COUNTRY"] = "disciplineCountry";
|
|
@@ -14,7 +14,7 @@ export class AttendanceArea extends ProgrammesBaseIndexabilityPolicy {
|
|
|
14
14
|
new SingleValueSelectedForFilterRule(FilterKey.AREA),
|
|
15
15
|
new SingleValueSelectedForFilterRule(FilterKey.COUNTRY),
|
|
16
16
|
new SingleValueSelectedForFilterRule(FilterKey.DELIVERY_METHOD),
|
|
17
|
-
new OnlyFiltersSelectedRule([FilterKey.AREA, FilterKey.DELIVERY_METHOD]),
|
|
17
|
+
new OnlyFiltersSelectedRule([FilterKey.AREA, FilterKey.DELIVERY_METHOD, FilterKey.COUNTRY]),
|
|
18
18
|
new OnlineAttendanceRule()
|
|
19
19
|
];
|
|
20
20
|
constructor(dependencies) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FilterKey } from '@studyportals/search-filters/server-side';
|
|
1
|
+
import { DurationFilterOptionValue, FilterKey } from '@studyportals/search-filters/server-side';
|
|
2
2
|
import { OnlyFiltersSelectedRule } from '../../common/rules/OnlyFiltersSelectedRule';
|
|
3
3
|
import { SingleValueSelectedForFilterRule } from '../../common/rules/SingleValueSelectedForFilterRule';
|
|
4
4
|
import { FilterCombinations } from '../../enums/FilterCombinations';
|
|
@@ -22,7 +22,7 @@ export class ContinentDuration extends ProgrammesBaseIndexabilityPolicy {
|
|
|
22
22
|
const durationFragments = DurationPresenter.getInstance().getFragments();
|
|
23
23
|
const continentFragments = ContinentPresenter.getInstance().getFragments();
|
|
24
24
|
const paths = [];
|
|
25
|
-
const allowedDurationIds = [
|
|
25
|
+
const allowedDurationIds = [DurationFilterOptionValue.ONE_YEAR];
|
|
26
26
|
const allowedDurations = durationFragments.filter(duration => allowedDurationIds.includes(duration.id));
|
|
27
27
|
for (const pageNumber of this.indexablePageNumbers) {
|
|
28
28
|
for (const duration of allowedDurations) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FilterKey } from '@studyportals/search-filters/server-side';
|
|
1
|
+
import { FilterKey, SpecialProgrammesFilterOptionValue } from '@studyportals/search-filters/server-side';
|
|
2
2
|
import { OnlyFiltersSelectedRule } from '../../common/rules/OnlyFiltersSelectedRule';
|
|
3
3
|
import { SingleValueSelectedForFilterRule } from '../../common/rules/SingleValueSelectedForFilterRule';
|
|
4
4
|
import { FilterCombinations } from '../../enums/FilterCombinations';
|
|
@@ -22,7 +22,7 @@ export class DisciplineSpecialProgrammes extends ProgrammesBaseIndexabilityPolic
|
|
|
22
22
|
const specialProgrammesFragments = SpecialProgrammesPresenter.getInstance().getFragments();
|
|
23
23
|
const disciplineFragments = DisciplinePresenter.getInstance().getFragments();
|
|
24
24
|
const paths = [];
|
|
25
|
-
const validSpecialProgrammesIds = [
|
|
25
|
+
const validSpecialProgrammesIds = [SpecialProgrammesFilterOptionValue.ERASMUS_MUNDUS];
|
|
26
26
|
const validSpecialProgrammes = specialProgrammesFragments.filter(specialProgramme => validSpecialProgrammesIds.includes(specialProgramme.id));
|
|
27
27
|
for (const pageNumber of this.indexablePageNumbers) {
|
|
28
28
|
for (const specialProgramme of validSpecialProgrammes) {
|
|
@@ -46,18 +46,19 @@ DegreeAreaTuitionFee,
|
|
|
46
46
|
// DisciplineContinentAttendance,
|
|
47
47
|
// DegreeContinentTuitionFee,
|
|
48
48
|
// AttendanceFormat,
|
|
49
|
-
ContinentFormat,
|
|
49
|
+
// ContinentFormat,
|
|
50
50
|
// AttendanceContinent,
|
|
51
51
|
// DegreeDuration,
|
|
52
|
-
|
|
52
|
+
ContinentSpecialProgrammes,
|
|
53
53
|
// CountrySpecialProgrammes,
|
|
54
|
-
|
|
54
|
+
AttendanceArea,
|
|
55
55
|
// DegreeFormatTuitionFee,
|
|
56
|
-
ContinentDuration,
|
|
56
|
+
// ContinentDuration,
|
|
57
57
|
// DegreeAttendanceFormat,
|
|
58
58
|
// DisciplineCountryAttendance,
|
|
59
59
|
// DisciplineCountryFormat,
|
|
60
60
|
// DegreeSpecialProgrammes,
|
|
61
|
+
// Degree
|
|
61
62
|
} from '../programmes/policies';
|
|
62
63
|
import { FilterKey } from '@studyportals/search-filters/server-side';
|
|
63
64
|
import { AreaPresenter } from '../presenters/AreaPresenter';
|
|
@@ -71,7 +72,7 @@ import { SpecialProgrammesPresenter } from '../presenters/SpecialProgrammesPrese
|
|
|
71
72
|
import { DurationPresenter } from '../presenters/DurationPresenter';
|
|
72
73
|
import { EducationalFormPresenter } from '../presenters/EducationalFormPresenter';
|
|
73
74
|
import { FormatPresenter } from '../presenters/FormatPresenter';
|
|
74
|
-
|
|
75
|
+
import { DisciplineSpecialProgrammes } from '../programmes/policies/DisciplineSpecialProgrammes';
|
|
75
76
|
export class ProgrammesSitemapUrlGeneratorManager extends BaseSitemapUrlGeneratorManager {
|
|
76
77
|
portalType;
|
|
77
78
|
policies;
|
|
@@ -108,9 +109,9 @@ export class ProgrammesSitemapUrlGeneratorManager extends BaseSitemapUrlGenerato
|
|
|
108
109
|
// new CountryFormat(dependencies),
|
|
109
110
|
// new CountryTuitionFee(dependencies),
|
|
110
111
|
// new CountrySpecialProgrammes(dependencies),
|
|
111
|
-
new ContinentFormat(dependencies),
|
|
112
|
-
|
|
113
|
-
new ContinentDuration(dependencies),
|
|
112
|
+
// new ContinentFormat(dependencies),
|
|
113
|
+
new ContinentSpecialProgrammes(dependencies),
|
|
114
|
+
// new ContinentDuration(dependencies),
|
|
114
115
|
// new DegreeAttendanceDiscipline(dependencies),
|
|
115
116
|
// new DegreeCountryAttendance(dependencies),
|
|
116
117
|
// new DegreeCountryDiscipline(dependencies),
|
|
@@ -140,9 +141,10 @@ export class ProgrammesSitemapUrlGeneratorManager extends BaseSitemapUrlGenerato
|
|
|
140
141
|
// new DisciplineContinentAttendance(dependencies),
|
|
141
142
|
// new DisciplineCountryAttendance(dependencies),
|
|
142
143
|
// new DisciplineCountryFormat(dependencies),
|
|
144
|
+
new DisciplineSpecialProgrammes(dependencies),
|
|
143
145
|
// new AttendanceTuitionFee(dependencies),
|
|
144
146
|
// new AttendanceFormat(dependencies),
|
|
145
|
-
|
|
147
|
+
new AttendanceArea(dependencies)
|
|
146
148
|
];
|
|
147
149
|
this.presenters.set(FilterKey.AREA, AreaPresenter.getInstance());
|
|
148
150
|
this.presenters.set(FilterKey.DELIVERY_METHOD, AttendancePresenter.getInstance());
|