Bug 29948: Hide entry if empty

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-05-06 12:18:55 +02:00 committed by Katrin Fischer
parent bdc06dd36f
commit bc77ca128a
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 78 additions and 62 deletions

View File

@ -21,74 +21,90 @@
[% END %]
</li>
[% CASE 'activity' %]
<li>
<span>
Field of activity: [% info.field_of_activity | html %]
[% IF info.start_period || info.end_period %]
(
[%~ IF info.start_period %]from: [% info.start_period | html %][% END %]
[% IF info.end_period %]until: [% info.end_period | html %][% END ~%]
)
[% END %]
</span>
</li>
[% IF info.field_of_activity %]
<li>
<span>
Field of activity: [% info.field_of_activity | html %]
[% IF info.start_period || info.end_period %]
(
[%~ IF info.start_period %]from: [% info.start_period | html %][% END %]
[% IF info.end_period %]until: [% info.end_period | html %][% END ~%]
)
[% END %]
</span>
</li>
[% END %]
[% CASE 'address' %]
<li>
<span>Address: [% info.address | html %] [% info.postal_code | html %] [% info.city | html %] [% info.country | html %]</span>
</li>
[% IF info.address %]
<li>
<span>Address: [% info.address | html %] [% info.postal_code | html %] [% info.city | html %] [% info.country | html %]</span>
</li>
[% END %]
[% CASE 'associated_group' %]
<li>
<span>
Associated group: [% info.associated_group | html %]
[% IF info.start_period || info.end_period %]
(
[%~ IF info.start_period %]from: [% info.start_period | html %][% END %]
[% IF info.end_period %]until: [% info.end_period | html %][% END ~%]
)
[% END %]
[% IF info.uri %]<p>URI: [% info.uri | html %]</p>[% END %]
[% IF info.source_of_information %]<p>Source of information: [% info.source_of_information | html %]</p> [% END %]
[% IF info.authority_record_number %]<p>Authority record control number or standard number: [% info.authority_record_number | html %]</p>[% END %]
</span>
</li>
[% IF info.associated_group %]
<li>
<span>
Associated group: [% info.associated_group | html %]
[% IF info.start_period || info.end_period %]
(
[%~ IF info.start_period %]from: [% info.start_period | html %][% END %]
[% IF info.end_period %]until: [% info.end_period | html %][% END ~%]
)
[% END %]
[% IF info.uri %]<p>URI: [% info.uri | html %]</p>[% END %]
[% IF info.source_of_information %]<p>Source of information: [% info.source_of_information | html %]</p> [% END %]
[% IF info.authority_record_number %]<p>Authority record control number or standard number: [% info.authority_record_number | html %]</p>[% END %]
</span>
</li>
[% END %]
[% CASE 'email_address' %]
<li>
<span>
Email address: [% info.email_address | html %]
</span>
</li>
[% IF info.email_address %]
<li>
<span>
Email address: [% info.email_address | html %]
</span>
</li>
[% END %]
[% CASE 'occupation' %]
<li>
<span>
Occupation: [% info.occupation | html %]
[% IF info.start_period || info.end_period %]
(
[%~ IF info.start_period %]from: [% info.start_period | html %][% END %]
[% IF info.end_period %]until: [% info.end_period | html %][% END ~%]
)
[% END %]
[% IF info.uri %]<p>URI: [% info.uri | html %]</p>[% END %]
[% IF info.source_of_information %]<p>Source of information: [% info.source_of_information | html %]</p> [% END %]
[% IF info.authority_record_number %]<p>Authority record control number or standard number: [% info.authority_record_number | html %]</p>[% END %]
</span>
</li>
[% IF info.occupation %]
<li>
<span>
Occupation: [% info.occupation | html %]
[% IF info.start_period || info.end_period %]
(
[%~ IF info.start_period %]from: [% info.start_period | html %][% END %]
[% IF info.end_period %]until: [% info.end_period | html %][% END ~%]
)
[% END %]
[% IF info.uri %]<p>URI: [% info.uri | html %]</p>[% END %]
[% IF info.source_of_information %]<p>Source of information: [% info.source_of_information | html %]</p> [% END %]
[% IF info.authority_record_number %]<p>Authority record control number or standard number: [% info.authority_record_number | html %]</p>[% END %]
</span>
</li>
[% END %]
[% CASE 'place_of_birth' %]
<li>
<span>
Place of birth: [% info.place_of_birth | html %]
</span>
</li>
[% IF info.place_of_birth %]
<li>
<span>
Place of birth: [% info.place_of_birth | html %]
</span>
</li>
[% END %]
[% CASE 'place_of_death' %]
<li>
<span>
Place of death: [% info.place_of_death | html %]
</span>
</li>
[% IF info.place_of_death %]
<li>
<span>
Place of death: [% info.place_of_death | html %]
</span>
</li>
[% END %]
[% CASE 'uri' %]
<li>
<span>
URI: [% info.uri | $raw | html %]
</span>
</li>
[% IF info.uri %]
<li>
<span>
URI: [% info.uri | $raw | html %]
</span>
</li>
[% END %]
[% END %]
[% END %]