UB-Mannheim / zotkat

Erweiterung von Zotero für die Katalogisierung
GNU Affero General Public License v3.0
45 stars 22 forks source link

Improve Wikidata QuickStatements #50

Closed zuphilip closed 7 years ago

zuphilip commented 7 years ago

@pigsonthewing Can you try this suggested version? It should fix the problems you reported.

zuphilip commented 7 years ago

Here is the direct link to the new suggested version: https://raw.githubusercontent.com/UB-Mannheim/zotkat/improve-wikidata/Wikidata%20QuickStatements.js

pigsonthewing commented 7 years ago

Not working for me at all now. I have even deleted, reinstalled, and restarted the browser. Other types of export still work.

zuphilip commented 7 years ago

What kind of "not working at all" are you experiencing? Can you still choose the WQS exporter manually? Do you see some kind of prohibition sign when trying to drag and drop? How about an item without a value in language?

pigsonthewing commented 7 years ago

I see a prohibition sign if I try to drag an item into QS, either choosing it manually or selecting by domain. Also "export library" fails with an unspecified error.

zuphilip commented 7 years ago

Can you try again with the new version (same link)? Otherwise maybe look at the error report under "Report Errors..." and copy the WQS related stuff here.

pigsonthewing commented 7 years ago

Thank you; working now. Fixes look good, except no values offered for P1476 (title).

zuphilip commented 7 years ago

Good. There is only a P1476 statement if you have also specified the language. Try to add the value for the language in Zotero, then you should see a P1476 statement.

Is there a way to add a P1476 statement without knowing the language?

pigsonthewing commented 7 years ago

Is there a way to add a P1476 statement without knowing the language?

"und" is used for "language undetermined", and should be acceptable in such cases.

Alternatively, default to English (as done for the label!) or perhaps there is a user-setting for the user's preferred language?

zuphilip commented 7 years ago

I added the "und" in the latest commit. Thank you for the help!