Citoid/Wikibase

Manual
First, follow the installation instructions for Wikibase here: Wikibase/Installation

And install CirrusSearch, Citoid extension, and WikibaseCirrusSearch extension.

Vagrant
Alternatively, if you are a developer using vagrant, enable the following roles: (but not citoid because it's broken in vagrant)
 * wikidata
 * wikibasecirrussearch

Just enabling the roles for wikidata typically fails, there are extra steps here: MediaWiki-Vagrant#wikidata

Due to issues with merging composer files, typically updating composer from inside the machine helps as well:

> vagrant ssh > cd /vagrant/mediawiki > composer update

Additional modifications need to be made to LocalSettings.php, whether you are installing manually or with vagrant:

Configuring Citoid with Wikibase
Create the message MediaWiki:Citoid-wikibase-config.json. For example, if you are using vagrant, navigate to http://wikidata.wiki.local.wmftest.net:8080/wiki/MediaWiki:Citoid-wikibase-config.json.

There is a sample message on test and beta.

A minimally viable config message for developers is here: Citoid/Wikibase/Citoid-wikibase-config.json

This contains only two properties, one for DOI (P1) which is a string property, and one for "stated in" (P2) to point to entities which have a DOI. entityIdentifyingProperties are only used in wikibase instances that have WikibaseCirrusSearch enabled, and only work for properties which are indexed (corresponding to P1 in this example.)

If you have a new environment you may need to manually create properties. i.e in vagrant: http://wikidata.wiki.local.wmftest.net:8080/wiki/Special:NewProperty

Important: only non-wikibase entity properties should be added to the "zoteroProperties" block, i.e. string, monolingual snak, etc. Entity properties should only be added to the entityIdentifyingProperties block.