I need to create structure [taxonomy_term] Author -> [taxonomy_term] Book -> [node] Quote.
I already have the following structure: [taxonomy_term] "Author name and Book name" -> [node] "Quote". Now I want to split vocabulary "Author name and Book name" into 2 different vocabularies: "Author" and "Book" and link them to each other and to node type "Quote" to get the following hierarchy:
- Author [taxonomy_term]
- Book [taxonomy_term]
- Quote [node]
- Quote [node]
- Book [taxonomy_term]
- Quote [node]
- Quote [node]
- Book [taxonomy_term]
I can create this hierarchy using Entity reference, but I don't know how to achieve the following.
On node (Quote) creation user should be able to:
- choose existing "Author" term and existing "Book" term that belongs to this Author (conditional select);
- choose existing "Author" term and create new "Book" term (and link this book to "Author" term);
- create new "Author" and "Book" terms (using taxonomy autocomplete widget) and link them to each other.
Is there any way to achieve this using existing Drupal modules?
Please note: I need to use 2 different vocabularies for authors and books. I know that it would be much easier to use 1 vocabulary and parent-child hierarchy of terms, but that is not suitable in my case.