Replies: 3 comments 2 replies
-
Some questions:
And probably we want to have so 'generated_root_collection' to be created (as described in #390):
If so we'll need to add new collection_type 'generated_root'? Or this generated root should never be actually persisted?
I believe we'll need to add 'uncollected_works' collection type as well?
So... Am I understand correctly, that Authority's root collection should only contain other collections, where authority is either involved in whole collection or in individual items. I wonder if there could be situation when same work is included in different collections? So in this case we in TOC we'll have something like:
?
Ok, sure I'll help with this. But I'd propose not to invest much into a caching now. Let's concentrate on implementing functionality first, and optimize/introduce caches later. Actually... It could turn out that such collection generation will not be so heavy so maybe we can avoid storing root collection in DB at all, and only cache generated HTML layout...
For now I'd propose to add button somewhere to authority show page to pregenerate root collection.
This existing markdown parsing could be a complex stuff... Worst case is when there are works by different authors in same collection. So for each author it will create own copy of collection... Perhaps we can think about this later, when new TOC mechanics will be ready.
Well... Implementing this co-existance should not be a big problem. E.g. if author has 'root collection' we render it, if not - render legacy TOC. Another approach to speed it up I can imagine is to not create complex UI in a web app (which has to be removed), but make this grouping of uncollected works in some external tool, e.g. in Excel, and then feed CSV file to some script which will create collections and groups items from it. |
Beta Was this translation helpful? Give feedback.
-
And additional question regarding root collection (if we'll decide to use persisted root collections). Let's suppose we have an author who writes original Hebrew works as well as translates other authors to Hebrew. I wonder if we should create TWO root collections for this author, one for original works and one for translated works? So in first collection we'll have person specified as author, and in second as translator? And if we have an author who e.g. written an article in Russian and then translated it to Hebrew himself, then perhaps this article should get into both collections. Another option, is to use single collection, and specify writer both as author and translator, but we should always remember, that for root collections roles does not apply to each included work/sub-collection. It simply means that among all works person player role of author and translator (and possibly editor, illustrator, etc). Another option is to not specify and roles on root collection at all. We know that this collection is associated with an authority via authorities.root_collection_id. |
Beta Was this translation helpful? Give feedback.
-
Answers:
|
Beta Was this translation helpful? Give feedback.
-
Generation
I have come to realize that basing authority tables of contents on iterating through a root_collection is a less robust approach: it requires a manual step of associating collections with an authority's root collection, and that quickly becomes a hassle when inputting heterogeneous works.
Instead, I am thinking of a hybrid solution:
1. a preface, afterword, etc. by authority X for a volume primarily by authority Y.
2. an item in a completely heterogenous volume (an anthology, a periodical issue, etc.).
Initial migration from current (manual markdown ToCs)
Beta Was this translation helpful? Give feedback.
All reactions