View Single Post
Old 05-17-2016, 08:28 AM   #854
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Terisa de morgan View Post
Hi,

I've got a question. I'm trying to upload tags from my calibre library to shelves. Looking at the code, it looks like, if you map a shelf to more than a tag (or tag-like column) value, all the tags should be applied to the book so it's added to the shelf. Is there any way to change this? I mean, I would like to add a book to a shelf if ANY of the tags is applied to id? I can change the code, that's right, , but I would like to know it I'm missing something.
You are reading the code correctly. To add a book to a shelf on Goodreads, the book has to have all the tags associated with shelf. This isn't a section of the plugin I've looked at before. I think the logic is that if you create all the tags when syncing from the shelf, needing all the tags when adding to the shelf makes sense.

But, I if you use a tag hierarchy, (SciFi, SciFi.Mil, SciFi.SpaceOpera, SciFi.Thriller, etc) you might want to map these back to a simpler shelf structure in Goodreads. So they are all on "SciFi".

Is there a need for an option for "all tags" vs "any tag"? I can't think of how to phrase the option. If you, or someone else, can come up with it, then I'll add it.
davidfor is offline   Reply With Quote