Fix bug caused by missing handling of different retrieval modes for

Wikidata fetcher
This commit is contained in:
Joshua Ramon Enslin 2022-04-18 20:45:32 +02:00
parent d5b593c334
commit 47226b6538
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -588,6 +588,10 @@ final class NodaWikidataFetcher {
$output = true; $output = true;
break; break;
case "keep":
$newDesc = $cinfo['persinst_kurzinfo'];
break;
case "replace": case "replace":
$updatePersinstStmt->bind_param("si", $datafromwiki, $persinst_id); $updatePersinstStmt->bind_param("si", $datafromwiki, $persinst_id);
@ -974,6 +978,8 @@ final class NodaWikidataFetcher {
case "keep": case "keep":
$datafromwiki = $curPlaceInfo['ort_anmerkung']; $datafromwiki = $curPlaceInfo['ort_anmerkung'];
break; break;
case "replace":
break;
default: default:
$tlLoader = new MDTlLoader("wiki_getter_place", $preflang); $tlLoader = new MDTlLoader("wiki_getter_place", $preflang);
echo self::generateHTMLHeadForWikidataFetcher($lang); echo self::generateHTMLHeadForWikidataFetcher($lang);
@ -1381,6 +1387,10 @@ final class NodaWikidataFetcher {
$output = true; $output = true;
break; break;
case "keep":
$newDesc = $cinfo['tag_anmerkung'];
break;
case "replace": case "replace":
$updateTagDescStmt->bind_param("si", $datafromwiki, $tag_id); $updateTagDescStmt->bind_param("si", $datafromwiki, $tag_id);