-
Notifications
You must be signed in to change notification settings - Fork 73
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
Problem with and suggestion for "Copy select item links" #63
Comments
Hmm, okay, I will have to experiment with the select links. The suggestion seems reasonable. Should this be an option set in preferences -- copy as plain link, markdown link, or html link? For the other text, the function could use whatever format QuickCopy is set to. |
The suggestion could either be a separate (optional) item menu "Copy formatted select item links" (with an option for html or markdown) or a preference... Both work, I think. |
How are you testing the select item links? I tried with Zutilo 2.0.2 and Zotero 5.0-beta.135+12735fa. I used Zutilo to copy the link and then created a link in a note and clicked on it. I tried that a couple different items. It always selected the right item for me. |
Also, I thought about the suggestion a little more. I think an export translator could be written to output a markdown or html link in the format you describe. Then you could just set that format to be the QuickCopy format (or one of the alternative QuickCopy formats in Zutilo's preferences). |
Thanks for looking into it. I realized that I have the same problems with zotero links that are not coming from Zutilo. Sometimes it works, sometimes it doesn't but that is entirely unrelated to Zutilo. Sorry for the trouble. By the way, here is Dan's info on the revised link format: https://groups.google.com/d/msg/zotero-dev/efFuMEqLarY/bZ167jIyGQAJ But I am not sure whether anything has changed since then. |
Thanks for pointing that out. So for Zotero 5.0 or greater, I can change the format to |
I would check with Dan about any changes to the format. In his post, he mentioned that the protocol handler still needs work in 5. There is a different format for group libraries but I am not sure how it works. I thought it's this |
Hmm, in very limited testing, the @dstillman maybe you can comment here. Zutilo has functions for copying either an item's select link or its Zotero URI (currents versions are here). I assume the URI function doesn't need to change because it just uses
|
Old formats should still work, so if they're not, let me know what you're seeing and we can fix. Your proposed code should work. (In theory it should also work with (Related: We should also support |
I'm closing this because I think the conclusion was that the format Zutilo uses still works. Perhaps Zutilo should be updated to use the newer format but it seems like there are still some future changes planned to the protocol handler (like zotero/zotero#1176) so I'll leave it alone for now. There was also the suggestion about adding the option to change the link format to markdown or html, but I think that can be done with an export translator and Zutilo's quickcopy shortcut, so I won't add a separate function for now. |
Hey,
I am having a problem with the "Copy select item links" function. Zotero 5.0 always selects the same (and wrong) item. Might be a zotero problem and not zutilo but I also think that the link format changed in Zotero 5.
And a suggestion: formatted links in html or markdown. So Zutilo would copy something like this:
The text was updated successfully, but these errors were encountered: