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


https://support.genopro.com/Topic26420.aspx
Print Topic | Close Window

By Lomax - Thursday, September 2, 2010
It would be great to be able to indicate when information on an individual/family/etc. was last updated.  Perhaps a little statement at the bottom of each html page like...

"This page was last updated on...."
By Rioxiann - Thursday, September 2, 2010
Totally agree with Lomax, it sure would be helpfull. Although as i got 11000 persons in my family i'm nog gonna check on just the ones i update. I just reload the whole of my genopages. So to me it would already be nice if the timestamp would be on the default page. Think that would be easier to realize for now, and maybe later they could see if it's possible to do this on all pages.

Bye Rioxiann
By Howard53 - Friday, September 3, 2010
Rioxiann (9/2/2010)
So to me it would already be nice if the timestamp would be on the default page.


Perhaps I have misunderstood your requirements, but there is a timestamp on the default page of the Narrative Report (at the bottom of the right-hand pane).
By genome - Wednesday, September 8, 2010
As I understand it, if you generate a report to the same location as a previous one, then GenoPro will only replace updated pages,leaving other pages unchanged. Note this will also leave pages related to deleted items in the report area (but unreferenced).

It is possible to report details of when each page was modified on the server using the 'last-modified' filed from the HTTP header sent by the server when a page is accessed . Of course this does not necessarily reflect on when the data in the .gno file was changed, other than it must have been earlier than the date the page changed.

I will add something in the next version of the Narrative Report. However that will not be ready for a 'few weeks' Hehe as it will have other goodies like Google Chrome support with improved SVG Pan/Zoom (á la Google Maps) and Google Maps API V3 

Here are the required changes for the date footnote if you want to try yourself:

Add a line after 947 in Utils.vbs
Sub WriteHtmlFramesetSafeguardK(s, k, o)
 Dim strHref, strName, strClass, strLink strHref = "toc_individuals.htm"
 If (Not Util.IsNothing(o)) Then
     Report.WriteLn StrDicExt("FmtHtmlLastModified", "", "<div Class='small aligncenter'><span>Page last modified </span><span  id='lastModified'></span></div>", "", "2.0.1.6 (>01.09.2010)")
 strClass = o.Class
a line in Dictionary.xml
<FmtHtmlHomeSkin ......................

   <FmtHtmlLastModified T="&lt;div Class='small aligncenter'&gt;&lt;span&gt;Page last modified &lt;/span&gt;&lt;span  id='lastModified'&gt;&lt;/span&gt;&lt;/div&gt;"/>
<!-- 0=name, 1=son/daughter, 2=father, 3=mother, 4=DoB, 5=PoB, 6=0 is female?, 7=possessive of 0, 8=possessive of 2, 9=possessive of 3
Test={0}=Mary|, {1}=daughter|, {2}=John|, {3}=Jane|, {4}=21 Oct 1946|, {5}= in Scotland|, {6}=Y| -->
<FmtMetaDescIndividual1 ................................
a line before line 41 in Code/script.js
mytop.location = 'default.htm?page=' + fileName;
}
showLastModified();
}
and finally add the showLastModified function at the end of Code/script.js
function showLastModified() {
    var out = document.getElementById('lastModified');
    if (out) {
        var d = new Date();
        if (d.toLocaleDateString) {
        out.innerHTML = d.toLocaleDateString(document.lastModified);
        }
        else {
        out.innerHTML = document.lastModified;
        }
    }
}

This will add a date to the foot of Individual & Family pages. To add it to every page move that initial Report.WriteLn staement up one line.

I would be really nice if GenoPro timestamped changes to the .gno file. Don't know if the collaboration module in Gamma does that?