Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix geneanet occupation #141

Open
wants to merge 31 commits into
base: master
Choose a base branch
from

Conversation

pquenee
Copy link
Collaborator

@pquenee pquenee commented Feb 21, 2025

In very poorly structured Geneanet html pages, detecting a possible profession is quite difficult. So it makes sense that dirty html generates dirty Javascript...
The standalone addition (no need for modification elsewhere) of code is located from the //jobs comment.

Pierre Quenee and others added 30 commits September 11, 2024 10:40
remove extra 's'
…ower than 1600 except for curators: 1000 - import of occupations from geneanet.
Allow control of GENI profiles
@pquenee pquenee requested a review from GuyKh February 21, 2025 15:48
@@ -122,7 +122,7 @@ function parseFindAGrave(htmlstring, familymembers, relation) {
}
}
}
profiledata = addEvent(profiledata, "burial", parsed.find("#burialDateLabel").text(), cemetery.trim());
profiledata = addEvent(profiledata, "burial", convDateFrench(parsed.find("#burialDateLabel").text()), cemetery.trim());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why to convert all dates to frenchDates?

@@ -282,6 +282,7 @@ function addEvent(profiledata, event, dateval, eventlocation) {
}
dateval = cleanDate(dateval);
if (dateval !== "unknown" && dateval !== "") {
convDateFrench(dateval);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very tailored for French

@GuyKh
Copy link
Collaborator

GuyKh commented Feb 21, 2025

A. Need to resolve conflicts.
B. This PR contains changes to finagrave too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants