wshanks / Zutilo

Zotero plugin providing some additional editing features
Other
1.47k stars 71 forks source link

"Paste [...] item fields" options are missing in the item context menu #232

Open AlexanderSavenkov opened 2 years ago

AlexanderSavenkov commented 2 years ago

I'm trying to get additional menu items into Zutilo submenu (or Zotero context menu) via Tools → Zutilo Preferences → User interface.

No matter which adjustments I make, after pressing OK there are only four default menu items in Zutilo submenu and there are no additional items in Zotero context menu.

Restarting Zotero doesn't help. All the updates are there as well. Ready to provide additional info if required.

OS: Windows 10 Pro 21H2 19044.1826 Zotero: 6.0.9 Zutilo: 3.10.0

qqobb commented 2 years ago

I'm not sure what the issue could be. You could try these steps:

wobintosh commented 1 year ago

I think I might have the same issue.

Expected behavior I want to use "Paste into empty item fields" and "Paste non-empty item fields" from the Zutilo's context menu. If I enable only those two, there is no Zutilo Context-Menu at all.

Actual behavior To narrow down the problem I selected all options from "Zotero item menu" to be shown in Zutilo's context menu. As expected from my previous experiments, not all are shown in the context menu. The missing options are:

Tested a) in a saved search with only magazine articles and b) regular collections with only magazine articles and mixed articles/books.

2022-09-05 14_27_37-Zutilo Preferences 2022-09-05 14_28_09-Zutilo context menu

Versions Windows 10 Pro Version 2004 (Build 19041.1415) Zotero 6.0.13 Zutilo 3.9.0, 3.10.0

qqobb commented 1 year ago

@wobintosh: Zutilo's "Paste [...] item fields" options only show up if you have valid JSON item data on the clipboard. Try using "Copy items fields", then check if you see the "Paste [...] item fields" options.

See these discussions for more details: https://forums.zotero.org/discussion/93399/cannot-use-paste-non-empty-item-fields-of-zutilo https://forums.zotero.org/discussion/85593/editing-multiple-items-at-once

@AlexanderSavenkov: Is this the same issue you were experiencing?

AlexanderSavenkov commented 1 year ago

@qqobb, I think so. The behavior was counterintuitive, but once you figure it out, it is straightforward. Worth mentioning in the documentation.

wobintosh commented 1 year ago

@qqobb I was quite sure that I had valid JSON in my clipboard, but somehow it started working a few days later. Maybe it would be an option to gray out the option, if there is no (valid) JSON in clipboard?

qqobb commented 1 year ago

Maybe it would be an option to gray out the option, if there is no (valid) JSON in clipboard?

@wobintosh: Yes, graying out the "Paste [...] item fields" options seems better than hiding them. We would have to check how to do that.

Note that your JSON could also be invalid due to syntax issues, see here.