Skip to content

Commit 8ec5b81

Browse files
hgourauda2line
authored andcommitted
updates to relations, sources and unions modules as suggested by D Deram
1 parent e03d629 commit 8ec5b81

File tree

3 files changed

+30
-28
lines changed

3 files changed

+30
-28
lines changed

hd/etc/modules/relations.txt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Id: modules/relations.txt v7.1 16/08/2023 14:41:19 $ -->
1+
<!-- $Id: modules/relations.txt v7.1 17/11/2023 10:30:00 $ -->
22
%( op_m=1 Relations %)
33
%( op_m=2 Relations complete (events) %)
44
%let;op_m;%if;(op_m!="")%op_m;%else;1%end;%in;
@@ -91,26 +91,26 @@
9191
<li>%apply;capitalize(relation_type)[:]%nl;
9292
<ul>
9393
%apply;li_SDC("relation_him")
94-
%apply;very_short_display_person_no_sex("relation_him")
94+
%apply;short_display_person("relation_him")
9595
</li>
9696
%apply;li_SDC("relation_her")
97-
%apply;very_short_display_person_no_sex("relation_her")
97+
%apply;short_display_person("relation_her")
9898
</li>
9999
</ul>
100100
</li>
101101
%elseif;has_relation_him;
102102
%apply;li_SDC("relation_him")%apply;capitalize(relation_type)[:]%sp;
103-
%apply;very_short_display_person_no_sex("relation_him")
103+
%apply;short_display_person("relation_him")
104104
</li>
105105
%elseif;has_relation_her;
106106
%apply;li_SDC("relation_her")%apply;capitalize(relation_type)[:]%sp;
107-
%apply;very_short_display_person_no_sex("relation_her")
107+
%apply;short_display_person("relation_her")
108108
</li>
109109
%end;
110110
%end;
111111
%foreach;related;
112112
%apply;li_SDC("related")%apply;capitalize(related_type)[:]%sp;
113-
%apply;very_short_display_person_no_sex("related")
113+
%apply;short_display_person("related")
114114
</li>
115115
%end;
116116
</ul>
@@ -152,17 +152,17 @@
152152
%( godparents are displayed in timeline if has_event %)
153153
%if;(has_relation_him and has_relation_her)
154154
<li>%apply;capitalize(relation_type)[:]%nl;
155-
%apply;very_short_display_person_no_sex("relation_him")
155+
%apply;short_display_person("relation_him")
156156
,%sp;
157-
%apply;very_short_display_person_no_sex("relation_her").
157+
%apply;short_display_person("relation_her").
158158
</li>
159159
%elseif;(has_relation_him and not has_relation_her)
160160
%apply;li_SDC("relation_him")%apply;capitalize(relation_type) :%sp;
161-
%apply;very_short_display_person_no_sex("relation_him").
161+
%apply;short_display_person("relation_him").
162162
</li>
163163
%elseif;(has_relation_her and not has_relation_him)
164164
%apply;li_SDC("relation_her")%apply;capitalize(relation_type) :%sp;
165-
%apply;very_short_display_person_no_sex("relation_her").
165+
%apply;short_display_person("relation_her").
166166
</li>
167167
%end;
168168
%end;
@@ -173,7 +173,7 @@
173173
related_type!=[godson/goddaughter/godchild]1 and
174174
related_type!=[godson/goddaughter/godchild]2)
175175
%apply;li_SDC("related")%apply;capitalize(related_type)[:]%sp;
176-
%apply;very_short_display_person_no_sex("related").
176+
%apply;short_display_person("related").
177177
</li>
178178
%end;
179179
%end;
@@ -195,7 +195,7 @@
195195
%if;(related_type=[godson/goddaughter/godchild]0 or
196196
related_type=[godson/goddaughter/godchild]1 or
197197
related_type=[godson/goddaughter/godchild]2)
198-
%apply;very_short_display_person_no_sex("related")
198+
%apply;short_display_person("related")
199199
%incr_count;
200200
%if;(count=g_cnt).
201201
%else;
@@ -214,7 +214,7 @@
214214
%end;
215215
%end;
216216
%if;(count>0)
217-
<h3>[*witnesses to events of] %first_name;</h3>
217+
<h3>[*witnesses to events of] %self;</h3>
218218
%end;
219219
<ul>
220220
%foreach;event;%sp;
@@ -227,7 +227,7 @@
227227
%apply;capitalize(event.name) %if;(event.date.year!="")(%event.date.year;)%end;[:]
228228
%foreach;event_witness;
229229
%if;not is_first;, %end;%nn;
230-
%apply;very_short_display_person_no_sex("event_witness")%nn;
230+
%apply;short_display_person("event_witness")%nn;
231231
%if;(event_witness_kind=[officer/officer/officers]0)%nn;
232232
%sp;(%if;(event_witness.sex=1)[officer/officer/officers]1%else;[officer/officer/officers]0%end;)%end;%nn;
233233
%end;.
@@ -252,10 +252,10 @@
252252
%apply;capitalize(event_witness_relation.event.name)%sp;
253253
%if;(event_witness_relation.event.date.year!="")(%event_witness_relation.event.date.year;)%end;[:]
254254
%if;(event_witness_relation_kind!=[witness/witnesses]0)(%event_witness_relation_kind;)%end;%sp;
255-
%apply;very_short_display_person_no_sex("event_witness_relation.person")
255+
%apply;short_display_person("event_witness_relation.person")
256256
%if;(event_witness_relation.event.spouse!="")
257257
%sp;[and]
258-
%apply;very_short_display_person_no_sex("event_witness_relation.event.spouse")
258+
%apply;short_display_person("event_witness_relation.event.spouse")
259259
%end;.
260260
</li>
261261
%end;

hd/etc/modules/sources.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Id: modules/sources.txt v7.0 28/10/2018 23:10:24 $ -->
1+
<!-- $Id: modules/sources.txt v7.1 17/11/2023 10:30:00 $ -->
22
%( op_m=1 Sources %)
33
%( op_m=2 Sources complete (events) %)
44
%let;op_m;%if;(op_m!="")%op_m;%else;1%end;%in;
@@ -20,6 +20,7 @@
2020
%else;
2121
<h2>[*source/sources]1</h2>
2222
%end;
23+
<em style="font-size:80%%">
2324
<ul>
2425
%foreach;source;
2526
<li>%apply;capitalize(source_type)[:] %source;.</li>
@@ -49,4 +50,5 @@
4950
%end;
5051
%end;
5152
</ul>
53+
</em>
5254
%end;

hd/etc/modules/unions.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Id: modules/unions.txt v7.1 04/03/2023 09:51:04 $ -->
1+
<!-- $Id: modules/unions.txt v7.1 17/11/2023 10:30:00 $ -->
22
%( op_m=1 simple: name %)
33
%( op_m=2 photos: simple with photo %)
44
%( op_m=3 evolved: spouse parents and children's spouse %)
@@ -630,17 +630,17 @@
630630
%apply;short_display_person_f("spouse")
631631
%if;are_divorced; [divorced]0 %divorce_date;%end;
632632
%if;are_separated; [separated]0%end;
633-
%if;has_children; %apply;havingchildren(nb_children)[:]
634-
<div style="font-size: 90%%">%nn;
635-
<ul>
636-
%foreach;child;
637-
%if;(child_cnt!=1), %end;
638-
%apply;li_SDC("child")
633+
%if;has_children;
634+
<table style="border-width: %border;"><tr>%nn;
635+
<td style="font-size: 80%%;padding-left: 18px">%nn;
636+
%apply;havingchildren(nb_children)[:]
637+
%foreach;child;
638+
%if;(child_cnt!=1), %end;
639639
%apply;short_display_person_f("child")
640-
</li>
641-
%end;
642-
</ul>
643-
</div>
640+
%if;(child_cnt=nb_children).%end;
641+
%end;
642+
</td>
643+
</tr></table>
644644
%end;
645645
%end;
646646
%end;

0 commit comments

Comments
 (0)