There's nothing to say against building the database like that, with the possibility to link a model to more than one book. But you have to keep in mind that the most likely situation will be that someone adds an already existing model as a new one so you will have a double entry in the model-table both linked to a different book. So you should think about an easy way to merge two (or more) models to a single entry in the database, an action that probably can only be done by hand, because there might be different data-fields entered in those two models (f.e. a different categorisation/tagging, one model missing the starting size, etc.).denori wrote:Alexandre's idea for the optimal solution is indeed the ideal way to do it. (...) It is impossible for any individual to know if a model is the same as one already published and the idea was to allow anyone to add to the database. So this had to be dropped.
So I would suggest to make the database structure for unique models linked to multiple books, with an easy interface to merge double-entries.
When linking the models to multiple books you should also remember that this linking also has to include if there are diagrams or CP for that model in the book. Because for the same model there might be CP only in one book but full diagrams in another.
(When talking about all this with words I really learn to appreciate the easiness of database diagrams
Hmmm... these values don't appear in the search results though, and the only way I found to get to them was to click on "Modify?" in the results.denori wrote:Starting shape of the paper is already in the database and I added cuts, glue and number of pieces at the request of users on the list, so I think that they should stay.
That brings me to a point that definitely needs to be improved: Crosslinking between creators/models/books etc. For example when you are at a creator you can't switch to a book to see what other models are in there. Likewise you can't see details of the models.
A way to fix that would be to allow the "number of pieces"-field to have on the one hand numbers as value but also the value "modular". Or make a separate field for modular yes/no.denori wrote:There is an outstanding problem with number of pieces in that many modulars can be assembled with differing numbers of pieces and there is currently no way for the database to support this.