Improve wikidata search with filtering, add search box for species to trees

This commit is contained in:
Pieter Vander Vennet 2022-04-22 01:45:54 +02:00
parent 1271f24160
commit 389e3f18a0
7 changed files with 249 additions and 113 deletions

View file

@ -314,6 +314,34 @@
]
}
},
{
"id": "tree-species-wikidata",
"question": {
"en": "What species is this tree?"
},
"render": {
"*":"{wikipedia(species:wikidata):max-height: 25rem}"
},
"freeform": {
"key": "species:wikidata",
"type": "wikidata",
"helperArgs": [
"species",
{
"instanceOf": [10884, 16521]
}]
}
},
{
"id": "tree-wikipedia",
"#": "If this tree has a wikipedia article, show it. People can _only_ set the species though!",
"render": {
"*":"{wikipedia()}"
},
"condition": {
"or": ["wikipedia~*","wikidata~*"]
}
},
{
"render": {
"nl": "Naam: {name}",