@studyportals/fawkes 7.4.2-5 → 7.4.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.
|
@@ -20,11 +20,14 @@ export class Format extends ProgrammesBaseIndexabilityPolicy {
|
|
|
20
20
|
const formatFragments = FormatPresenter.getInstance().getFragments();
|
|
21
21
|
const allowedFormatIds = [FormatFilterOptionValue.PART_TIME, FormatFilterOptionValue.FULL_TIME];
|
|
22
22
|
const allowedFormats = formatFragments.filter(format => allowedFormatIds.includes(format.id));
|
|
23
|
+
console.log("Allowed Formats are: " + allowedFormats.map(format => format.id).join(", ")); // eslint-disable-line
|
|
23
24
|
const paths = [];
|
|
24
25
|
for (const pageNumber of this.indexablePageNumbers) {
|
|
25
26
|
for (const format of allowedFormats) {
|
|
26
27
|
const filterKeyValues = new Map([[FilterKey.ATTENDANCE, [format.id]]]);
|
|
27
28
|
const result = await this.checkRulesForSitemapWithPageNumber(filterKeyValues, pageNumber);
|
|
29
|
+
console.log("Checking format: " + format.id + " on page: " + pageNumber); // eslint-disable-line
|
|
30
|
+
console.log("Result: " + result); // eslint-disable-line
|
|
28
31
|
if (result) {
|
|
29
32
|
paths.push(this.getPathWithPageNumber(format.path, pageNumber));
|
|
30
33
|
}
|