Add item URI to CSV export
Hello,
Is it possible to add a field in the CSV export which contains the corresponding URI for each item (for instance zotero://select/library/items/AU34DFCZ) ?
I assume we have to modify the file CSV.js in the folder translators/ but I don't how exactly.
Thanks
---
Related posts:
- https://forums.zotero.org/discussion/91170/add-zotero-uri-to-ris-export
- https://forums.zotero.org/discussion/73893/zotero-select-for-collections
- https://forums.zotero.org/discussion/comment/370804/#Comment_370804
Is it possible to add a field in the CSV export which contains the corresponding URI for each item (for instance zotero://select/library/items/AU34DFCZ) ?
I assume we have to modify the file CSV.js in the folder translators/ but I don't how exactly.
Thanks
---
Related posts:
- https://forums.zotero.org/discussion/91170/add-zotero-uri-to-ris-export
- https://forums.zotero.org/discussion/73893/zotero-select-for-collections
- https://forums.zotero.org/discussion/comment/370804/#Comment_370804
zotero://select/library/items/WE6PTGIK selects an item in the local library and
https://www.zotero.org/users/2433/items/WE6PTGIK
is a unique global identifier that identifies the item together with its library (the 2433 in this case is my userID; yours is 4629042) and will generally link to the item in the online library, though it's principally an identifier, not a locator, so I don't think that's guaranteed to be super stable.
Since the item key (the last part of both of these) is part of the CSV, these can be trivially generated in Excel (simply by concating), which, unless you are using this in some frequent, automated workflow, is going to be easier than modifying the CSV.js export translator (though that isn't super hard either).
Is that sufficient for your purposes?
Since I only use Zotero on my computer I just want to access to the local link and so I just need the item key (which I didn't notice it was the first field in the CSV export!).
So it's perfect thank you!
A last question to be sure: these unique id (here WE6PTGIK) won't change if I export/import my Zotero library right? I need to insure the correspondance between my Obsidian notes and the Zotero bibliography, so I put in my notes the select link (zotero://select/library/items/WE6PTGIK). I think it is better than putting the citation key of the article, which can be modified later, isn't it?
Thank you again!