Comments (20)
So it sounds like you can either stick with option 2 (using both the .bib and the .json)
yes, I can survive with both archives, ha, ha, ha!
Thank you so much!
from zotero-markdb-connect.
from zotero-markdb-connect.
hi @WMAM. For these files, you'll need to export your library in the BetterBibTex JSON
format (File -> Export library
, click Keep updated
), and then provide the path to that json
file in the ZoteroObsidianCitations preferences. The reason is that this plugin needs to map your BBT citekeys (e.g. nimmoDielsAlderClick2011
) to the Zotero Item IDs or Zotero Item Keys.
The other option (supplying a regex in the Zotero Key RegEx
setting) only works if the Zotero Item Keys are explicit in your MD notes. These take the form of zotero://select/library/items/ABCD1234
, where ABCD1234
is a key that's generated under the hood by Zotero that you can't modify. The links in your MD notes use the BBT keys zotero://select/items/@mycitekey
, so you'll need to provide a BBT JSON, which the plugin uses to map mycitekey
to ABCD1234
.
Have you tried exporting your library as a BBT JSON file?
from zotero-markdb-connect.
There is a feature I could add, but it would only work if
(1) you have turned the hidden BBT setting autoPinDelay on
OR
(2) all of the BBT citekeys in your MD notes are 'pinned' in Zotero.
When you pin a citekey, BBT add the citekey to the Extras field of the Zotero item, so I could potentially extract them from a Zotero search.
I recommend you try exporting your library as a BetterBibTex JSON
, since it's pretty straight forward, but if (1) or (2) is true for you, and I can also look into adding the Extras field search as a feature.
from zotero-markdb-connect.
@WMAM I added this v0.0.8. Update the addons (Tools -> Add-ons -> Check for Updates
) and see if the Find the BBT citekey in the Extra field
option works for you.
from zotero-markdb-connect.
@daeh Following your suggestions ... After updating to version 0.8, I tried these two options:
-
Pinning the citekeys in Zotero: it didn't work for me (setting the hidden autoPinDelay option to 2 seconds). Maybe I did not configure it correctly, but the citekeys appeared to be pinned in Zotero.
-
I generated the BBT.json library, without removing the BBT.bib library (both active and auto-updated). If I only work with the BBT.json library, the obsidian.citation plugin doesn't work. This way your plugin works perfectly!
Thanks a lot!
from zotero-markdb-connect.
@WMAM So things are working for you now?
yes, for Option # 2, obsidian-citation needs the .bib export and this this plugin needs the .json, so you'll need both of those files.
If you're up for it, I'm curious why Option # 1 (pinning the citekeys) didn't work for you, so if you have a moment, please post the text in the Zotero Extra
field of @nimmoDielsAlderClick2011
and @lindenmeyerSelfhealingBehaviourFuran2020
so I can look into it.
Thanks
from zotero-markdb-connect.
Hi @daeh !
Sorry for being late with this... I have just tried the first option following these steps:
- Deleted these two notes from the vault and sync (just to untag them)
- Deleted the json library
- Mannually pinned the citekey In Zotero (the pin icon appeared and the citekey in the Extra field)
- Modified the setup of your plugin to activate the first option
- Syncronized
... and it worked!
from zotero-markdb-connect.
I can work on this a little more if you want some other test.
I don't know why yesterday night it didn't work... may be now I have mannually pinned these citekeys?
from zotero-markdb-connect.
I forgot to mention that the rest of the notes (not manually pinned), were untagged from the Zotero DB
from zotero-markdb-connect.
That's good to know! It sounds like the autoPin option isn't doing the same thing as manually pinning the citekeys. Only if you have the time, could you copy the text from the "Extra" field of a Zotero item that isn't manually pinned and paste it here (i.e one of the items that had the tag removed when you switched to Option 1)? I'm guessing that's the source of the issue.
from zotero-markdb-connect.
Yes, of course... but, I had deactivated the autoPinDelay from the hidden preferences...
Let me try to manually unpin these two items and reactivate the autoPinDelay
from zotero-markdb-connect.
only if it's easy -- no need to go out of your way, but it might be informative if I can see the Extra field text.
So it sounds like you can either stick with option 2 (using both the .bib and the .json), or manually pin your citekeys and use option 1. Seems like either way works for you, so it's just up to your preference.
from zotero-markdb-connect.
Don't worry, I already did it!
- Manually unpinned these citekeys and untagged them
- Set the autoPinDelay to 4, and forced to update the library
... and nothing appears on the Extra field, even after closing Zotero.
I am suspecting there is something missing to auto update the pins
from zotero-markdb-connect.
ok. that's very informative, thank you. I'll assume things are working for you now but let me know if you have any more issues.
from zotero-markdb-connect.
Sorry for disturbing you, but maybe this is relevant for you
I restored the .json library, the preferences to option #2, and synchronized (forgot to reset the autoPinDelay)... SURPRISE, I am now looking that all items with the ObsCite tag active have the citekey pinned and included in the Extra field!
from zotero-markdb-connect.
Good to know! I was suspicious that BBT was waiting for the item to be modified in order to update the Extra field. I bet that if you now switch back to option 1, the Citation Key:
data will stay in the Extra field and when you add new items to Zotero, BBT will immediately add Citation Key:
to the new items. So you might not need the .json from here on out.
from zotero-markdb-connect.
@daeh yes, you are right. I was just playing around and 4 seconds after a new item has been added, the citekey is pinned.
For items already in the Zotero library, once something is modified (a letter in any field or even a note is added to the item), the corresponding citekey is automatically pinned.
Yes, I will work with option #1.
BTW, it is interesting to be able to open a MD note from Zotero... Thanks!
from zotero-markdb-connect.
yep, thanks for confirming. #6 should be available soon.
from zotero-markdb-connect.
fyi @WMAM , v0.0.9 has a contextual item to open the MD notes in obsidian. You can update from Zotero's Add-on menu
from zotero-markdb-connect.
Related Issues (20)
- I can't open choose ,please help me HOT 13
- Cannot match regex if the citekey contains ":" which is translated into "_" by obsidian HOT 2
- 0 matches after upgrade to 0.0.21 HOT 3
- how to close this window? HOT 3
- Invalid tag name, containing an "/" HOT 5
- MarkDB does not recognize YAML citekey enclosed in quotation marks HOT 5
- Group Library HOT 1
- MarkDB does not recognize YAML citekey HOT 5
- Support for multiple citekeys HOT 2
- "Show Markdown File" - Linux compatibility HOT 1
- Add link to .md file in respective Zotero item HOT 4
- feature request HOT 4
- Failed to configure RegEx HOT 3
- Citekey match fails with escape characters in filename HOT 20
- Add support for Zotero 7 HOT 16
- syncing error HOT 3
- markdb-connect won't add the required tag HOT 3
- Obsidian links don't work since the last update. HOT 2
- Allow "#" character in tag. HOT 1
- Allow "#" character in tag. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zotero-markdb-connect.