Giter VIP home page Giter VIP logo

Comments (8)

anoopkcn avatar anoopkcn commented on May 13, 2024

Hi, I will look into the issue.

It would also be great help for me if you can explicitly add {{citekey}} to allowed metadata fields

You can use the {{id}} metadata field; this is equivalent to {{citekey}}. Or did I misunderstand your statement above?
Note:: for batch metadata operations {{id}} will return empty.

from obsidian-reference-map.

anoopkcn avatar anoopkcn commented on May 13, 2024

This is fixed in the latest release. Please test it.

Screenshot 2023-01-22 at 20 33 16

from obsidian-reference-map.

irzhegalova avatar irzhegalova commented on May 13, 2024

@anoopkcn thank you for a quick fix, it works well now!

Regarding {{id}} you understood me perfectly, but unfortunately {{id}} is not always equivalent to citekey.

Let's say I added some doi to my obsidian note. Reference map will recognize it as a paper and create an entrance. But its key will be doi, not citekey.
Have a look at this example:
I added https://doi.org/10.1038/s41419-020-03238-7
with template {{author}}, {{year}} %%[{{id}}] %% I will receive the following: M. Schank, 2020 %%[10.1038/s41419-020-03238-7] %%

from obsidian-reference-map.

anoopkcn avatar anoopkcn commented on May 13, 2024

Oh yes, I see what you mean now. Currently, {{citekey}} is only available for references you have in the Zotero library. I will think of a way to construct citekey for references not in the Zotero library.
I have a couple of ideas about this. The biggest problem in implementing this is maintaining consistency between zotero bibtex citekey format and whatever format I implement for references(since better bibtex doesn't have a public typescript package). That is a long way of saying it might take a bit of time for me to implement this feature 😁

from obsidian-reference-map.

irzhegalova avatar irzhegalova commented on May 13, 2024

It is harder than that :)
if I cite a paper using doi although HAVING it in my library: https://doi.org/10.1016/j.cell.2022.11.001 (citekey @LOPEZOTIN2023243) Refmap will recognize it but when using the same template {{author}}, {{year}} %%[{{id}}] %% return C. López-Otín, 2022 %%[10.1016/j.cell.2022.11.001] %% but not C. López-Otín, 2022 %%[@LOPEZOTIN2023243] %%
but anyway, I got your point. It is not a crucial thing, but still a little bit of pain for me

from obsidian-reference-map.

anoopkcn avatar anoopkcn commented on May 13, 2024

In the next patch, I can add a setting to convert the reference ids to citekey if the references are present in the Zotero library. This could solve the problem you specified in the last message.

from obsidian-reference-map.

irzhegalova avatar irzhegalova commented on May 13, 2024

it would be great, thank you so much!

from obsidian-reference-map.

anoopkcn avatar anoopkcn commented on May 13, 2024

Hi @irzhegalova, I added this feature in the latest version(Reference-Map is now available in the community plugins so you can simply do an update)
behaviour: If you have a DOI in the markdown file Reference-Map will look for the Citekey in the Zotero library; if it finds the CiteKey, it will substitute the {{id}} for that CiteKey instead of the DOI. The index cards will also show a link to the Zotero entry.

NOTE: you have to enable this in the settings called Find CiteKey from ID.

from obsidian-reference-map.

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.