Thread: K5 JBPatch
View Single Post
Old 09-03-2012, 06:57 AM   #636
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677559
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Patch to modify collection count behavior

Here is another small patch.

The purpose of this one may not be immediately obvious, so... let's start with the description:

"This patch modifies the way that the collection content is counted and displayed on the home screen. This is only relevant if you are using nested collections. If this patch is enabled, the total number of items reachable from a collection (and its subcollections) is displayed. If it is disabled, only the items directly contained in a collection are counted."

If you still have doubts about what the point of all this is:

It's all about nested collections. If you don't use nested collections, there is nothing to worry about. But if you do, consider the following sample layout:

Code:
Classics
+- English
 + British
  - Doyle: The Adventures of Sherlock Holmes 
  - Doyle: The Hound of the Baskervilles
 + American
  - Twain: Adventures of Huckleberry Finn
+ German
 - Goethe: Faust - Erster und zweiter Teil
 - Schiller: Die Räuber
 + Kafka
  - Die Verwandlung
  - Der Prozeß
  - Amerika
+ Russian
 + Dostoyewsky:
  - The Brothers Karamazov
  - Crime and Punishment
  - The Idiot
 + Tolstoy
  - War And Peace
The "Classics" collection contains 3 subcollections - which is the number that is shown without the patch enabled. However, it effectively allows to access 12 books - which is the number shown when the patch is enabled. Similarly, the "German" entry will show "5" instead of "3", etc.

Download here.


PS: Yes, it may have become apparent from the above list -- I am a huge Kafka fan. If you ever wondered what "kafkaesque" means, just start reading! (Originals in German). Fortunately, all of these books are freely available without any Digital Restrictions Management.

Last edited by ixtab; 09-03-2012 at 10:13 AM.
ixtab is offline   Reply With Quote