ZotFile - Advanced PDF management for Zotero
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
This discussion has been closed.
I had another feature request for the zotfile plugin. Perhaps this is also as easy to implement as the renaming of patents.
It would be nice, if one could also rename pdf's which are already attached to a zotero item according the given rules: If I click the zotfile button on a pdf file already attached to a zotero item, the renaming of this pdf file should go according the naming convention given.
This would be nice for me, to rename the plenty of not correctly renamend pdf's in my zotero lib ;-).
Thanks.
regarding SiGi's two posts, here are two recent threads on PDF renaming and patent dates.
I will add an option to the plugin which makes it possible to use Zotero's rename convention so that zotfile works better with the new child file attachment renaming.
here some examples for priority information:
From espacenet it look like: US20070620011 20070104 or like EP20070122030 20071130 (the first part is the country code (EP) followed by the application number, the second part corresponds to the date of priority YYYYMMDD). This priority information is put into the priority number field by the zotero espacenet translator.
Most zotero translators do not fill the zotero priority number field . You have to complete it by hand.
I fill this field in this kind "priority date-priority number", e.g. 20071130-EP-20070122030.
So it is a bit difficult to automatically extract the priority year out of the zotero priority number field.
As you can see in the previous post, there are discussion concerning the "dates of patents". Perhaps the translators and the zotero patent item fields will change in future.
Therefore I recommend to evaluate the "date" field, which has to be set by hand, as a second year information.
http://www.columbia.edu/~jpl2136/ZotFile_103b.xpi
Let me know whether it works...
it works fine. And special thanks to your fast feature implementation.
As I know, there exists 3 different solutions on automatically renaming pdf's meanwhile. (Sure with sligthly different features). Your zotfile plugin, the zotero 2.0b5 rename feature (as mentionned by Dan in this post) and a plugin called zoteRename http://www.tc.umn.edu/~kjamison/zoterename/. Perhaps all the ideas and further work could be bundeled to form the best solution for the users.
Smith and Johnson - 2008 - Title or
Smith et al - 2008 - Title
Zotfile names
Smith-2008-Title
I find this to be much more consistent and space-efficient across a large library of PDFs.
But for me the in-zotero renaming feature would be also very attractive, also the multiple renaming of pdf's (as it is integrated in zotero 2.0b5). But the best way would be for me, when this could be done following the same rules as I set in the zotfile preferences.
http://www.columbia.edu/~jpl2136/zotfile.html
I haven't thoroughly tested it. So let me know when it doesn't work...
Volume#.issue# - Author - Title
This would make it possible for me to sort through the (several hundred) PDFs easily outside of Zotero (as I export/backup the PDFs in multiple locations for several colleagues to access) - the date itself is not enough because there may be 4-5 issues each year. While this would narrow down the list to "1993," for example, it would still leave in some cases up to a hundred PDFs that are all from issues in 1993.
I don't know if this would be too much extra work, but I figured I'd never know if I didn't ask!
%v is the volume # and %e the issue
http://www.columbia.edu/~jpl2136/ZotFile_104b.xpi
The way I'm using it, and it's working great, is %v_%e - %a - %t . It gives the following result, for example:
56_2 - Newkirk - The Dogma of Transformation
Great stuff, and thanks for the modification!
1) %v for journal volume and %e for journal issue
2) Using the ZotFile Rename Function for other Zotero Features
I have added a short description to the webpage which allows you to use zotfile's renaming function for other zotero features such as the zotero 2.0b5 child file attachment renaming (it might also work with the zoteroRename plugin but I am not sure about that). This is something SiGi and others mentioned in earlier posts.
http://www.columbia.edu/~jpl2136/zotfile.html
First, once again, I'd like to thank you for writing and supporting zotfile, which, for me, turns a very useful application into a killer one.
May I make a small request, please? At present, if one runs zotfile on an entry to which a file has already been attached by zotfile, then the original attachment is automatically overwritten by the new one. This is inconvenient. Sometimes one wants to attach two files to the same entry (e.g. different versions of a paper). Moreover, if one runs zotfile by mistake on the wrong entry, then the original attachment is overwritten and lost for good.
So, I wonder, could the plugin be modified, please, so that it checks to see if an attachment with the target name already exists, and, if one does, gives the user the option to choose between overwriting it or using a different name for the new attachment (e.g. appending a "2" at the end).
If that could be done fairly easily, then I think it would be a very useful feature.
Thanks again!
I like zotfile's rename function and prefer its rules to those of the new zotero functions. However, there is one niggle, concerning editors' names.
At present, zotfile omits editors' names from filenames. In the case of book sections, this is fine, of course -- one just wants the author's name. But in the case of edited books, I'd prefer to include the name of the editor or editors. Otherwise, the filename comes out as _year_name.pdf.
Would it be possible, please, to add a setting to allow the user to choose to include editors' names when renaming whole books (but not book sections)? Again, I think it would be a useful feature.
I hope you don't mind my making these requests. They reflect how much I use your plugin and how useful I find it.
The remane function of Zotero is somewhat configurable. At present you are able to select: Author, Year and Title
You'll find more options here:
http://forums.zotero.org/discussion/2160/is-there-any-automatic-renaming/ and
http://forums.zotero.org/discussion/7918/attachmentrenameformatstring/
It seems, that if you ask for a criteria in the second link, it might be included in a newer version.
'{%c - }{%y - }{%t{50}}'
to
'{%c_}{%y_}{%t{50}}'
in the hidden pref in about:config
but the attachment issue I understand - I never use links so I wasn't aware of that.
thanks for this great tool. I have one problem: zotfile deletes existing pdfs not only when I add a second pdf to an existing item, but also, when I add a pdf to an item that has the same renaming name as an existing item. This is currently the case with two items that I have where a book comes in two volumes. Author, year and title of the book are the same. Only the subtitle is different (this is not very unusual, thing of collected works of authors. What happens now is when I add a pdf with zotfile to both items, zotfile deletes the first, since it has the same name that zotfile is giving. It would be nice if zotfile could somehow detect that these are two different items and attach both of them.
I fixed the disappearing icon, I think. I sent the fixed version to Joscha, so hopefully you'll hear more of him soon.
here is a new version:
http://www.columbia.edu/~jpl2136/zotfile.html
It includes two improvements:
1) Instead of overwriting existing files with the same name, Zotfile adds an index starting at 2 to the filename if the file already exists in the destination folder. This allows you to add more than one attachment to a zotero item with zotfile and solves the problem described by migugg.
2) Thanks to RoelofOomen, the bug with the disappearing icon was fixed.
Sorry Keith, no editor name for books so far...
Any special things I should do regarding the upgrade?
Any suggestions how to debug?
Let's see if Joscha has a solution, and otherwise I might look into it next week.
Icon: Any thought on adding zotfile to the new attachment menu and removing the separate icon (which would require two clicks to start zotfile)?