mduplouy / silex-cops

A port of COPS (Calibre OPDS PHP Server) under Silex micro framework
24 stars 9 forks source link

Add hierarchical tags view #36

Open alllexx88 opened 7 years ago

alllexx88 commented 7 years ago

Not sure how hard it is to implement this. Library I'm working on has a pretty detailed hierarchical books classification, and I've generated 268 respective hierarchical tags if this kind:

...
Mathematics
Mathematics.Algebra
Mathematics.Algebra.Abstract algebra
Mathematics.Algebra.Algebra textbooks
Mathematics.Algebra.Algebraic geometry
Mathematics.Algebra.Algebraic geometry.EGA-SGA
Mathematics.Algebra.Category theory
Mathematics.Algebra.Combinatorics
Mathematics.Algebra.Computational algebra
Mathematics.Algebra.Differential algebra
Mathematics.Algebra.Group theory
Mathematics.Algebra.Homology
Mathematics.Algebra.Linear algebra
Mathematics.Algebra.Mathematical logic
Mathematics.Algebra.Quantum groups
Mathematics.Algebra.Representation theory
Mathematics.Algebra.Set theory
Mathematics.Biography, history
Mathematics.Calculus
Mathematics.Calculus.Advanced calculus
Mathematics.Calculus.Asymptotics, perturbations
Mathematics.Calculus.Complex variable
Mathematics.Calculus.Continued fractions
Mathematics.Calculus.Differential equations
Mathematics.Calculus.Differential equations.Brauer,Nohel
Mathematics.Calculus.Elementary calculus textbooks
Mathematics.Calculus.Elementary calculus textbooks.Problems
Mathematics.Calculus.Functional analysis
Mathematics.Calculus.Special functions
Mathematics.Calculus.Tensor calculus, forms
Mathematics.Calculus.Variational calculus
...

I'm not 100% sure, but looks like hierarchical tags view isn't implemented, right? It would be a great asset to have it then. Thanks!

mduplouy commented 7 years ago

Not easy and above all, not part of the calibre structure as you guessed it

but i guess i can make something about it :+1:

alllexx88 commented 7 years ago

It's actually part of calibre 😃 And no need to change the db scheme. See here: http://blog.calibre-ebook.com/2011/10/calibres-tag-browser.html You can enable hierarchical view of tags in form 'Tag.subtag.subsubtag' in calibre. I meant to say that such a representation isn't implemented in silex.cops. And please take your time: it's a handy asset (with so many tags in the lib), but it can wait for as long as needed

mduplouy commented 7 years ago

wow, never seen this :smile_cat:

alllexx88 commented 7 years ago

it's well hidden, but I intentionally searched for something like this :D

mduplouy commented 7 years ago

I need to think about this, but I like the feature :smile:

mduplouy commented 7 years ago

i'm gonna push this also on the mysql branch :)