Giter Site home page Giter Site logo

Comments (3)

mpedramfar avatar mpedramfar commented on August 19, 2024 1

For 1, we have two functions. One is zotra-add-entry-from-search which might be similar to biblio since it populates a bibliographic entry (bibtex/biblatex/CSL json/CSV/etc) using a search identifier (DOI, ISBN, PMID, arXiv ID).

The other is zotra-add-entry-from-url which needs a url to a journal/repo/youtube video/whatever and populates the bibliography entry. I've described in the README how to use org-protocol to get a bookmarklet in the browser that acts similar to Zotero-connector so that you can visit a website in your browser, click on the bookmarklet and an entry will be added to your bibliography file.

I agree that, for this case, probably no particular integration code is needed.

For 2, that's mostly correct. The zotra-get-attachment function can get attachment urls (if there is more that one attachment, it'll either ask the user to choose a single one or return the list of all of them) from either search identifier or the url. The version of bibtex-completion-add-pdf-to-library that I've written in the README is using the url field of the bibtex entry and falls back to asking the user for a url when the bibtex entry doesn't have such a field.

There are also zotra-download-attachment (-from-search/-from-url) functions, but it might be easier to integrate if you use zotra-get-attachment instead

from citar.

bdarcus avatar bdarcus commented on August 19, 2024 1

I can't predict when or if I'll have time to get this, given other priorities. But PR and/or wiki contribution would certainly be welcome.

FWIW, citar is designed to be pretty flexible in terms of integration with other packages, so much so that it's often better to spin off functionality like this into independent small packages.

from citar.

bdarcus avatar bdarcus commented on August 19, 2024

Thanks for the note.

So let me see if IUC:

The idea here is zotra can be used to add either:

  1. an entry, with metadata populated from the zotero translators
  2. a link to a PDF attachment to an already-existing entry; you're example is this

Is that correct?

On 2, we do have a broader command called citar-add-library-files. I'll need to think about this one a bit more. It might be that adding a hook here would be useful, but am not sure.

I think 1 is pretty much the same as using biblio with the embark-become example, so could just add another example to the wiki (and so, no particular integration code needed):

https://github.com/emacs-citar/citar/wiki/Embark#embark-become

from citar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.