@studyportals/fawkes 2.0.1-31 → 2.0.1-33
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ICountryFragment } from './fragments/ICountryFragment';
|
|
2
2
|
export declare class CountryPresenter {
|
|
3
3
|
private static instance;
|
|
4
4
|
private fragments;
|
|
5
5
|
private constructor();
|
|
6
6
|
static getInstance(): CountryPresenter;
|
|
7
7
|
private generatePaths;
|
|
8
|
-
getFragments():
|
|
8
|
+
getFragments(): ICountryFragment[];
|
|
9
9
|
}
|
|
@@ -32,14 +32,14 @@ export class UniversityCountryPolicy extends BaseSeoIndexabilityPolicy {
|
|
|
32
32
|
const isoToPath = new Map();
|
|
33
33
|
const countries = CountryPresenter.getInstance().getFragments();
|
|
34
34
|
countries.forEach(country => {
|
|
35
|
-
isoToPath.set(country.
|
|
35
|
+
isoToPath.set(country.iso, country.path);
|
|
36
36
|
});
|
|
37
37
|
const paths = [];
|
|
38
38
|
organisations.forEach(org => {
|
|
39
39
|
org.countryIsoCodes.forEach(iso => {
|
|
40
40
|
const countryVirtualPath = isoToPath.get(iso);
|
|
41
41
|
if (countryVirtualPath) {
|
|
42
|
-
paths.push(`/${countryVirtualPath}/${org.virtualPath}`);
|
|
42
|
+
paths.push(`/${countryVirtualPath}/${org.virtualPath}/${org.id}`);
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
});
|