Merge branch 'master' of gitea:museum-digital/MDNodaHelpers

This commit is contained in:
Joshua Ramon Enslin 2024-03-24 02:17:22 +01:00
commit 2cdfa2e948

View File

@ -876,13 +876,14 @@ final class NodaWikidataFetcher {
$wikidata_gender_id = $data['claims']['P21']['0']['mainsnak']['datavalue']['value']['id']; $wikidata_gender_id = $data['claims']['P21']['0']['mainsnak']['datavalue']['value']['id'];
switch ($wikidata_gender_id) { switch ($wikidata_gender_id) {
case "Q6581097": // male case "Q6581097": // male
case "Q44148": //male organism case "Q44148": // male organism
case "Q2449503": // transgender man
$wikidata_gender = "male"; $wikidata_gender = "male";
break; break;
case "Q6581072": case "Q6581072":
case "Q1052281": // transgender female case "Q1052281": // transgender female
case "Q43445": // female organism case "Q43445": // female organism
$wikidata_gender = "female"; $wikidata_gender = "female";
break; break;
case "Q48270": case "Q48270":