Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/stores/evaluation.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { createCleanEvaluation } from "../utils/createCleanEvaluation.js";
const storageName = "openacr_editor_store";

// update this number whenever new things added to the data model to cachebust [remove this when stable]
const DATA_MODEL = "24";
const DATA_MODEL = "25";

let fresh = true;

Expand Down
49 changes: 30 additions & 19 deletions src/utils/getCatalogs.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,49 @@
import wcag20508catalog from "@openacr/openacr/catalog/2.4-edition-wcag-2.0-508-en.yaml";
import wcag21catalog from "@openacr/openacr/catalog/2.4-edition-wcag-2.1-en.yaml";
import wcag21508catalog from "@openacr/openacr/catalog/2.4-edition-wcag-2.1-508-en.yaml";
export const wcag20508catalogName = "2.4-edition-wcag-2.0-508-en";
const wcag21catalogName = "2.4-edition-wcag-2.1-en";
const wcag21508catalogName = "2.4-edition-wcag-2.1-508-en";
import wcag20508catalog from "@openacr/openacr/catalog/2.5-edition-wcag-2.0-508-en.yaml";
import wcag22508catalog from "@openacr/openacr/catalog/2.5-edition-wcag-2.2-508-en.yaml";
import wcag22catalog from "@openacr/openacr/catalog/2.5-edition-wcag-2.2-en.yaml";
import wcag22301catalog from "@openacr/openacr/catalog/2.5-edition-wcag-2.2-508-eu-en.yaml";
export const wcag20508catalogName = "2.5-edition-wcag-2.0-508-en";
const wcag22508catalogName = "2.5-edition-wcag-2.2-508-en";
const wcag22catalogName = "2.5-edition-wcag-2.2-en";
const wcag22301catalogName = "2.5-edition-wcag-2.2-508-eu-en";

export function getCatalog(catalogName) {
if (catalogName == wcag20508catalogName) {
return wcag20508catalog;
} else if (catalogName == wcag21catalogName) {
return wcag21catalog;
} else if (catalogName == wcag21508catalogName) {
return wcag21508catalog;
} else if (catalogName == wcag22508catalogName) {
return wcag22508catalog;
} else if (catalogName == wcag22catalogName) {
return wcag22catalog;
} else if (catalogName == wcag22301catalogName) {
return wcag22301catalog;
}

return wcag20508catalog;
}

export function getListOfCatalogs() {
return [
// TODO: Fix Schema Validation Errors
// {
// catalog: wcag20508catalogName,
// title: "VPAT® 2.5 508: Revised Section 508 Edition (WCAG 2.0)",
// },
{
catalog: wcag20508catalogName,
title: "VPAT® 2.4 508: Revised Section 508 Edition (WCAG 2.0)",
},
{
catalog: wcag21508catalogName,
title: "VPAT® 2.4 508 + WCAG: Revised Section 508 Edition (WCAG 2.1)",
catalog: wcag22508catalogName,
title: "VPAT® 2.5 508 + WCAG: Revised Section 508 Edition (WCAG 2.2)",
},
{
catalog: wcag21catalogName,
title: "VPAT® 2.4 WCAG: WCAG 2.1",
catalog: wcag22catalogName,
title: "VPAT® 2.5 WCAG: WCAG 2.2",
},
// TODO: Fix Empty Criteria Error
// {
// catalog: wcag22301catalogName,
// title: "VPAT® Rev EU: EN 301 549",
// }
];
}

export function getDefaultCatalogName() {
return wcag21508catalogName;
return wcag22508catalogName;
}