FAMILY-HISTORIAN-USERS-L Archives

Archiver > FAMILY-HISTORIAN-USERS > 2012-05 > 1335966934


From: "Ed Thomas" <>
Subject: Re: [FHU] Plugin: List All Citations for a Source
Date: Wed, 2 May 2012 14:55:34 +0100
References: <261E5ADB0FBB41CE8E242E91A4E81B05@YOUR7F67FB56EB><002201cd2858$fe3239f0$fa96add0$@co.uk>
In-Reply-To: <002201cd2858$fe3239f0$fa96add0$@co.uk>


Thanks very much for that Mike. I'll have a play around with it and assess
the results. Early indications are that this is a useful addition.

Regards

Ed

-----Original Message-----
From:
[mailto:] On Behalf Of Beryl &
Mike Tate
Sent: 02 May 2012 12:45
To:
Subject: Re: [FHU] Plugin: List All Citations for a Source

Ed,

An additional description Column can be added that gives the detail you
request.
Edit the Plugin as follows:

In the function CheckForSource insert the line indicated below:
-- Parent Item (Fact)
ptrWork:MoveToParentItem(ptr)
table.insert(tblFact,ptrWork:Clone())
table.insert(tblItem,fhGetDisplayText(ptrWork))-- < Insert
-- Where within Source

In the Create Tables for Result Set section insert the line indicated below:

tblRecord = {}
tblFact = {}
tblItem = {}-- < Insert
tblEntryDate = {}

In the Output Tables built to Results Window section insert the line
indicated below and change heading of next line:

fhOutputResultSetColumn("Citation", "item",tblCitation , #tblRecord,
180, "align_left")
fhOutputResultSetColumn("Fact Text", "text", tblItem, #tblItem, 180,
"align_left")-- < Insert
fhOutputResultSetColumn("Fact Link", "item", tblFact, #tblFact, 180,
"align_left")-- < Change Heading

Regards, Mike Tate

-


This thread: