Fix bug caused by missing handling of different retrieval modes for
Wikidata fetcher
This commit is contained in:
parent
d5b593c334
commit
47226b6538
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user