|
|
|
|
Customers GenoPro version: 2.5.4.1
Last Login: Friday, September 23, 2022
Posts: 39,
Visits: 1,789
|
I'd like to announce my project of new skin for report generator. It is based on current one, but has lot of modifications and changes.
Primary goals: -Remove all frames -Make it more css dependent, so it will be more customizable for any user -Speed up opening pages, by loading content on left sidebar by using AJAX
You can check now, how it looks on http://familytrees.genopro.com/Quayle/dev Config.xml is slightly modified, but not Dictionary.xml, so all the translations will be valid for it.
Any comments are welcome. 
Edit: Changed dev-site address.
Tags:
Edited: Thursday, October 7, 2010 by
Quayle
|
|
|
|
|
Customers GenoPro version: 2.5.4.1
Last Login: Friday, September 23, 2022
Posts: 39,
Visits: 1,789
|
Wow! Lot of writing was here lately, so I think I should add some news about my work, too. 
I introduced additional abstract layer for skins. It will let everyone to use the same skin on different report generators. It is true that currently there is only one (WRG), but this solution will also serve for Linux users when another will be ready.
Something more:
General look on skin: -scripts ---win <- Here are scripts to use by Windows Report Generator (WRG) ---linux <- Here will be scripts to use Linux Report Generator (LRG) -styles -templates
Reading/Parsing order used for now (can be changed in config.xml): 1)styles/style.css 2)scripts/jquery.js 3)(additional scripts for skin)
4)scripts/win/generate.html or scripts/linux/generate.html It is used to create lib.js = the abstract layer, about which I told you above. 5)generate.html (in main directory) It is used to link lib.js with templates. (JS doesn't have any "include" statement, so that's why I do this, this way.) After that: linked templates are in the main directory. 6)All files generated in 5) and listed in config.xml They are in normal use of Report Generator.
Live example is in attachment. No real html page is generated (except empty index.html).
I hope it's understandable, what I wrote here... :/ Sorry for any problems with reading it...
"If I have time, I am willing to help with development." @Edanite Any help is welcome.
Mindless Skin JS.zip
(34 views,
56.87 KB)
Edited: Saturday, September 18, 2010 by
Quayle
|
|
|
|
|
Customers
Last Login: Friday, June 15, 2018
Posts: 28,
Visits: 231
|
Quayle (9/18/2010)
Wow! Lot of writing was here lately, so I think I should add some news about my work, too.  I introduced additional abstract layer for skins. It will let everyone to use the same skin on different report generators. It is true that currently there is only one (WRG), but this solution will also serve for Linux users when another will be ready.
JavaScript is fairly cross platform. What exactly are you expecting to be different between Windows and Linux?
Something more:
General look on skin: -scripts ---win <- Here are scripts to use by Windows Report Generator (WRG) ---linux <- Here will be scripts to use Linux Report Generator (LRG) -styles -templates
Reading/Parsing order used for now (can be changed in config.xml): 1)styles/style.css 2)scripts/jquery.js I don't think jQuery is really necessary for the report generation phase since its forte is manipulating the DOM. The reports are not generated by DOM serialization (although we could theoretically do that), so I don't think we need it.
3)(additional scripts for skin)
4)scripts/win/generate.html or scripts/linux/generate.html It is used to create lib.js = the abstract layer, about which I told you above. 5)generate.html (in main directory) It is used to link lib.js with templates. (JS doesn't have any "include" statement, so that's why I do this, this way.) After that: linked templates are in the main directory.
JavaScript may not have an include statement, but the GenoPro report generator does. <%[@ IncludeFile "path/to/file.js" ]%> I can't find that this is documented anywhere, but it works.
Also, you've used new ActiveXObject in generate.htm, that almost certainly won't work outside of JScript (Microsoft's JS engine).6)All files generated in 5) and listed in config.xml They are in normal use of Report Generator. Live example is in attachment. No real html page is generated (except empty index.html). I hope it's understandable, what I wrote here... :/ Sorry for any problems with reading it... " If I have time, I am willing to help with development."@Edanite Any help is welcome.  Are you going to create the repo, or shall I?
Did you get a chance to take a look at my mockup? Do you have any comments on it?
|
|
|
|
|
Customers GenoPro version: 2.5.4.1
Last Login: Friday, September 23, 2022
Posts: 39,
Visits: 1,789
|
edanite (9/18/2010)
JavaScript is fairly cross platform. What exactly are you expecting to be different between Windows and Linux?
Things like IncludeFile, but if you say:
edanite (9/18/2010)
JavaScript may not have an include statement, but the GenoPro report generator does. <%[@ IncludeFile "path/to/file.js" ]%> I can't find that this is documented anywhere, but it works.
....I didn't know, that it's a GenoPro statement. Are you sure it it will work on Linux on Wine?
edanite (9/18/2010)
Also, you've used new ActiveXObject in generate.htm, that almost certainly won't work outside of JScript (Microsoft's JS engine).
And that's the one of things which could be different on different OS'es. 
edanite (9/18/2010)
Are you going to create the repo, or shall I? Did you get a chance to take a look at my mockup? Do you have any comments on it?
Please, create the repository. 
Yeah, I looked on, but completely forgot about commenting it. Sorry...  I think gender images and similar, things should be set in css too. E.g. In my report I've made them as a background image and set for them padding. Rest needs no commentary. Is good. 
Ron (9/18/2010) I see a potential use of an abstraction layer, not in platform variations, e.g. Windows vs. Linux, but in genealogy database variations. This approach could potentially permit 'hijacking' the GenoPro Report Generator to generate similar reports from databases other than GenoPro. The problem will be in defining the abstraction layer data model and interfaces. As Gedcom is the lowest common denominator it would be a good starting point, with perhaps 'extensions' for the various differences between packages, e.g. genograms and relationships, social entities in GenoPro. Oooo... Same look, no matter what program was used before? It would be awesome! 
Thanks for explaining it, Ron.
Edited: Sunday, September 19, 2010 by
Quayle
|
|
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: Sunday, November 1, 2026
Posts: 3,504,
Visits: 27,520
|
I see a potential use of an abstraction layer, not in platform variations, e.g. Windows vs. Linux, but in genealogy database variations. This approach could potentially permit 'hijacking' the GenoPro Report Generator to generate similar reports from databases other than GenoPro. The problem will be in defining the abstraction layer data model and interfaces. As Gedcom is the lowest common denominator it would be a good starting point, with perhaps 'extensions' for the various differences between packages, e.g. genograms and relationships, social entities in GenoPro.
A few comments on how GenoPro Report Generator works: Files in the skin folder that are not under the Code folder or referenced in a Template in Config.xml or as an INCLUDEFILE are copied to the output folder. So for jquery, css etc just place in an appropriate folder in the skin. I have taken Quayle's skin and tweaked it a bit with these points in mind and using INCLUDEFILE (see attachment), although I think a better approach maybe to provide the abstraction library (lib.js) as a separate 'plugin' to the report rather than trying to generate it inline. I have added a few lines to index.html to produce some output, a page with a simple sorted list of names. edanite Also, you've used new ActiveXObject in generate.htm, that almost certainly won't work outside of JScript (Microsoft's JS engine).
It is being used in the Windows abstraction
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Mindless Skin JS.zip
(35 views,
58.17 KB)
|
|
|
|
|
Important Contributors Customers GenoPro version: 3.1.0.1
Last Login: Saturday, December 28, 2024
Posts: 193,
Visits: 4,270
|
Ron (9/18/2010) I see a potential use of an abstraction layer, not in platform variations, e.g. Windows vs. Linux, but in genealogy database variations. This approach could potentially permit 'hijacking' the GenoPro Report Generator to generate similar reports from databases other than GenoPro. The problem will be in defining the abstraction layer data model and interfaces. As Gedcom is the lowest common denominator it would be a good starting point, with perhaps 'extensions' for the various differences between packages, e.g. genograms and relationships, social entities in GenoPro.
Well, my opinion is, that this data model layer should be maintained by the GEDCOM standard committee - define the core dataset and add the other genogram package related extensions by collaborating with the developers of the other packages  . Later some 3rd party datasets can be incorporated into teh next core standard dataset. However, currently I do not see, whether the GEDCOM team is going into this direction...
Feri
Edited: Sunday, September 19, 2010 by
fbukolyi
|