ChenglongMa / zoplicate

A plugin that does one thing only: Detect and manage duplicate items in Zotero.
https://chenglongma.com/zoplicate/
GNU Affero General Public License v3.0
388 stars 2 forks source link

REQ: auto-merge if data is identical or if only specific fields are mismatched #112

Open huachuman opened 1 week ago

huachuman commented 1 week ago

For example, if items have identical metadata, auto-merge. Or merge all items whose only mismatched fields that are different are the date, URL, accessed date, language, rights, etc. (to be set in settings).

ChenglongMa commented 1 week ago

Hi @huachuman,

Thanks for your suggestion!

To better understand your idea, please advise me on how to process the duplicates in the following scenario:

For example,

  1. In the setting window, I set mismatched fields: URL, language;
  2. Items A and B have different field values: authors, URL, issues;
  3. I set keep Item A in the dialogue;

Then, what are the expected results?

Thank you so much!

Best, Chenglong

huachuman commented 1 week ago

edit: this is a bit confusing. to be more specific, the use case is as follows:

In a library, there are several duplicate items that are almost identical. I want to decide which fields I don't care about. For those items that are identical other than the fields I don't care about, the choice is arbitrary. Whether you choose item a or b makes no difference. make sense?

I'm not sure about the exact implementation in the dialog box as my original idea is about a bulk/auto-merge with no dialog. The idea is to avoid having to do this manually so I'm not sure the dialog would come into play.

ChenglongMa commented 1 week ago

Ah, I got you. If "important" differences (like author) exist in certain key fields, you prefer manually handling duplicates. However, if the differences are minor and not significant (like URL), these duplicates can be automatically merged without much concern.

Did I understand correctly?

Thanks!

huachuman commented 1 week ago

I think so, yes. My apologies I have edited my post many times to try to be clearer/work this out for myself.

ChenglongMa commented 1 week ago

No worries! Thanks for your detailed explanation. It's my first time to see a "live" comment 😂.

I will try to implement this idea in the next version.

Thanks!

huachuman commented 1 week ago

Yes I saw your edits live too! Brilliant, github is.

That is absolutely amazing to hear. I am not an advanced developer but if you need help along the way I will do what I can.

ChenglongMa commented 1 week ago

Sure, @huachuman! Thank you so much for your help. I'll let you know if I need your further advice :) Really appreciate it.