audiobookshelf icon indicating copy to clipboard operation
audiobookshelf copied to clipboard

[Enhancement]: Add instead of overwrite in bulk editor

Open wazabees opened this issue 2 years ago • 5 comments

Describe the feature/enhancement

Would it be possible to have an option to add, instead of replace for the bulk editor? For instance, if I select a few books to bulk/mass edit and enter a tag, all existing tags will be replaced with the one new tag.

wazabees avatar Jul 20 '22 16:07 wazabees

I'm not sure about this because I don't know what the UI would look like. I think the workaround for this shouldn't be too bad, batch editing the items that already have the same tag.

advplyr avatar Jul 20 '22 21:07 advplyr

I think the idea is for example with genre or tags, if you want to add a tag or genre without losing the existing info. So if I have 10 unrelated books with tags, and I want to add a tag to all of them without losing the tags that each already has, I can't use bulk.

hobesman avatar Jul 28 '22 13:07 hobesman

That was my understanding as well, I'm just not sure how the UI would look like for that so it is clear to the user

advplyr avatar Jul 28 '22 15:07 advplyr

Maybe an append button and an information overlay that if it's un-ticked, the data filled in the form will overwrite existing data?

I suck at mockups, but hey. Untitled

wazabees avatar Jul 28 '22 15:07 wazabees

The problem is you wouldn't be appending a subtitle or a publish year. It wouldn't make sense to go next to "Explicit" either.

advplyr avatar Jul 29 '22 23:07 advplyr

A mark to Append/Replace should go next to, or in place of, the checkmark. Maybe a toggle switch that if toggled to the left will "Replace", or to the right will "Append".

Maybe there can be a small text box above the toggle switch that denotes which one is toggled for that field,

chyron8472 avatar Dec 13 '22 20:12 chyron8472

I think another option would be: tick to the left is off/append (then if the text box is empty it appends nothing) and tick to the right is overwrite. That way the toggle could replace the check box altogether.

Then again I like the intuitiveness of having an on/off control and a separate append/overwrite control. So maybe check's for on/off and toggles for append/replace.

hobesman avatar Dec 13 '22 20:12 hobesman

Or maybe add a second div next to 'map details'. It could look something like this (Include only the fields that can contain multiple items) image

gvarph avatar Dec 13 '22 20:12 gvarph

Hmm. What if there's something for Author in both divs? How should it be handled? Seems redundant. But I think the multi-div idea could have merit.

Another idea: Maybe one master toggle "Append/Replace" at the top, and certain fields drop away/grey out if set to Append.

hobesman avatar Dec 13 '22 20:12 hobesman

append_details

advplyr avatar Dec 13 '22 22:12 advplyr

Added in v2.2.9

advplyr avatar Dec 18 '22 22:12 advplyr