@studyportals/fawkes 2.0.1-27 → 2.0.1-29
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.
|
@@ -3,6 +3,7 @@ import { FilterCombinations } from '../../enums/FilterCombinations';
|
|
|
3
3
|
import { RuleBasedIndexabilityPolicy } from '../../common/RuleBasedIndexabilityPolicy';
|
|
4
4
|
import { SearchVolumeCountriesDisciplinesRule } from '../rules/SearchVolumeCountryDisciplineRule';
|
|
5
5
|
import { CountryPresenter } from '../../presenters/CountryPresenter';
|
|
6
|
+
import { DisciplinePresenter } from '../../presenters/DisciplinePresenter';
|
|
6
7
|
export class DisciplineCountryPolicy extends RuleBasedIndexabilityPolicy {
|
|
7
8
|
constructor(dependencies) {
|
|
8
9
|
super(dependencies);
|
|
@@ -27,7 +28,7 @@ export class DisciplineCountryPolicy extends RuleBasedIndexabilityPolicy {
|
|
|
27
28
|
generateUrls() {
|
|
28
29
|
const paths = [];
|
|
29
30
|
const countryFragments = CountryPresenter.getInstance().getFragments();
|
|
30
|
-
const disciplineFragments =
|
|
31
|
+
const disciplineFragments = DisciplinePresenter.getInstance().getFragments();
|
|
31
32
|
countryFragments.forEach(country => {
|
|
32
33
|
disciplineFragments.forEach(discipline => {
|
|
33
34
|
if (this.checksRulesForSitemap({
|
|
@@ -2,6 +2,7 @@ import { AreaPolicy } from "../scholarships/policies/AreaPolicy";
|
|
|
2
2
|
import { DependencyTypes } from "../enums/DependencyTypes";
|
|
3
3
|
import { CountryPolicy } from "../scholarships/policies/CountryPolicy";
|
|
4
4
|
import { DisciplinePolicy } from "../scholarships/policies/DisciplinePolicy";
|
|
5
|
+
import { DisciplineCountryPolicy } from "../scholarships/policies/DisciplineCountryPolicy";
|
|
5
6
|
export class SitemapUrlGeneratorManager {
|
|
6
7
|
policies;
|
|
7
8
|
constructor(
|
|
@@ -13,6 +14,7 @@ export class SitemapUrlGeneratorManager {
|
|
|
13
14
|
this.policies = [
|
|
14
15
|
new AreaPolicy({ dependencyType }),
|
|
15
16
|
new CountryPolicy({ dependencyType }),
|
|
17
|
+
new DisciplineCountryPolicy({ dependencyType }),
|
|
16
18
|
new DisciplinePolicy({ dependencyType })
|
|
17
19
|
];
|
|
18
20
|
}
|