XML Toolkit for GenoPro
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
GenoPro Support Forum
Home        Members    Who's On
Welcome Guest ( Login | Register )
        


12»»

XML Toolkit for GenoPro Expand / Collapse
Author
Message
Post #16307 Posted 2/10/2007 6:03:41 PM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 12:17:37 PM
GenoPro Version: 2.0.1.6
Posts: 1,102, Visits: 5,106
At last I have a beta(gamma?) version of the Toolkit running as a Javascript skin under the Report Generator.

It will add marriage/divorce dates to the family label, create multi-line custom tags, specifically aimed at use as the top display label for individuals.  The templates for these tags can be modified via Dictionary.xml. Note that although multi-line custom tags can be displayed as the top label for an individual, such tags cannot be modified within GenoPro.There is an option to mark as dead anyone over a specified age. Also a number of options aimed at recovering Gedcom data languishing in Custom Tags after a Gedcom import.

See the front of file toolkit.js to see documentation on options or see the options selection form below.

To install unpack the attached zip into a folder named 'XML Toolkit' under your GenoPro 'skin' folder. It should then appear in the list of skins in the GenoPro Report Generator.

I have done limited testing but it has yet to be exposed 'in the wild' so use with caution. It produces a GenoPro compatible XML file with the changes in the specified Report folder. I recommend comparing the before an after XML files to check changes. First export your existing .gno file to an XML to serve as the reference. Run this utility and open the XML file produced with GenoPro. Check that it loads with no errors and visually verify the changes using GenoPro. Then export this new file as another new XML file (this will provide your data in the same format as your reference XML file). Then compare the reference XML file with this latter file with a utility such as WinMerge or WinDiff. (Google will find downloads for these if reqd). If you are happy with the changes you can then save the new XML file as a .gno file. Play safe a keep a backup of the original.

Update: 2007/02/11 revised attachment (b2).
Update: 2007/02/12 another revision to attachment (b3).
Update: 2007/02/12 marriage date option added (b4).
Update: 2007/03/10 marriage date option corrected (b5).
Update: 2007/03/11 date month lower case correction (b6).
Update: 2007/03/12 amendment to text on form (b7)


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


  Post Attachments 
Toolkit_2.0.0.b7.zip (70 views, 18.36 KB)
Post #16310 Posted 2/10/2007 10:34:03 PM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Yesterday @ 5:21:06 PM
GenoPro Version: 2.0.1.4
Posts: 433, Visits: 3,382
Hi Ron, great to see tjhis new update, unfortunately I found a problem as follows :-

Generating report to 'C:\Family Trees 2007\2007 New Families\xml test\'
Cloning document xml test tool...
Opening configuration file Config.xml for skin '\XML Toolkit\*'...
Loading dictionary.xml...
[0.00] Processing template 'Toolkit.js'...
Processing 9 Families.....
Processed 9 families
adding 'DisplayText' tags (labels) to 7 of these
Processing 48 individuals...
Error at line 269 (Toolkit.js) : Type incompatible
Erreur d'exécution Microsoft JScript 800A000D

The offending line is here :-

strValue=Dic.Peek(strTag);

Post #16317 Posted 2/11/2007 5:48:33 PM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 12:17:37 PM
GenoPro Version: 2.0.1.6
Posts: 1,102, Visits: 5,106
Sorry Iain, I think I changed the code in this area and forgot to retest it. I have attached a revision to my original post below (or above, depending on your forum control panel settings!)

I have taken the opportunity to revise the code to add birth comments detailing the particular religious event if it does not match those catered for by GenoPro. e.g. Blessing, First Communion, Bar-Mitzvah etc..


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #16331 Posted 2/12/2007 7:17:10 AM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Yesterday @ 5:21:06 PM
GenoPro Version: 2.0.1.4
Posts: 433, Visits: 3,382
Hi Ron,

I downloaded your new version of the js and replaced the one on the XMLtools skin with it but now get this error

Generating report to 'C:\Family Trees 2007\2007 New Families\xml test\'
Cloning document xml test tool...
Opening configuration file Config.xml for skin '\XML Toolkit\*'...
Loading dictionary.xml...
[0.00] Processing template 'Toolkit.js'...
Processing 9 Families.....
Processed 9 families
adding 'DisplayText' tags (labels) to 7 of these
Processing 48 individuals...
Error at line 359 (Toolkit.js) : 'length' a la valeur Null ou n'est pas un objet.
Erreur d'exécution Microsoft JScript 800A138F

The line in question is the following

if (strDate.length>3) strDate=strDate.substr(strDate.length-4);

I tried it again without trying to use the census or residence and occupations and it seems to have worked for the marriage lines and DOB s etc.

Post #16332 Posted 2/12/2007 11:45:11 AM
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: Today @ 12:51:56 PM
GenoPro Version: 2.0.1.6
Posts: 808, Visits: 7,069
What am I doing wrong? I downloaded Toolkit.js and placed it in a folder Program Files\GenoPro2007\Skins\XML Toolkit but my list of report options is unchanged, ie

Customized English Narrative Report\* (English Narrative Report)
Display All Comments
English Narrative Report
Export to Gedcom
Export to SQL
Save All GenoMaps to Disk

I am guessing the XML folder needs some of the standard files, but will hope for guidance
Post #16334 Posted 2/12/2007 12:08:25 PM


Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Today @ 12:17:37 PM
GenoPro Version: 2.0.1.6
Posts: 1,102, Visits: 5,106
appleshaw (2/12/2007)
What am I doing wrong? I downloaded Toolkit.js and placed it in a folder Program Files\GenoPro2007\Skins\XML Toolkit but my list of report options is unchanged

Toolkit.zip contains three files - Config.xml, Dictionary.xml and Toolkit.js. Unzip toolkit.zip and place all three files in the folder 'XML Toolkit' in your skins folder. The Options tab of GenoPro's Generate Report shows where GenoPro looks for skin folders.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Post #16336 Posted 2/12/2007 12:27:01 PM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is a contributor to FamilyTrees.GenoPro.com This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Yesterday @ 5:21:06 PM
GenoPro Version: 2.0.1.4
Posts: 433, Visits: 3,382
I noticed that the zip 2 only had the js file in it which I had added to the skin folder.

Now I have downloaded the zip 3 with all three files in it and it worked perfectly. Thanks

One point, the old system allowed to show the choice of full dates above the marriage line instead of just the year.

Would it be possible to add this option ?

Post #16337 Posted 2/12/2007 12:28:23 PM