* Gramps and Gedcom Export Plugin
Gramps and Gedcom Export Plugin
Being a Lumper, is there a way to get the Gedcom Export Plugin to export a citation footnote to gramps citation Description/Place field. If a citation is based on a template setup for lumping, the gramps citation description field is left blank. The citation footnotes has the information needed for this field.
- tatewise
- Megastar
- Posts: 27593
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Gramps and Gedcom Export Plugin
Sorry, but that is not currently possible.
The only mechanism that can render Footnote text is embedded in the Source record, so Citation-specific fields cannot be involved.
Improvements in this area are currently being discussed in the New Wish List Request forum.
See User display of Footnote, Bibliography & Short Footnote text (22454).
The only mechanism that can render Footnote text is embedded in the Source record, so Citation-specific fields cannot be involved.
Improvements in this area are currently being discussed in the New Wish List Request forum.
See User display of Footnote, Bibliography & Short Footnote text (22454).
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Re: Gramps and Gedcom Export Plugin
The plugin Citations to Source is able to get this information so it should be able to copy the footnote to gramps description field for citations using the export gedcom plugin also.
- tatewise
- Megastar
- Posts: 27593
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Gramps and Gedcom Export Plugin
I'm not sure which plugin you are referring to so can you provide more explicit details please.
The nearest I can find is List All Citations for a Selected Source from the Plugin Store but that does NOT list Footnote or Bibliography details.
Perhaps you are thinking of the View > Citations to Source Record... command which is NOT a plugin.
It is similar to the menu option discussed in citations to sources query (22271).
I reiterate, plugins cannot produce Footnotes that involve Citation-specific metafields.
The nearest I can find is List All Citations for a Selected Source from the Plugin Store but that does NOT list Footnote or Bibliography details.
Perhaps you are thinking of the View > Citations to Source Record... command which is NOT a plugin.
It is similar to the menu option discussed in citations to sources query (22271).
I reiterate, plugins cannot produce Footnotes that involve Citation-specific metafields.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
- Mark1834
- Megastar
- Posts: 2275
- Joined: 27 Oct 2017 19:33
- Family Historian: V7
- Location: South Cheshire, UK
Re: Gramps and Gedcom Export Plugin
I thought I understood this, but I'm confused now

I think what you actually mean is that it is not feasible to write a plugin for general use that copes with all possible formatting scenarios (and I agree fully with that), but a user with plugin authoring skills who is familiar with their own data could produce such an output, but it would need specific coding.
Is that a fair distinction, or have I missed a critical step...?
Mark Draper
- tatewise
- Megastar
- Posts: 27593
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Gramps and Gedcom Export Plugin
Yes, I suppose if you were prepared to write a Footnote Format syntax analysis algorithm then a plugin could possibly produce the Footnote text. But this thread is in the context of my Export Gedcom File plugin for general use so for me it is not feasible.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
- Mark1834
- Megastar
- Posts: 2275
- Joined: 27 Oct 2017 19:33
- Family Historian: V7
- Location: South Cheshire, UK
Re: Gramps and Gedcom Export Plugin
Thanks, clear.
I think there is a way to generalise it for lumped sources as well as split. The only access plugins have to the formatting templates is via the fhSrcEnableAutoTitle(...) function, so at present you create temporary clones of the Source and Source Template records, and within the clones, copy the Footnote, Short Footnote and Bibliography definitions to the Title, update, and copy out as the formatted Title, Footnote, Short Footnote and Bibliography.
If in addition you convert all the clone template fields to source level fields by deleting the %_SRCT>FDEF.CITN% data references, and copy citation data to the new corresponding source level fields, I think it should then work for all meta-fields, both source level and citation level.
It will increase running time, as each cited fact will need to be processed individually (along with all the duplicated citations inherent to the lumper method in FH), but does that matter for a plugin that is only run periodically as long as any resource implications for large projects can be managed?
Worth a try to see how it works in practice?
I think there is a way to generalise it for lumped sources as well as split. The only access plugins have to the formatting templates is via the fhSrcEnableAutoTitle(...) function, so at present you create temporary clones of the Source and Source Template records, and within the clones, copy the Footnote, Short Footnote and Bibliography definitions to the Title, update, and copy out as the formatted Title, Footnote, Short Footnote and Bibliography.
If in addition you convert all the clone template fields to source level fields by deleting the %_SRCT>FDEF.CITN% data references, and copy citation data to the new corresponding source level fields, I think it should then work for all meta-fields, both source level and citation level.
It will increase running time, as each cited fact will need to be processed individually (along with all the duplicated citations inherent to the lumper method in FH), but does that matter for a plugin that is only run periodically as long as any resource implications for large projects can be managed?
Worth a try to see how it works in practice?
Mark Draper
- tatewise
- Megastar
- Posts: 27593
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Gramps and Gedcom Export Plugin
Very inventive! I'll give it some thought.
The complication is that currently the Export Gedcom File plugin only analyses Source records.
This change would require it to analyse every Citation and check for Citation-specific Metafields before invoking the script you suggested.
The complication is that currently the Export Gedcom File plugin only analyses Source records.
This change would require it to analyse every Citation and check for Citation-specific Metafields before invoking the script you suggested.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry