-
Notifications
You must be signed in to change notification settings - Fork 8
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
Error enabling org-bib-mode #8
Comments
Thanks for the report. I'm not quite sure to understand why org-bibtex-export-to-kill-ring is called when entering org-bib-mode. Do you have any idea? Something you did just before? ISBN support would be great and I can try to help. Where do you get the information from for ISBN? |
Will check. I pushed an ISBN branch on |
Did you made a pull request or is it only in your repo ? |
Only in my repo, am unsure of the quality so far because it has lots of debugging info still in and so on. But I would appreciate some feedback. |
Sorry for late answer. Can you point me to the relevant code in your repo? |
Haven't had time to work on it any further, but changes here: |
Thanks. I don't have much time right now to integrate it. Will try early next year. |
Ok, academic end of year craze here as well, see you next year. |
I've code a dedicated library for manipulating identifiers: https://github.com/rougier/emacs-persid |
Great to abstract this out into its own package! |
That would be great. So far I've found this resource: Free and Paid APIs to access books information via ISBN |
Have you looked at Kitchin's ISBN sources here: |
No, I need to try. But it seems each ISBN database is relatively small and I'm surprised there's no definitve database that collect everything. |
Indeed and also surprising data for the author(s) for example is never consistent. I like to file books on surname, first name for example, but those are mostly not stored separately. Wikipedia, archive.org or some other non-profit org should be involved in such an endeavor as a public service. |
Hi, I also ran into this error when trying out this interesting package (was working on something similar, but given that this exists I don't know if that's still necessary...). When you start out with the minimal document as described in the README, and enable org-bib-mode it tries to create a preview of the "Unsorted" entry and fails with this error. As soon as you have at least one entry with a BTYPE property the error disappears. |
I'm getting the same error as in artelse's initial post, and the cause seems to be the same too (preview generation fails when no entry with BTYPE property). Do you still want a separate issue? |
@orgtre do you have a minimal org-file that show the problem such that I can experiment on my side? |
Sure, I just created a minimal document exactly as in the block of the configuration section but with paths adjusted to my system and then the error happens when enabling org-bib-mode. |
Sorry for delay. Which version are you using? |
Do you mean you cannot reproduce this? I'm using org-bib-mode version 0.4.0 (latest commit). |
I think I got it. I've change the internal format of the org file to take advantage of org-bibtex. For example, here is an example of the new format, can you check if this is working?
|
Reinstalled org-bib, dependencies and above example. It now accepts a dropped pdf article and adds it to the list to be viewed in the side menu. Further, the keys also work fine for quick viewing of the note, abstract, pdf, url, etc. As you state in the code, the file format could be made a configurable option. Now as my main interest is books with ISBN numbers (..), it would be great if we could make that work as well as a dropper. I love the annotated format that can be exported to a regular .bib file. Have you played with transients yet, could be a cool addition. |
Problem with ISBN is that we do not have a reliable solution to find them. What is transient doing exactly? |
A transient is a temporary minibuffer popup displaying relevant commands with keybindings which is very helpful from a UI/UX pov imo. Tarsius developed it for Magit, but has become a separate package Docs seem a bit confusing, but here are a few good examples on its simple usage. |
Good starting point would be https://github.com/rougier/emacs-persid. I'm not talking about my code but the various similar initiative I've collected in the README. A good test would be to choose arbitrarily a few ISBNs and check where can get the bib info. |
Great progress on this package! However when I enable
org-bib-mode
on thebibliography.org
file, I get this error:BTW, I have been learning some elisp and have been doing some work on adding ISBN support in
pdf-drop-mode
because I mostly work with book references. Progress is slow due to getting to know the elisp environment.The text was updated successfully, but these errors were encountered: