Skip to content

Commit

Permalink
Add validation link to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
skodapetr committed Nov 29, 2024
1 parent 838c1bb commit 79ee08f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ LABEL_CACHE_RELOAD_CRON = "0/15 * * * *"
# Optional Matomo configuration.
CLIENT_MATOMO_URL = "http://matomo.localhost/"
CLIENT_MATOMO_SITE_ID = "1"
CLIENT_CATALOG_VALIDATOR = "https://datagov-cz.github.io/lkod-validator?catalog={}"
# Links to catalog validator.
CLIENT_CATALOG_VALIDATOR_LANDING_PAGE = "https://datagov-cz.github.io/lkod-validator/"
CLIENT_CATALOG_VALIDATOR_RUN_VALIDATION = "https://datagov-cz.github.io/lkod-validator?catalog={}"
```

Pak je již možné provést samotné spuštění.
Expand Down
1 change: 1 addition & 0 deletions server/component/footer-cs.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ <h3 class="h6">Registrace do NKOD</h3>
<ul>
<li><a href="/formulář/registrace-datové-sady">Registrovat novou datovou sadu</a></li>
<li><a href="/formulář/registrace-lokálního-katalogu">Registrovat nový lokální katalog</a></li>
<li><a href="{{catalogValidator}}">Validovat lokální katalog</a></li>
<li><a href="{{applicationRegistrationFormUrl}}">Registrovat aplikaci využívající otevřená data</a></li>
<li><a href="{{suggestionRegistrationFormUrl}}">Registrovat návrh datové sady k otevření</a></li>
</ul>
Expand Down
1 change: 1 addition & 0 deletions server/component/footer-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ <h3 class="h6">Registration in NKOD</h3>
<ul>
<li><a href="/formulář/dataset-registration">Register a dataset</a></li>
<li><a href="/formulář/local-catalog-registration">Register a new local catalog</a></li>
<li><a href="{{catalogValidator}}">Validate local catalog</a></li>
<li><a href="{{applicationRegistrationFormUrl}}">Register an application using open data</a></li>
<li><a href="{{suggestionRegistrationFormUrl}}">Suggest data to be opened</a></li>
</ul>
Expand Down
1 change: 1 addition & 0 deletions server/component/footer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ export function createFooterData() {
return {
"applicationRegistrationFormUrl": configuration.client.applicationFormUrl,
"suggestionRegistrationFormUrl": configuration.client.suggestionFormUrl,
"catalogValidator": configuration.client.catalogValidator,
};
}
7 changes: 6 additions & 1 deletion server/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ const ConfigurationZod = z.object({
* Value of siteId used for Matomo reporting.
*/
matomoSiteId: z.string().nullable(),
/**
* Link to local catalog validator landing page.
*/
catalogValidator: z.string(),
/**
* Replace {} with catalog endpoint.
*/
Expand Down Expand Up @@ -116,7 +120,8 @@ const createConfiguration = (): Configuration => {
process.env.CLIENT_DATA_SERVICE_CLASS_AND_PROPERTIES_TEMPLATE ?? null,
matomoUrl: process.env.CLIENT_MATOMO_URL ?? null,
matomoSiteId: process.env.CLIENT_MATOMO_SITE_ID ?? null,
catalogValidatorTemplate : process.env.CLIENT_CATALOG_VALIDATOR ?? null,
catalogValidator: process.env.CLIENT_CATALOG_VALIDATOR_LANDING_PAGE ?? null,
catalogValidatorTemplate : process.env.CLIENT_CATALOG_VALIDATOR_RUN_VALIDATION ?? null,
},
});
};
Expand Down

0 comments on commit 79ee08f

Please sign in to comment.