Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more properties #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add more properties #12

wants to merge 1 commit into from

Conversation

mvolz
Copy link
Contributor

@mvolz mvolz commented Nov 12, 2018

  • Change citoid format from mediawiki to mediawiki-basefields;
    this format has fewer total properties.
  • Add complete list of mediawiki-basefields properties
    to the sample config, most with null value, and fill in a few.
  • Add function for adding snaks with a String datavalue
  • In CiteToolReferenceEditor, add the ability to add several
    string properties using some of the added keys in zoteroProperties
    config.
  • In the sample config, remove unused 'refTypes' key.
  • In the sample config, add 'queryProperties' key; this is currently
    used by some WIP code. Comment out the code that uses this key as
    it still doesn't work though.

If you want to test this on Wikidata proper, I've got it in my common.js:

mw.loader.using(['wikibase'], function() {
	$.getScript( 'https://www.wikidata.org/w/index.php?title=User:Mvolz_(WMF)/CiteTool.js&action=raw&ctype=text/javascript', function() {
		var citeTool = new wb.CiteTool( 'https://www.wikidata.org/w/index.php?title=User:Mvolz_(WMF)/CiteProperties.json&action=raw&ctype=application/json' );
		citeTool.init();
	});
});

* Change citoid format from mediawiki to mediawiki-basefields;
this format has fewer total properties.
* Add complete list of mediawiki-basefields properties
to the sample config, most with null value, and fill in a few.
* Add function for adding snaks with a String datavalue
* In CiteToolReferenceEditor, add the ability to add several
string properties using some of the added keys in zoteroProperties
config.
* In the sample config, remove unused 'refTypes' key.
* In the sample config, add queryProperties key; this is currently
used by some WIP code. Comment out the code that uses this key as
it still doesn't work though.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant