Browse Source

culture-media: add category filter values which need the wikidata object

parking-lanes
parent
commit
2c5a517366
  1. 9
      culture-media.yaml

9
culture-media.yaml

@ -37,6 +37,13 @@ feature:
{% endif %}
exclude: |
{% if filter.category == 'wikidata_no_image' %}
{{ (not wikidata) or (wikidata.claims.P18|length != 0) }}
{% elseif filter.category == 'wikidata_human' %}
{{ wikidata.claims.P31[0].mainsnak.datavalue.value.id not in ['Q5'] }}
{% endif %}
body: |
{{ str }}
@ -96,6 +103,8 @@ filter:
<option value='wikipedia_no_wikidata' query='nwr[!wikidata][wikipedia]'>wikipedia tag found without corresponding wikidata tag</option>
<option value='has_image' query='(nwr[!wikidata][image];nwr[!wikidata][wikimedia_commons];)'>image or wikimedia_commons tag but no wikidata</option>
<option value='wikidata' query='nwr[wikidata]'>has wikidata tag</option>
<option value='wikidata_no_image' query='nwr[wikidata]'>has wikidata tag, but wikidata object does not have an image</option>
<option value='wikidata_human' query='nwr[wikidata]'>wikidata tag points to a human, should most likely be 'subject:wikidata'</option>
info: |
<table>
<tr>

Loading…
Cancel
Save