When you are editing a plugin script in Lua, the
Help button in the toolbar at the top offers many helpful resources including the
Family Historian API. However, maybe you are confusing Plugin API Functions, with Expressions used elsewhere that comprise FH Data References and FH Functions. See FHUG Knowledge Base
Understanding Expressions.
The data reference
%INDI.BURI.SOUR>% that you quoted, ends with a
> which is a pointer to another record.
In this case, that other record is the SOUR (i.e. Source) record and not the Citation which is local to the BIRT fact.
So you need
%INDI.BURI.SOUR.DATA.TEXT% for the citation Text from Source.
Similarly,
%INDI.BURI.SOUR.NOTE2% for the citation Note.
Also,
%INDI.BURI.SOUR.OBJE>FILE.TITL% for the citation Media Title, which points to the Media
OBJE> record.
It gets more complicated for Citation-specific templated fields where the data reference depends on the type and name.
To discover such data references, open an appropriate
Query, which for this case,
All Individuals is good.
Then on the
Columns tab, use the
Fields pane with the box below set to
Show Both in Box.
Also, see FHUG Knowledge Base
Understanding Data References.
It is far from easy to list all citations in one Query because some are attached to Individual or Family records and others attached to Names and Facts. So you need at least three different types of Query.
Have you tried the
Where Used Record Links plugin that lists
all Citations for any selected Source records?