GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




New report skin without frames

Click to view RSS...
Author no frames, more css dependent and using AJAX
Posted Saturday, June 26, 2010 - Post #26091
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

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. Smile

Edit:
Changed dev-site address.


Tags:

Edited: Thursday, October 7, 2010 by Quayle
Replies
Posted Saturday, September 18, 2010 - Post #26511
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

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. Wink

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. Smile


Mindless Skin JS.zip (34 views, 56.87 KB)

Edited: Saturday, September 18, 2010 by Quayle
Posted Saturday, September 18, 2010 - Post #26512
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

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. Wink

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. Smile

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?
Posted Sunday, September 19, 2010 - Post #26517
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

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. Smile

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. Smile

Yeah, I looked on, but completely forgot about commenting it. Sorry... Sad
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. Smile


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! Smile

Thanks for explaining it, Ron. Smile


Edited: Sunday, September 19, 2010 by Quayle
Posted Saturday, September 18, 2010 - Post #26514
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

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 Smile


'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)
Posted Sunday, September 19, 2010 - Post #26515
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

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 packagesSmile. 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

Threaded View

Expand / Collapse
Threaded View
Forum Post New report skin without frames By Quayle ( Saturday, June 26, 2010 )
Forum Post I'm afraid I haven't done any "real work" on it recently. I have done... By edanite ( Tuesday, November 8, 2011 )
Forum Post [quote]I realized that the current SVG code is written in VBScript,... By powery ( Monday, November 14, 2011 )
Forum Post Is this project active? By powery ( Tuesday, November 8, 2011 )
Forum Post The way I read the docs indicate that <thing>.load() is... By edanite ( Sunday, October 10, 2010 )
Forum Post I've discovered two Caveats regarding the new report. 1) creating... By edanite ( Saturday, October 9, 2010 )
Forum Post 2) According to:... By Quayle ( Sunday, October 10, 2010 )
Forum Post If anybody wants to check any progress, here is a new skin pack.... By Quayle ( Saturday, October 9, 2010 )
Forum Post The current abstraction layer just copies GenoPro's structure. Would... By edanite ( Wednesday, September 22, 2010 )
Forum Post Hurray! Finally, I managed to upload files on git . :)... By Quayle ( Saturday, September 25, 2010 )
Forum Post Repo created. http://github.com/gmacon/narrativeredux If you... By edanite ( Sunday, September 19, 2010 )
Forum Post Wow! Lot of writing was here lately, so I think I should add some news... By Quayle ( Saturday, September 18, 2010 )
Forum Post [quote][b]Quayle (9/18/2010)[/b][hr]Wow! Lot of writing was here... By edanite ( Saturday, September 18, 2010 )
Forum Post [quote][b]edanite (9/18/2010)[/b][hr] JavaScript is fairly cross... By Quayle ( Sunday, September 19, 2010 )
Forum Post I see a potential use of an abstraction layer, not in platform... By genome ( Saturday, September 18, 2010 )
Forum Post [quote][b]Ron (9/18/2010)[/b][hr]I see a potential use of an... By fbukolyi ( Sunday, September 19, 2010 )
Forum Post Here's a mockup I did a few months back with my vision; it's based on... By edanite ( Friday, September 17, 2010 )
Forum Post I wasn't anticipating any licensing problems, but it's nice to be... By edanite ( Thursday, September 16, 2010 )
Forum Post Ron, can you separate the bits of code you wrote from the bits of code... By edanite ( Wednesday, September 15, 2010 )
Forum Post [quote]Ron, can you separate the bits of code you wrote from the bits... By jcmorin ( Thursday, September 16, 2010 )
Forum Post I also hope that IE6 will be dead and gone by the time we finish, but... By edanite ( Tuesday, September 14, 2010 )
Forum Post Some browser stay there for a while because most people don't see any... By jcmorin ( Wednesday, September 15, 2010 )
Forum Post I have been thinking for some time that I would create a new skin as... By edanite ( Tuesday, September 14, 2010 )
Forum Post [quote][b]edanite (9/14/2010)[/b]I have a few questions/comments.... By genome ( Wednesday, September 15, 2010 )
Forum Post I think SVG is still the way to go, by the time you complete a nice... By jcmorin ( Tuesday, September 14, 2010 )
Forum Post Great news, nice to have another developer aboard and some fresh... By genome ( Monday, June 28, 2010 )
Forum Post Thank you, nice to hear that I have support from older developer. :) I... By Quayle ( Thursday, July 1, 2010 )
Forum Post [quote][b]Quayle (7/1/2010)[/b][hr]in the next week or two, first... By genome ( Sunday, September 5, 2010 )
Forum Post I've changed my mind with some things and current state for release... By Quayle ( Saturday, September 11, 2010 )


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse