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 Wednesday, September 15, 2010 - Post #26497
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Customers

Last Login: Friday, June 15, 2018
Posts: 28, Visits: 231
Ron, can you separate the bits of code you wrote from the bits of code Dan wrote? If that's not possible, Dan, would you be willing to license your portions of the templates to us?

In re. choice of license: My first thought when "planning" my project was to use the FreeBSD (aka 2-clause BSD) license or the 3-clause BSD license. I have no particular objection to using GNU GPL so long as we make it absolutely clear that the output from the Report Generator is not considered a Derivative Work of the skin even though it may contain code from the skin. (I didn't want people to be required to post the source code for the skin along with their reports; I thought that would be a little hokey. "This report was generated using a modified version of Narrative Report Redux. Download the source for Narrative Report Redux: nrr-1.0-edanite-12.zip. This report is covered by the GNU General Public License, see COPYING for details.")

In re. SVG: I think there are SVG libraries for jQuery, but I have never used them. I believe that the SVG DOM object has pan and zoom parameters that could be used.
Posted Thursday, September 16, 2010 - Post #26501
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master

Gamma
Moderators
Administrators
FamilyTrees.GenoPro.com
Customers
GenoPro version: 3.1.0.0

Last Login: Wednesday, October 7, 2020
Posts: 952, Visits: 10,075
Ron, can you separate the bits of code you wrote from the bits of code Dan wrote? If that's not possible, Dan, would you be willing to license your portions of the templates to us?


Ron wrote the entire report, if some modules have been provided by other people they have been given freely. 

While Ron is the author we have an arrangement with him that GenoPro may distribute the skins without ANY RESTRICTION, anyone is welcome to copy, modify, share and publish the skin with the modifications they want.

We are not in the business of licensing stuff, we are for openness and creativity. You will never have any issue with the report skins if you start an Open Source project no matter the license type you choose.  

FreeBSD and GNU GPL are just fine with us.  I would recommend having open projects and not "block" others whishing to use similar ideas. 

Tags:

Edited: Thursday, September 16, 2010 by GenoProSupport
Posted Thursday, September 16, 2010 - Post #26502
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Customers

Last Login: Friday, June 15, 2018
Posts: 28, Visits: 231
I wasn't anticipating any licensing problems, but it's nice to be sure. Thanks.
Posted Friday, September 17, 2010 - Post #26508
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Customers

Last Login: Friday, June 15, 2018
Posts: 28, Visits: 231
Here's a mockup I did a few months back with my vision; it's based on the prose generated by ENR. The idea was to have the style in a separate file so someone who wanted to do visual design need edit only the style.css file. At the moment, the segregation is not perfect; there's some style associated with collapsing notes and indices in that file too.

html5genopro.zip (26 views, 56.26 KB)
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 (10 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 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: Yesterday @ 8:11 PM
Posts: 3,421, Visits: 26,431
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 (13 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
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 Sunday, September 19, 2010 - Post #26520
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Customers

Last Login: Friday, June 15, 2018
Posts: 28, Visits: 231
Repo created.

http://github.com/gmacon/narrativeredux

If you create an account at GitHub, you can fork the repo and push your changes to your fork, and all I have to do is pull your changes to merge them with the master repo.

Git for windows is available as mSysGit: http://code.google.com/p/msysgit/ I just got the Git- package.
TortoiseGit is available here: http://code.google.com/p/tortoisegit/
PuTTY (for SSH) is available here: http://www.chiark.greenend.org.uk/~sgtatham/putty/


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse
Active: 2 - 1 guest, 0 members, 0 anonymous.
Refresh
No members currently viewing this topic!