APIDs

23 views
Skip to first unread message

Lynn McLaughlin

unread,
Apr 23, 2020, 1:39:18 PM4/23/20
to t2...@googlegroups.com
I am experimenting with the APID and am uncertain as to what I'm doing wrong. I have a 1920 census record with this URL: https://search.ancestry.com/cgi-bin/sse.dll?indiv=1&dbid=6061&h=32975734&ssrc=pt&tid=78414364&pid=38380385591&usePUB=true.

On my citation screen, in the Reference field at the bottom, I put 6061::32975734.

In T2G, I reloaded my TMG project, then loaded the Ancestry(Private) template. That results in the Sources page having the first four options checked, the Ancestry APID Location set to Any Location, and the APID source elements set to number. I don't claim to understand the documentation on what to put for the latter, i.e. what I'd want to put other than number and why, but I figure it doesn't matter - I'll stick with the template value.

After generating the .ged file, I opened it in Notepad++ and searched for apid but it is not found. What am I doing wrong?

thanks, Lynn

John Cardinal

unread,
Apr 23, 2020, 2:19:11 PM4/23/20
to t2...@googlegroups.com

Lynn,

 

This help entry explains the Ancestry APID Source Element:

 

https://tmgtogedcom.com/en/sources.htm#ancestry-apid-element

 

However, if you put the APID in the Citation Reference field, the "Ancestry APID Source Element" value doesn't matter because the APID is not a source element value.

 

If you search the .GED file for "_APID" you should see the value. It will appear like this:

 

3 _APID 1,6061::32975734

 

If you don't see that record, it's likely the citation was not included:

 

  • Did you uncheck "Include Sources" in the Sources section?

 

  • Is the person who has the event included in the .GED file?

 

  • Is the event with the citation with the APID included in the .GED file?

 

John

 

Lynn McLaughlin

unread,
Apr 23, 2020, 3:31:48 PM4/23/20
to t2...@googlegroups.com
Thanks for the link -that is one of the pages I read, as well as https://www.tmgtogedcom.com/en/sources.htm and https://www.tmgtogedcom.com/en/apid.htm.

I found the problem though. I was filtering the project for my tests so they'll load to ancestry, and I didn't realize that the subject person would not be included - just their ancestors, in fact that seems odd to me. And the subject being a Junior, I didn't notice that I was really looking at the Senior on ancestry. Now it works like a champ.

I generally include the URL in the citation detail, so I might write a Perl script to extract the APID and modify the .ged file so I can use these everywhere. It looks like each _APID line need to be paired with a _CREF line without the 1, prefix, right?

thanks, Lynn

--
You received this message because you are subscribed to the Google Groups "TMG to GEDCOM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to t2g-l+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/t2g-l/00bc01d6199b%24af73de80%240e5b9b80%24%40gmail.com.

John Cardinal

unread,
Apr 23, 2020, 4:39:48 PM4/23/20
to t2...@googlegroups.com

Lynn,

 

For Ancestry, only the _APID record is necessary. I'm pretty sure Ancestry ignores the custom _CREF record. T2G writes the _CREF record in hopes that some GEDCOM reader will support it, possibly by a custom configuration where the user directs the program where to store the citation reference value.

 

A Perl script to add _APID will require you to run it every time you export. Also, some of my other programs will make use of APID values but right now they expect to find it in one of the places that T2G looks for it. For example, GedSite detects APIDs and adds a link to citations that contain one. (That may not be in the public version yet.) Second Site will get that feature next.

 

So, a better solution than a user-written script is for my programs, including T2G, to look a little harder for the APID values. It could parse APIDs from URLs that include "ancestry", "dbid=" and "h=". I'll probably add that to T2G, but I am not sure about its release date. I am busy with ORA right now.

 

John

Reply all
Reply to author
Forward
0 new messages