| 1 |
/* |
| 2 |
* @progname extract_gedcom.ll |
| 3 |
* @version 1.2 of 1995-08-27 |
| 4 |
* @author Scott McGee ([email protected]) |
| 5 |
* @category |
| 6 |
* @output GEDCOM |
| 7 |
* @description |
| 8 |
|
| 9 |
This program allows the user to select a group of individuals from a database |
| 10 |
and generate a GEDCOM file for them. It allows selection of multiple people |
| 11 |
by following family links, and then allows addition of all ancestors of the |
| 12 |
selected set or of the first individual, and then all descendants of the |
| 13 |
selected set or of the orignal individual. It also allows addition of all |
| 14 |
persons with a specified number of relations to any individual in any of the |
| 15 |
groups added above. |
| 16 |
|
| 17 |
For each person asked about, you will be given some information on them to |
| 18 |
aid in deciding if they are the one you want or not. This is similar to a |
| 19 |
person display when browsing with LifeLines. |
| 20 |
|
| 21 |
This program will also output all source records referred to in any person |
| 22 |
record in the gedcom output. |
| 23 |
|
| 24 |
Thanks to Tom Wetmore for many small routines that have been addapted for |
| 25 |
use in this program as well as LifeLines itself. |
| 26 |
|
| 27 |
Scott McGee |
| 28 |
*/ |
| 29 |
|
| 30 |
include("extract_set.li") |
| 31 |
include("tools.li") |
| 32 |
include("outsources.li") |
| 33 |
|
| 34 |
global(first) /* first person shouldn't be asked about */ |
| 35 |
global(first_indi) /* starting person */ |
| 36 |
|
| 37 |
proc main () { |
| 38 |
getindi(indi) |
| 39 |
if (indi) { |
| 40 |
set(first_indi, indi) |
| 41 |
set(out, extract_set(indi)) |
| 42 |
call extract_gedcom(indi, out) |
| 43 |
} |
| 44 |
else { |
| 45 |
print("No one identified -- terminating\n") |
| 46 |
} |
| 47 |
} |
| 48 |
|
| 49 |
proc extract_gedcom(indi, out) { |
| 50 |
print("Generating GEDCOM file for ", d(lengthset(out)), " individuals.\n") |
| 51 |
gengedcom(out) |
| 52 |
call outsources(out) |
| 53 |
} |