Menu

#1 Support 1.5.0 Gramps XML version

open
nobody
None
5
2012-04-15
2012-04-15
J�r�me
No

Since Gramps 3.4.x, the Gramps XML version is 1.5.0.
http://www.gramps-project.org/wiki/index.php?title=GRAMPS_XML

JoomlaGen supports Gramps XML 1.3.0.

I added a quick listing of existing paths used by Gramps XML 1.5.0 (xpaths_3_4_x.txt).

Maybe this could help to implement a Gramps XML 1.5.0 support into JoomlaGen?

Discussion

  • J�r�me

    J�r�me - 2012-04-15

    XML paths for Gramps XML 1.5.0 (Gramps 3.4)

     
  • J�r�me

    J�r�me - 2012-04-16

    I am not certain, at a glance, need to modify some modules for matching new name object (1.4.0 and later):

    * person/name/surname
    person/name/surname/@primary
    person/name/surname/surname/@derivation
    person/name/surname/surname/@connector

    mod_gramps/events.php: $fullname = $event['FirstName'] . $sp . $event['Patronymic'] . $sp . $event['PreFix'] . $sp . $event['LastName'];
    mod_gramps/statistics.php:$query = 'SELECT COUNT(DISTINCT LastName)
    mod_gramps/statistics.php:$query = 'SELECT `LastName`, COUNT(`LastName`) AS `Number`
    mod_gramps/statistics.php: WHERE `LastName`<>""
    mod_gramps/statistics.php: GROUP BY `LastName`
    mod_gramps/statistics.php: $lastname = $line['LastName'];
    com_gramps/admin/install.mysql.sql:`LastName` VARCHAR(255),
    com_gramps/site/models/makeindex.php: $query = 'SELECT DISTINCT LEFT(' . $db->nameQuote('LastName') . ',1)
    com_gramps/site/models/makeindex.php: ORDER BY ' . $db->nameQuote('LastName');
    com_gramps/site/models/showfullnames.php: WHERE `LastName` = "' . $lastname . '"
    com_gramps/site/models/showlastnames.php: function getLastNames($char)
    com_gramps/site/models/showlastnames.php: $query = 'SELECT DISTINCT `LastName`
    com_gramps/site/models/showlastnames.php: WHERE LEFT(`LastName`,1) = "' . $char . '"
    com_gramps/site/models/showlastnames.php: ORDER BY `LastName`';
    com_gramps/site/models/showperson.php: $LastName = $person['LastName'];
    com_gramps/site/models/showperson.php: $char= substr($person['LastName'],0,1);
    com_gramps/site/models/showperson.php: $lastname = $person['LastName'];
    com_gramps/site/models/showperson.php: $fullname = $FirstName. $sp . $Patronymic . $sp . $PreFix . $sp . $LastName;
    com_gramps/site/models/showperson.php: $fathers_name = $parent['FirstName'] . $sp . $parent['Patronymic'] . $sp . $parent['PreFix'] . $sp . $parent['LastName'];
    com_gramps/site/models/showperson.php: $mothers_name = $parent['FirstName'] . $sp . $parent['Patronymic'] . $sp . $parent['PreFix'] . $sp . $parent['LastName'];
    com_gramps/site/models/showperson.php: $siblings[$n]['name'] = $sibling['FirstName'] . $sp . $sibling['Patronymic'] . $sp . $sibling['PreFix'] . $sp . $sibling['LastName'];
    com_gramps/site/models/showperson.php: $spouses[$n]['name'] = $spouse['FirstName'] . $sp . $spouse['Patronymic'] . $sp . $spouse['PreFix'] . $sp . $spouse['LastName'];
    com_gramps/site/models/showperson.php: //$families[$spouse['F_ID']]['name'] = $spouse['FirstName'] . $sp . $spouse['Patronymic'] . $sp . $spouse['PreFix'] . $sp . $spouse['LastName'];
    com_gramps/site/models/showperson.php: $children[$n]['name'] = $child['FirstName'] . $sp . $child['Patronymic'] . $sp . $child['PreFix'] . $sp . $child['LastName'];
    com_gramps/site/models/showperson.php: //$families[$child['F_ID']]['child'.$n]['name'] = $child['FirstName'] . $sp . $child['Patronymic'] . $sp . $child['PreFix'] . $sp . $child['LastName'];
    com_gramps/site/views/showlastnames/view.html.php: extract($model->getLastNames($char));

    * person/name/first

    mod_gramps/events.php: $fullname = $event['FirstName'] . $sp . $event['Patronymic'] . $sp . $event['PreFix'] . $sp . $event['LastName'];
    com_gramps/admin/install.mysql.sql:`FirstName` VARCHAR(255),
    com_gramps/site/models/showfullnames.php: ORDER BY FirstName';
    com_gramps/site/models/showperson.php: $FirstName = $person['FirstName'];
    com_gramps/site/models/showperson.php: $fullname = $FirstName. $sp . $Patronymic . $sp . $PreFix . $sp . $LastName;
    com_gramps/site/models/showperson.php: $fathers_name = $parent['FirstName'] . $sp . $parent['Patronymic'] . $sp . $parent['PreFix'] . $sp . $parent['LastName'];
    com_gramps/site/models/showperson.php: $mothers_name = $parent['FirstName'] . $sp . $parent['Patronymic'] . $sp . $parent['PreFix'] . $sp . $parent['LastName'];
    com_gramps/site/models/showperson.php: $siblings[$n]['name'] = $sibling['FirstName'] . $sp . $sibling['Patronymic'] . $sp . $sibling['PreFix'] . $sp . $sibling['LastName'];
    com_gramps/site/models/showperson.php: $spouses[$n]['name'] = $spouse['FirstName'] . $sp . $spouse['Patronymic'] . $sp . $spouse['PreFix'] . $sp . $spouse['LastName'];
    com_gramps/site/models/showperson.php: //$families[$spouse['F_ID']]['name'] = $spouse['FirstName'] . $sp . $spouse['Patronymic'] . $sp . $spouse['PreFix'] . $sp . $spouse['LastName'];
    com_gramps/site/models/showperson.php: $children[$n]['name'] = $child['FirstName'] . $sp . $child['Patronymic'] . $sp . $child['PreFix'] . $sp . $child['LastName'];
    com_gramps/site/models/showperson.php: //$families[$child['F_ID']]['child'.$n]['name'] = $child['FirstName'] . $sp . $child['Patronymic'] . $sp . $child['PreFix'] . $sp . $child['LastName'];

    * person/name/surname/surname/@prefix

    mod_gramps/events.php: $fullname = $event['FirstName'] . $sp . $event['Patronymic'] . $sp . $event['PreFix'] . $sp . $event['LastName'];
    com_gramps/admin/install.mysql.sql:`PreFix` VARCHAR(255),
    com_gramps/site/models/showperson.php: $PreFix = $person['PreFix'];
    com_gramps/site/models/showperson.php: $fullname = $FirstName. $sp . $Patronymic . $sp . $PreFix . $sp . $LastName;
    com_gramps/site/models/showperson.php: $fathers_name = $parent['FirstName'] . $sp . $parent['Patronymic'] . $sp . $parent['PreFix'] . $sp . $parent['LastName'];
    com_gramps/site/models/showperson.php: $mothers_name = $parent['FirstName'] . $sp . $parent['Patronymic'] . $sp . $parent['PreFix'] . $sp . $parent['LastName'];
    com_gramps/site/models/showperson.php: $siblings[$n]['name'] = $sibling['FirstName'] . $sp . $sibling['Patronymic'] . $sp . $sibling['PreFix'] . $sp . $sibling['LastName'];
    com_gramps/site/models/showperson.php: $spouses[$n]['name'] = $spouse['FirstName'] . $sp . $spouse['Patronymic'] . $sp . $spouse['PreFix'] . $sp . $spouse['LastName'];
    com_gramps/site/models/showperson.php: //$families[$spouse['F_ID']]['name'] = $spouse['FirstName'] . $sp . $spouse['Patronymic'] . $sp . $spouse['PreFix'] . $sp . $spouse['LastName'];
    com_gramps/site/models/showperson.php: $children[$n]['name'] = $child['FirstName'] . $sp . $child['Patronymic'] . $sp . $child['PreFix'] . $sp . $child['LastName'];
    com_gramps/site/models/showperson.php: //$families[$child['F_ID']]['child'.$n]['name'] = $child['FirstName'] . $sp . $child['Patronymic'] . $sp . $child['PreFix'] . $sp . $child['LastName'];

    * Patronymic?
    person/name/@type ?

    mod_gramps/events.php: $fullname = $event['FirstName'] . $sp . $event['Patronymic'] . $sp . $event['PreFix'] . $sp . $event['LastName'];
    mod_gramps/statistics.php:$query = 'SELECT COUNT(DISTINCT Patronymic)
    com_gramps/admin/install.mysql.sql:`Patronymic` VARCHAR(255),
    mod_gramps/languages/en-GB.mod_gramps.ini:PATRONYMICS=Patronymics
    com_gramps/site/models/showperson.php: $Patronymic = $person['Patronymic'];
    com_gramps/site/models/showperson.php: $fullname = $FirstName. $sp . $Patronymic . $sp . $PreFix . $sp . $LastName;
    com_gramps/site/models/showperson.php: $fathers_name = $parent['FirstName'] . $sp . $parent['Patronymic'] . $sp . $parent['PreFix'] . $sp . $parent['LastName'];
    com_gramps/site/models/showperson.php: $mothers_name = $parent['FirstName'] . $sp . $parent['Patronymic'] . $sp . $parent['PreFix'] . $sp . $parent['LastName'];
    com_gramps/site/models/showperson.php: $siblings[$n]['name'] = $sibling['FirstName'] . $sp . $sibling['Patronymic'] . $sp . $sibling['PreFix'] . $sp . $sibling['LastName'];
    com_gramps/site/models/showperson.php: $spouses[$n]['name'] = $spouse['FirstName'] . $sp . $spouse['Patronymic'] . $sp . $spouse['PreFix'] . $sp . $spouse['LastName'];
    com_gramps/site/models/showperson.php: //$families[$spouse['F_ID']]['name'] = $spouse['FirstName'] . $sp . $spouse['Patronymic'] . $sp . $spouse['PreFix'] . $sp . $spouse['LastName'];
    com_gramps/site/models/showperson.php: $children[$n]['name'] = $child['FirstName'] . $sp . $child['Patronymic'] . $sp . $child['PreFix'] . $sp . $child['LastName'];
    com_gramps/site/models/showperson.php: //$families[$child['F_ID']]['child'.$n]['name'] = $child['FirstName'] . $sp . $child['Patronymic'] . $sp . $child['PreFix'] . $sp . $child['LastName'];

     

Log in to post a comment.

MongoDB Logo MongoDB