Skip to content

Commit 1afce73

Browse files
committed
fix ancestry person facts
1 parent 50a25ee commit 1afce73

14 files changed

+1116
-999
lines changed

src/scrapers/ancestry-person.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ function FactsList($dom){
453453
// The event name is a plain text node where as the other data is
454454
// wrapped in another element. So we traverse the childNodes and look for
455455
// the first regular text node.
456-
var name = firstChildText(card.querySelector('.cardSubtitle')).trim().toLowerCase();
456+
var name = firstChildText(card.querySelector('.userCardTitle')).trim().toLowerCase();
457457
if(typeof facts[name] === 'undefined'){
458458
facts[name] = [];
459459
}

test/data/ancestry-person/output/70025770-30206952907.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"original": "23 Jun 1892"
5656
},
5757
"place": {
58-
"original": "Bialykamien, Galizien, Austria"
58+
"original": "Bialy Kamien, L'vivs'ka, Ukraine"
5959
}
6060
},
6161
{
@@ -64,7 +64,7 @@
6464
"original": "26 Jun 1892"
6565
},
6666
"place": {
67-
"original": "Bialykamien, Galizien, Austria"
67+
"original": "Bialy Kamien, L'vivs'ka, Ukraine"
6868
}
6969
},
7070
{
@@ -97,6 +97,15 @@
9797
"original": "Bremen"
9898
}
9999
},
100+
{
101+
"type": "http://gedcomx.org/Residence",
102+
"date": {
103+
"original": "1905"
104+
},
105+
"place": {
106+
"original": "Amsterdam Ward 07, Montgomery, New York, USA"
107+
}
108+
},
100109
{
101110
"type": "http://gedcomx.org/Residence",
102111
"date": {

0 commit comments

Comments
 (0)