@@ -312,31 +312,36 @@ def t2(f)
312
312
end
313
313
314
314
def report_person_print_cv ( ged , indi )
315
- es = indi . get_details ( " EVEN")
315
+ es = indi . get_details_for_tags ( [ "CHR" , "BLES" , "CONF" , " EVEN", "EDUC" , "OCCU" ] )
316
316
if es . length > 0
317
- $params[ :ofile ] . insertSubSubSection ( "Lebenslauf" )
318
- $params[ :ofile ] . print "\\ ThinHRule \\ vspace{2mm}\n "
319
-
320
- def t1 ( a , b , c , d = nil , e = nil , f = nil , g = nil , src_ids = [ ] )
321
- s = [ ]
322
- s += [ "\\ mbox{" , b , h ( c ) , "}" ] if c . to_s != ""
323
- s += [ "\\ mbox{" , d , h ( e ) , "}" ] if e . to_s != ""
324
- s += [ "\\ mbox{" , f , h ( g ) , "}" ] if g . to_s != ""
325
-
326
- end
317
+ $params[ :ofile ] . insertSubSubSection ( "Werdegang" )
318
+ $params[ :ofile ] . print "\\ ThinHRule \\ vspace{2mm}\n \n "
327
319
328
320
$params[ :ofile ] . print "\\ begin{tabular}{p{6em} p{11em} p{\\ textwidth-21em}}\n "
329
321
330
- es . each { |e |
322
+ es . each_with_index { |e , i |
331
323
date , type , text = "" , "" , e [ :value ] . to_s
324
+
325
+ if i >0 && i %3 == 0
326
+ $params[ :ofile ] . print "\\ end{tabular}\n \n "
327
+ $params[ :ofile ] . print "\\ begin{tabular}{p{6em} p{11em} p{\\ textwidth-21em}}\n "
328
+ end
329
+
332
330
e [ :children ] . each { |c |
333
331
case c [ :field ]
334
- when "EVEN_DATE " then date = c [ :value ]
335
- when "EVEN_TYPE " then type = c [ :value ]
336
- when "EVEN_PLAC " then text += " in #{ c [ :value ] } "
332
+ when "#{ e [ :field ] } _DATE " then date = c [ :value ]
333
+ when "#{ e [ :field ] } _TYPE " then type = c [ :value ]
334
+ when "#{ e [ :field ] } _PLAC " then text += " in #{ c [ :value ] } "
337
335
end
338
336
}
339
337
338
+ if [ "CHR" , "BLES" , "CONF" ] . include? e [ :field ]
339
+ text = type + " " + text if type != ""
340
+ type = "Taufe" if e [ :field ] == "CHR"
341
+ type = "Segnung" if e [ :field ] == "BLES"
342
+ type = "Konfirmation" if e [ :field ] == "CONF"
343
+ end
344
+
340
345
$params[ :ofile ] . print "#{ h ( date ) } & #{ h ( type ) } & #{ h ( text ) } \\ \\ \n "
341
346
}
342
347
0 commit comments