Coder Social home page Coder Social logo

Comments (3)

jlegewie avatar jlegewie commented on July 17, 2024

I am not working on zotfile right now but will add this option next time. Until then you can just add

if (!Zotero.ZotFile.prefs.getBoolPref("autoRenameIfMultipleAttachments")) if(parent.getAttachments().length>1) continue;

To the notify function in the autoRename object right after the line var parent = Zotero.Items.get(id_parent);. I have already added the option autoRenameIfMultipleAttachments to 2.2.4, which is now under review. I haven't tested this but I think it should work when you set autoRenameIfMultipleAttachments to false in about:config.

from zotfile.

wuffi avatar wuffi commented on July 17, 2024

It might also be insteresting to consider an renaming pattern for all additional attachment after the first one. The use case I have in mind is adding an article from a scientific journal having supplemental data. The first file which is attached is usually the original article. After having added the article itself, a user might want to add supplemental information/data. The supplements could be renamed to something like $usual_renaming_pattern$_supp. If there are several supplements a nice solution would be to name same with ascending numbers, i.e. $usual_renaming_pattern$_supp1, _supp2 etc.

from zotfile.

jlegewie avatar jlegewie commented on July 17, 2024

mronkko, this has been fixed in the current dev version. You now have four options for automatic renaming: Never, Always ask, Only ask if item has other atts, Always rename. The 'asking' uses a clickable, non-disruptive window that appears in the bottom right corner (same as previous info window but clickable).

Wuffi, I don't see how this can be done automatically because not all additional attachments are supplements. But open another ticket if you have a proposal.

from zotfile.

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.