allow reuse of filters, update to artwork theme

This commit is contained in:
Pieter Vander Vennet 2022-09-14 16:29:41 +02:00
parent a1a12e6f38
commit 585dbb4587
8 changed files with 221 additions and 119 deletions

View file

@ -267,6 +267,9 @@ export default class TagRenderingConfig {
if (this.freeform.key === "wikidata" && txt.indexOf("{wikipedia()") >= 0) {
continue
}
if (this.freeform.type === "wikidata" && txt.indexOf(`{wikidata_label(${this.freeform.key})`) >= 0) {
continue
}
throw `${context}: The rendering for language ${ln} does not contain the freeform key {${this.freeform.key}}. This is a bug, as this rendering should show exactly this freeform key!\nThe rendering is ${txt} `
}
}