wileyyugioh / zotmoov Goto Github PK
View Code? Open in Web Editor NEWZotero plugin to automatically move attachments and link them
License: GNU General Public License v3.0
Zotero plugin to automatically move attachments and link them
License: GNU General Public License v3.0
would you add a feature that can move the pdf attachments to the "folder" and link them.
the feature will allow exporting attachments of items in the Zotero Library or selected collection as files organized in "folders". The exported attachments (files) will be organized in "folders" which reflect the hierarchical structure of the selected Zotero Library/Collections.
For example, a reference is in "My Library/A/B", and "move the pdf attachments and link them" will move the PDF to "zotero home directory/A/B" folder, and link it.
this maybe is helpful. https://github.com/retorquere/zotero-file-hierarchy
thank you
One of the more useful features Zotfile offers for large PDF libraries is the ability to sort files into alphabetic subfolders. The collections option within Zotero doesn't exactly accomplish this and, as noted, runs the risk of creating duplicate locations. Would it be possible to get something similar with this plugin?
Not sure how to use github to report this, but on line 95 of zotmoove.js it says:
clone.setField('title', PathUtils.filename(clone.attachmentPath));
However, I believe it should be
clone.setField('title', PathUtils.filename(final_path));
because final_path is a full path that PathUtils can work with, but clone.attachmentPath is not. Move was not working for me until I made this change for myself.
I tested creating subfolders with the name of the citation key and observed the following:
--> I imagine that other subfolder naming conventions will also not reflect the changes in Zotero, making the system somewhat unreliable.
--> zotmoov follows the renaming of linked files (if renamed in Zotero, the linked file -- HTML and PDF -- is also updated. So this is reliable.
For the time being, it seems best to work without subfolders and manually link files individually to keep snapshots alive in Zotero.
Thanks!
Thanks for this life-saving plugin when the ZotFile
/Zotero-File
is not available in Zotero 7.
I am thinking if you have time to implement the following behavior like ZotFile
does:
Move the PDF attachment into the subfolder relative to the root path specified in the settings.
For example, I set the location for the PDF files as /pdf/root/path
in the settings of this plugin, and I have one item added in the Course-ELEC5110
subfolder in Zotero. Both ZotFile
and Zotero-File
can move the PDF file into /pdf/root/path/Course-ELEC5110
. However, this plugin moves the PDF file into /pdf/root/path
instead.
Thank you.
希望作者可以添加batch move的功能. 目前虽然可以使用batch move点击操作, 但似乎无法真正执行. 只有移动单个文件的时候, 文件移动才会真正执行.
当彻底删除文件(回收站中永久删除)后,附件仍然保留在链接的文件夹中,日积月累zotero中看不到“死链”文件会越来越多,建议回收站中彻底删除后,文件夹中对应的文件和目录也彻底删除,谢谢!
Hi, I am not sure whether following function can be added:
add another move option to the right click manual:
- allows user to choose the folder where he wants to store the file.
Note: I understand that this option exists in the setting window, but adding this to the right click manual make it more intuitive when saving files, especially when he wants to save some files to some special pathes. (if the workload is high, then just ignore this suggestion.)
Zotero7最新版,插件最新beta版,设置为“新增时自动移动附件”并且File behavior 设置为MOVE,当新增一个Stored Files(此时软件开始将该文件上传到zotero服务器),同时,插件将Stored Files移动到靶目录并修改为Linked Files。于是本地和云端形成冲突,会跳出一个对话框问你保存本地还是云端。。
经过测试,先关闭软件自动同步功能,再添加文件,等插件移动完了再开启同步就不会有冲突问题,但这样就非常不方便,一旦添加很多文件,后面忘了开同步就会漏同步,建议插件增加一个移动前自动暂停同步,移动后再开启自动同步的功能,谢谢!
正好需要,有一个zotero插件开发团队微信群,茉莉花的作者也在里面,有兴趣加入吗?
When saving link from the chrome connector, the associated pdf is not moved to the destination folder automatically.
Also, when I mannually move, the link name is not set to the same as the file name (after auto renaming).
Zotmoov works efficiently on personal libraries (default My Library on Zotero), but I cannot manage to move files automatically for group libraries. Is this a known missing functionality?
Thanks a lot
When converting a linked file back to Zotero and deleting the file in the external folder as well, the subfolder is not deleted and stays empty in the folder for linked files.
--> When converting a linked file to a file stored in Zotero, deleting the originally linked file in a subfolder, the subfolder should be deleted as well if empty.
Thank you!
I am not sure if it already exists, I can't find it... Maybe I am just blind.
It would be nice if the files would automatically be moved instead of having to do it manually, just like Zotfile did.
Zotmoov works great. However, there is uncertainty about which attachments are stored and which are not. And I think I would only like to have PDFs stored outside of Zotero.
The background is that the Zotero parent item can hold notes and other files with additional information. Some entries only have snapshots (HTML).
Zotmoov does not seem to export and link the notes, but it exports and links HTML files and snapshots besides PDFs. I would like to have these in Zotero; only PDFs that follow the naming convention for PDFs in Zotero should be exported.
Also, I think epubs can be read in Zotero now; I am not yet bothered about them, but they might be treated like PDFs as well.
When marking multiple entries to create linked files from stored files, snapshots (HTML) are also exported and linked.
(1) When testing zotmoov, after linking files of entries, I used the Tools > Manage Attachments > Convert Linked Files to Stored Files
command, which works well with PDFs and restores them in Zotero storage. However, snapshots (HTML files of a web page) are restored in a first step but immediately re-linked with file name addition 1
. I have to stop Zotmoov, manually return the file, and rename it to get snapshots back.
(2) When linking snapshots, Zotero cannot check that they are snapshots (and cannot give them their icon), so I never get the snapshot icon back for these items.
(3) I would rather have snapshots kept in Zotero storage than linked together with PDFs. My last issue (#16) is with the above behavior in mind.
Thank you very much for your work!
When I attach a PDF for a item or import an item from web such as ScienceDirect with attachment, could this plugin move and link file automatically?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.