User:PerfektesChaos/js/citoidWikitext/software

Software issues related to citoidWikitext.

Data model extension
The default Zotero data collection (format=zotero) is improved as follows:

General procedure
Users are supposed to load the scout script, if in source code edit mode.

That will decide upon further steps and will load required resources, when needed.

When something has been selected, API is used for contacting WMF citoid service. The result is polished by the opus module. This project independent data is forwarded to a project specific module which creates the appropriate template string. That string is inserted at cursor position.

Further wiki projects
Any number of wiki projects might be registered.

For each wiki a plug-in is required, which gets the ID  and will provide at least one function wgDBname  which receives the aggregated Citoid data and returns an Array of template name and parameters.

See here for interface details.

The  plug-in is an example.

Internationalization
The code is prepared for multilingual support. Further projects might define an independent plugin with their template definitions, deriving current result from API result.
 * mapping on top of source code needs to be translated.

Localization on the fly
The following code defines for an entry  a translation when GUI is displayed in   language: This entry will replace the  definition, or create one.