-
Notifications
You must be signed in to change notification settings - Fork 37
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
import bib by zotero translation server #220
Comments
Hi, thanks for the suggestion. I'm trying to think of the best way to add this. Ebib itself doesn't have any functionality built-in to pull .bib data from the web, so my first thought is that this would be better in OTOH there's no real reason why it shouldn't be included in Ebib directly, so if you make a PR, I'll certainly consider it. |
Yes, I also mention in biblio.el. I understand what you are considering, maybe we should add these codes to the wiki? They are not too long and there are no dependencies but are really useful for those who need them. I want ebib user can find this snippet easily somewhere. |
Added to the wiki. @joostkremers maybe you can mention wiki page in ebib manual or readme. |
Thanks, that's certainly a good start for now. I'll add a note about the wiki to the manual. I'm reopening this issue because I'm still considering adding this to Ebib proper. |
Another thing to mention is that if adding to ebib, we need to consider whether to use curl or Emacs' built-in url-* function |
@joostkremers Hi, I have a questions, how to run (defun ebib-zotero-import-url (url)
"Fetch a entry from zotero translation server via a URL.
The entry is stored in the current database."
(interactive "MURL: ")
(with-temp-buffer
(insert (ebib-zotero-translate url "web"))
(ebib-import-entries ebib--cur-db))
(ebib-generate-autokey)) |
|
ok, I will write some functions to do it myself. |
@tshu-w thanks for putting together this code, it's working great so far. I'm wondering if you've managed to solve the matter of running I've hacked the following onto the end of
The above uses the input identifier as a filter to locate the entry in the index, then cancels the filter, leaving the entry at point. Surely this isn't the best way to jump to the newest entry. When discussed in #232, it is suggested to use Thanks in any case. |
This seems to work so far, using
cc: @Hugo-Heagren Maybe something from here could be incorporated into |
Not yet, I've been busy recently, if I finish it I'll append it here or in the wiki. |
I prepared a pull request implementing this functionality in biblio.el proper, see cpitclaudel/biblio.el#50. It uses either |
@gkowzan Well done! Using org-protocol is really convenient! |
Inspired by this pull request jkitchin/org-ref#901, we can import bib entries by Zotero Translation Server with Zotero Translators which support a large range of websites. We don't need to install Zotero but should run a translation server somewhere as describde in the README. Would you mind add following code in ebib(I can make a PR) or mentions this issue in the manual.
The text was updated successfully, but these errors were encountered: