Hide work data fields when they have no value
Fixes
Fixes microtask T406994
Description
Replace how empty field values in the Work data section are displayed inside work.html template.
If no value is found, it will hide the field altogether instead of having a value of “Unknown”.
Additionally, if none of the fields have value, it will display a text stating “No data available.”
Checklist
- add an
ifstatement to check if there are any values available forwork_publication_date,work_countryandwork_language - add an
ifstatement to eachdetail-itemto only display if a value is available (instead of showing ‘Unknown’). - if there is at least 1 value available, it will show this field
- if none of the value is known, show ‘No data available.’
- have the
ifstatements wrapping arounddiv.detail-itemto avoid rendering an empty div (and avoid unnecessary spacing)
Screenshots
| Before | After |
|---|---|
![]() |
![]() |
![]() |
![]() |



