"Where we go on click a term:" add option to also go to list of subterms of that term, rather than list of nodes

stevepowell - April 28, 2008 - 10:37
Project:Taxonomy VTN
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:AlexisWilke
Status:active
Description

hi, great module - but under the setting "Where we go on click a term:" I would expect to see also the possibility to go to a vtn listing for that term, i.e. displaying child terms if there are any, rather than nodes. The display could be just the same as for taxonomy/vocabulary/x. This would seem to be the logical setting for deeper vocabularies with subnodes, sub-subnodes etc.

#1

tomaszx - April 28, 2008 - 11:51
Status:active» postponed

Hi,

I think that, better way is use synonyms to term
i try implement exactly idea like is in real book (only we should choice a vocabulary)
then we see terms and synonyms and is possible to go to nodes for this terms or synonyms

Ok, i'm opened for ideas but better choice is show me the code for your think.
I don't have much time to implement all user ideas.

I live this issue opened because maybe i future this be implemented :)

thanks for issue.

// If you want have a voc->term->term child->node
// use category module i think that this able to do your think.

#2

Ingumsky - February 6, 2009 - 17:17
Version:6.x-1.0-beta3» 6.x-1.1
Assigned to:Anonymous» Ingumsky
Status:postponed» active

Hi! And thank you for the module!
It's really very good one already but... any chance of getting tree view for this module? It would be absolutely great to see its display changeable from plain to tree or (more wanted by me) wiki-like "mixed" tree with childs and pages separated at the same parent page (eg http://en.wikipedia.org/wiki/Category:Content_management_systems). It would be very appreciated.
Thanks in advance!

PS I've changed issue status but ff to postpone it again.

#3

AlexisWilke - February 10, 2009 - 07:48

Ingumsky,

This is assigned to you now... Does that mean you are going to propose a patch? If not, you should not assign the issue to yourself.

I think this is an interesting concept. I guess the top index should only show root items, and any other would show children if any and nodes. Does that sound like what you have in mind?

Thank you.
Alexis Wilke

#4

Ingumsky - February 14, 2009 - 17:38
Assigned to:Ingumsky» Anonymous

AlexisWilke

>> This is assigned to you now... Does that mean you are going to propose a patch? If not, you should not assign the issue to yourself.
Yep, it was a bad idea. Sorry, Alexis. I'm still rookie not pro so there's no real chance to see me updating a patch...

>> I think this is an interesting concept. I guess the top index should only show root items, and any other would show children if any and nodes. Does that sound like what you have in mind?
Yes, absolutely. This is what Wikipedia categories provide and what I wanna get. I can see the way to realize that but I can't move 'cause I'm not a programmer — just a terp.

#5

AlexisWilke - June 16, 2009 - 08:44
Assigned to:Anonymous» AlexisWilke

Okay, this is now available. You have a flag in your taxonomies to turn on in order to get the function to work.

Then you will get a nice breadcrumb and everything looks just great.

Note that all the pages are still available, this is just in addition. So if you have links to the old pages, your site will still work.

Thank you.
Alexis Wilke

#6

AlexisWilke - June 16, 2009 - 08:44
Status:active» fixed

And even marking this fixed now! 8-)

#7

System Message - June 30, 2009 - 08:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#8

Ingumsky - July 17, 2009 - 00:12
Category:feature request» support request
Status:closed» active

I've tried brand new 6.x-1.3 and found out that the function doesn't work properly. I have a taxonomy tree География (Geography, id=2). I enabled the checkboxes "parent/child links" and "show parent in a child links" with desire to see wikicategory-like pages for the voc. After that I cleared the cache. Now:
1. The link from voc index (http://www.liverbird.ru/taxonomy_vtn) to the voc page is http://www.liverbird.ru/taxonomy_vtn/voc/2/0/1 not http://www.liverbird.ru/taxonomy_vtn/voc/2
2. There're some terms missing here (all started from first letters of cyrillic alphbet - А, Б, В).
3. Node/term counters wrapped in brackets show wrong numbers (see Ирландия (Ireland) http://www.liverbird.ru/taxonomy_vtn/voc/2/43/1 - there's six child terms not just one!)
4. There's no nodes on the pages — terms only (http://www.liverbird.ru/taxonomy_vtn/voc/2/43/1 with a lot of nodes tagged with "Ирландия" we can see only its child terms).

Am I missing something? Please give me an advice. Thank you!

#9

AlexisWilke - July 17, 2009 - 07:43

Ingumsky,

The "show parent in child links" gives you a link to the list of nodes for that term (which kind of would solve the problem pointed out in #4). Last time I tested it worked for me... let's see... Yes, still working here:

      http://linux.m2osw.com/taxonomy_vtn/voc/1/241/1

And on your site, I see Ирландия in that list:

      http://www.liverbird.ru/taxonomy_vtn/voc/2/43/1

which is about Ирландия.

This is the page about "operating system" and you see it in the list with 59 nodes. If you click on it, it will show you the nodes for "operating system". Yet, from the root, clicking on that term would not show you the nodes.

Point 3. counters... good point, the number shown is the number of nodes, not the number of children terms... I guess it would make sense to have the number of terms when the term shown is a parent... but if you want point 4 at the same time, we may have to show two numbers... (# of children/# of nodes)

The qualified link:

      http://www.liverbird.ru/taxonomy_vtn/voc/2/0/1

will only show root terms for vocabulary #2. To see children terms, put 10 at the end as in:

      http://www.liverbird.ru/taxonomy_vtn/voc/2/0/10

The link modification (i.e. with voc/2/0/1) is because you are asking for parent/child browsing. And to me it seemed logical to do it that way from the root. I guess we could have yet another flag to define the root link... (that's makes the setup look more and more complicated!) Or instead of a flag, a depth from 0 (i.e. use just voc/2) to 10 (i.e. use voc/2/0/10). That way would work nicely since you could choose the level for the root index.

Let me know whether that makes sense.

Thank you.
Alexis Wilke

#10

Ingumsky - July 17, 2009 - 09:32

Thank you for response!

Maybe I wasn't clear with the idea so I'll try to explain in two steps — what I expected and what I have.
Expectations:
1. My idea was to see all (and only) top-level terms in root with possibility to run through child terms level by level.
ex: http://en.wikipedia.org/wiki/Category:Footballers_in_England_by_club
2. There would be child terms (if any) and nodes (if any) at the same time on every term page.
NB: only nodes tagged by this term itself and only its child terms of next level!
ex: http://en.wikipedia.org/wiki/Category:Liverpool_F.C._players

Current situation:
1. The link from master index to voc index was modified to satisfy my needs expressed with "parent/child links" checkbox.
ex: http://www.liverbird.ru/taxonomy_vtn
2. Now I have discovered why some terms (primarily started with А, Б or В (first three letters of cyrillic alphabet) were missing. Tax VTN thinks that those terms are empty. I enabled "show empty" checkbox and they are visible now.
ex: http://www.liverbird.ru/taxonomy_vtn/voc/2/0/1
3. There're two types of links for terms - the first one for childless terms (/taxonomy_vtn/term/338) and the second for those with children (/taxonomy_vtn/voc/2/49/1)
4. Counters show irrelevant numbers — some terms are even 'empty' as I've mentioned above. But I have no idea why they are 'empty'. There's huge hierarchy and 575 nodes tagged by "Великобритания" (Great Britain, /taxonomy_vtn/voc/2/73/1) but it's 'empty'. Term 'Ирландия' (Ireland, /taxonomy_vtn/voc/2/43/1) has 6 children and 23 nodes attached to itself but its counter set on '1'. Term 'Словакия' (Slovakia, /taxonomy_vtn/voc/2/67/1) has 1 child and 1 node but counted as '2' and so on... I think there's a bug but I cannot catch it.
5. And now about term pages. All pages with /taxonomy_vtn/term/term_id link (see above) work fine. They have no children so you can see nodes.
ex: http://www.liverbird.ru/taxonomy_vtn/term/338
6. Every page with /taxonomy_vtn/term/voc_id/term_id/depth(?) link (see above), i.e page for term with children look strange:
ex: http://www.liverbird.ru/taxonomy_vtn/voc/2/73/1
6.1 There's a list of sub-terms and one of them is parent term itself (/taxonomy_vtn/term/term_id/term_id) refering to list of nodes. So while browsing "Great Britain" page you can find not only child terms like "Northern Ireland" or "Scotland" but 'term' "Great Britain".
6.2 Counters for child terms show irrelevant numbers (see 4), counter for fake 'child' works fine.
6.3 Term page has title 'Terms in voc_name' not 'Nodes in term_name' or 'Terms in term_name'.
7. There's almost identical behaviour on my local machine (test installation) and on production site mentioned in examples.

And here some questions:
1. Is that behaviour described at 'Current situation' is normal and planned by design?
2. If so is it possible to meet my 'Expectations' in future?
3. Are there any solution or workaround to fix 4? How can I help to find it?

Thank you for your patience and sorry for my English.

#11

AlexisWilke - July 17, 2009 - 09:44
Version:6.x-1.1» 6.x-1.x-dev

Ingumsky,

You have an excellent English in comparison to my Russia... 8-)

Point 2 & 4 of the "current situation" are bugs and they need to be fixed. (Note: Point 2 of the current situation and Point 1 of your expectations are the same problem.)

Point 2 of your Expectations is doable. You have to realize that there are two functions: one to show a list of terms and another to show a list of nodes. What you are asking is to merge them both in some ways. For this I have a question:

Do you want a list of child terms, then a list of nodes, or do you want both mixed together as if it were one list?

Now if you can program in PHP, I'll welcome your help on point 4. At this time it is "only" counting nodes. What we need is to count nodes & child terms and also we need to make sure (and that's probably one of the bugs) that the counting does not take the parent/child in account. (I would be surprised that it does, but I'm not 100% sure.)

Thank you.
Alexis Wilke

#12

Ingumsky - July 17, 2009 - 10:36

Spasibo, Alexis ;)

>> Point 2 & 4 of the "current situation" are bugs and they need to be fixed. (Note: Point 2 of the current situation and Point 1 of your expectations are the same problem.)
I think that cs.p2 & cs.p4 are representing the same bug with counter but I cannot put cs.p2 and e.p1 in touch with each other. Why do you think it's the same issue?

>> Point 2 of your Expectations is doable. You have to realize that there are two functions: one to show a list of terms and another to show a list of nodes. What you are asking is to merge them both in some ways. For this I have a question:
>> Do you want a list of child terms, then a list of nodes, or do you want both mixed together as if it were one list?
Yep, sure I know that. I think separate lists for child terms and nodes would be more useful for end-users.

>> Now if you can program in PHP, I'll welcome your help on point 4. At this time it is "only" counting nodes. What we need is to count nodes & child terms and also we need to make sure (and that's probably one of the bugs) that the counting does not take the parent/child in account. (I would be surprised that it does, but I'm not 100% sure.)
I used to program in Perl but some years have passed since. I'm not quite sure I can program in PHP but I've already written some simple modules for my site. So at least I know something about drupal structure, can read the code and look for bottle necks and some issues in algorithms. And of course I can test the code on my machine.

Thank you!
Ivan.

#13

AlexisWilke - July 17, 2009 - 16:48

cs.p2, as you mentioned, is "fixed" with the use of "show empty". Terms should not be considered empty if they have children and we are in parent/child mode.

e.p1 is not showing all the root terms because the module only check whether they have nodes, not whether they have nodes or children terms.

That should be easy to fix and will include the count of terms for the parenthesis.

Thank you.
Alexis

#14

Ingumsky - July 17, 2009 - 19:13

>> cs.p2, as you mentioned, is "fixed" with the use of "show empty". Terms should not be considered empty if they have children and we are in parent/child mode.
OK. Now I see why you have said they are the same.

>> e.p1 is not showing all the root terms because the module only check whether they have nodes, not whether they have nodes or children terms.
Hmmm. If so this checking fails because my 'empty' terms have and childs and nodes.

Thank you, Alexis.

#15

AlexisWilke - July 18, 2009 - 08:39

Okay, I checked in a new version.

1) Added code to count the number of term children

2) Fixed an "optimization" that would skip the counting of the number of nodes in case we have term children

3) Added the # of terms in the parenthesis as in: (# terms/# nodes). So for instance you may see (3/7) after a term.

4) Added one more stat with the total number of children terms since it was very easy.

You should see a Jul 18 version at some point. That should have these changes. Let me know if it works for you as expected.

Thank you.
Alexis

#16

Ingumsky - July 18, 2009 - 13:16

Thank you, Alexis!

It definitely works with either "show empty" option disabled or enabled. Nodes and terms are counted as they should be.
The only issue is in statistics at the bottom of the page:
"references to children" has incorrect value - there are 3 children counted when actually there should be at least 4 (number of child terms at next level) of them, sometimes there just one child term counted with 5 terms of next level (and all deeper ones) unnoticed.
"references to nodes" counter works perfectly.

Ivan.

#17

AlexisWilke - July 18, 2009 - 19:10

Ivan,

Good. 8-)

I have noticed that if you had the "Show parent in children's list" then the counter would be 1 off for any parent that has a child.

I removed the term counter if there isn't any (0/3) -> (3)

I added support for the nodes to appear after the terms, see "Show parent nodes after the terms if any" in the taxonomy settings.

Let me know whether anything else is missing. There should be a newer version soon, I'm afraid the date will remain the same. The size should change, however... the current size is 65.67 KB. Once the newest changes are in, it should be different (a little higher).

Thank you.
Alexis

#18

Ingumsky - July 20, 2009 - 19:48

Thank you, Alexis!

It's fantastic work! Yes, it really is! It works as it should!
So there's only one problem now — and it's with "references to children" counter (see #16).
And I think there's some design issues with the Tax VTN term page — title of the page should be modified to reflect nodes+children mode enabled (now it's "Nodes of term ..."), initial letters and header for nodes section should be added.

Thank you very much!
Ivan.

#19

AlexisWilke - July 26, 2009 - 21:44

Ivan,

For the counters, do you show synonyms? If so, then the count would be wrong because there is only 1 term and 4 synonyms... If you don't show synonyms, then that's not the problem.

Thank you.
Alexis

#20

Ingumsky - August 9, 2009 - 16:16

>> For the counters, do you show synonyms? If so, then the count would be wrong because there is only 1 term and 4 synonyms... If you don't show synonyms, then that's not the problem.
Yep, "show synonyms' option is enabled. But actually I have no synonyms at all.

Thank you,
Ivan.

 
 

Drupal is a registered trademark of Dries Buytaert.