@Bertrand - good suggestion on asking the user. I guess the same can apply for 3 as well. Case 3 is where you do not have the book on any lists already, but you go ahead and right-click on one to try to "move" it to a list. I could just disable the menui item in this case, or I could prompt asking if you want to cancel or go ahead and just add to the target list.
@beckywc - the problem is that the plugin will not know without guidance which list you are wanting to move the book from - since the menu is only specifying a target. I don't want to turn this into a monstrously complex thing for people to use. I think prompting will be the way to go - if it finds that you have two source lists, it displays both for you to choose from (like the User Category plugin).
|