|
|
|
Grand Master
      
Group: Customers
Last Login: Today @ 8:14:43 AM
GenoPro Version: 2.0.1.6
Posts: 1,151,
Visits: 5,403
|
|
Hi y'all, been working on this for a while, but have been a bit sidetracked by an important change in my family tree, namely the arrival of our 2nd grandaughter.
Update: I've removed links from this post, see later posts for latest revision of template and preview. See Topic7075-60-1.aspx&start=47
Main changes from 2nd draft from Dan are:
1. Removal of tables and introduction of more CSS-based layout features. 2. Changes to the slideshow - removed drop-down list, added display of picture descriptions/comments 3. Made all comment items initially hidden with clickable headings to hide or show comments as required. This relies on 'switch content' code from www.dynamicdrive.com which must be downloaded separately (see readme.txt in skin). This was sugggested by another member of this forum but I can't find the post at present. 4. Reworked dynamic tree index based on work by Andrew Gregory http://www.scss.com.au/family/andrew/webdesign/explorertree/ to improve load times 5. addition of links to grandparents & siblings. 6. added pictures of spouse/partner. 7. pictures when clicked on appear in a separate auto-sized window (acknowledgements to http://www.therotunda.net/code/autosized-popup-window.html) 8.changed names of some images (e.g. GenoPro.Logo.gif) so that case matched that used in code. Some Web Servers are touchy about this!
I also started to move some of the phrases used into the Dictionary to make it easier to translate to other languages, but realised that the grammatical syntax may also need to be changed for other languages.
So a suggestion - perhaps a method that allowed conditional string formatting would help, e.g.
suppose Dictionary has entry
<FmtBirthInfo T="{0} [was born{1|2&z}][ in {2}]{1}[[ and {1&z}] was baptised{3}[ at {4}]]."/>
where phrase in square brackets [] are only generated if the (first) included field {} is not null. Nesting would be allowed and the encoding &z introduced to allow a field to be tested but not output. Fields can be joined with | (or) or + (and) for more complex conditions. Encoding &z would be assumed for such conditions.
then a new method 'FormatOptionalString' could be called as
LanguageDictionary.FormatOptionalString("FmtBirthInfo", i.name.first, i.birth.date.ToDateNarrative, i.birth.place, i.birth.baptism.date.ToDateNarrative, i.birth.baptism.place)
to generate birh information strings such as
Ron was born in London.
or Ron was born in London in 1951.
or Ron was born in 1951 and was baptised on 02-Feb-1951.
depending on which fields were null or not.
I believe this make it easier to generate reports in other languages from the same skin, with just changes to the dictionary. |
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
|
|
Forum Master
      
Group: Customers
Last Login: Today @ 8:17:58 PM
GenoPro Version: 2.0.1.6
Posts: 720,
Visits: 6,071
|
|
Ron, after having seen your new report style, tried to generate one with my data. Received following message:
"Error at line 80 (init.htm) : Object doesn't support this property or method: 'LanguageDictionary.Families' Microsoft VBScript runtime error 800A01B6" Any comments?
|
|
|
|
|
Legendary Master
       
Group: Administrators
Last Login: Today @ 8:36:29 AM
GenoPro Version: 2.4.0.3
Posts: 3,523,
Visits: 14,877
|
|
Thanks Ron for your work. I will do my best to integrate your work in Beta 14.
The methods LanguageDictionary.Families and LanguageDictionary.Individuals leaked in one of the beta. Since I am not sure about the exact name of those methods, I removed them. Just replace LanguageDictionary.Families by "Families". Those values have been hardcoded in one of the beta.
|
|
|
|
|
Forum Guru
      
Group: Customers
Last Login: Today @ 11:56:47 AM
GenoPro Version: 2.0.1.6
Posts: 140,
Visits: 1,956
|
|
Ron,
I am once again very impressed with your work ! Keep it up !
Also, congradulations on the new addition to your family. A couple of thoughts:
- I like what bracha did with the parents appearing in the same detail box. Perhaps some addition in that direction? - Is is possible (perhaps with input from Dan) to take a static "snapshot" of the actual graphical tree as it appears in GenoPro, having it centered on the person who is being detailed, and showing, in graphical mode on the web page, how this person appears within the tree? The snapshot will be a local one, comprising just one generation up and down.
Danny
Danny
|
|
|
|
|
Grand Master
      
Group: Customers
Last Login: Today @ 8:14:43 AM
GenoPro Version: 2.0.1.6
Posts: 1,151,
Visits: 5,403
|
|
Thanks for your responses.
In reply to rdn, Dan has already stated in Topic7062-60-1.aspx that images (pictures) of a GenoMap will be available in the report generator. Hopefully this will include the feature you suggest.
As regards parents, the links are there for easy access, as with grandparents and siblings. I've kept it to a narrative style rather than a table to maintain the same theme. Perhaps someone in the future will come up with a tabular report format.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
|
|
Forum Member
      
Group: Customers
Last Login: 9/5/2008 11:03:07 AM
GenoPro Version: 2.0.1.2
Posts: 44,
Visits: 211
|
|
Very nice report for Sample #3. Just a suggestion about the slideshow. Is it possible to somehow pause the pics because the slideshow can go too fast. Possibly a single click on the pic to pause and a double click to pause and zoom. Just an idea.
Great work on upgrading the report.
Strive Strive
And be Alive!
|
|
|
|
|
Grand Master
      
Group: Customers
Last Login: Today @ 8:14:43 AM
GenoPro Version: 2.0.1.6
Posts: 1,151,
Visits: 5,403
|
|
The stop button is actually a pause as the show resumes at the point it was stopped.
You can adjust the speed for your report by changing this line near the bottom of PV.jsg_idTimer = setTimeout("PV_Play('" + id + "');", 3000);
| The time is in millseconds, default 3 secs.
I have been made aware of a few bugs in the report and I am working on fixes.
Firstly, some pages with pictures may suffer from the IE 'guillotine' bug, whereby the last image is clipped at the bottom. This does not occur with Mozilla Firefox browser.
Secondly a picture sideshow may stop part way through or not display the picture descriptions. This seems to occur if only some of the pictures have descriptions.
Thirdly a gap is needed between the pictures and text when using Firefox.
I also hope to change the show/hide comments feature to use the same code as the expandable name index to remove the download restriction that applies to the dynamicdrive site.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
|
|
Forum Writer
      
Group: Customers
Last Login: 11/15/2008 12:46:46 PM
GenoPro Version: 2.0.1.5
Posts: 65,
Visits: 132
|
|
| There is another bug/suggestion that actually exists from the very first report. People that are divorced/separated are described as A's partner is B. Even if they are both alive it should be was instead of is.
|
|
|
| | |