X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/b5977d65e97f6fcfccddefedf619de4902e45d31..f17cb847eed25ce09a134f4047365fdce1512f26:/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb diff --git a/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb b/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb index e14dbea78..52930f750 100644 --- a/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb +++ b/cookbooks/wiki/templates/default/mw-ext-Wikibase.inc.php.erb @@ -49,6 +49,11 @@ call_user_func( function() { // these are the site_group codes as listed in the sites table $wgWBRepoSettings['specialSiteLinkGroups'] = ['osm']; + + // This option will start working in Wikibase v1.33 release. Noop until then. + // https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/Wikibase/+/469872/ + $wgWBRepoSettings['enableEntitySearchUI'] = false; + } ); // Adapted from "$IP/extensions/Wikibase/client/ExampleSettings.php"; @@ -83,3 +88,8 @@ $wgGroupPermissions['data-admin']['property-create'] = true; // See https://www.mediawiki.org/wiki/Wikibase/Installation/Advanced_configuration#Define_links_for_external_identifiers $wgWBRepoSettings['formatterUrlProperty'] = 'P8'; + +// Disable Wikibase searchbox with this hack (hopefully Wikibase will implement support for it soon) +// See https://phabricator.wikimedia.org/T205560 +// After upgrading to Wikibase 1.33, this line can be deleted. The 'enableEntitySearchUI' above will do the same thing. +$wgResourceModules['wikibase.ui.entitysearch']['scripts'] = [];