Le 26 janv. 2011 à 13:25, Tibor Simko a écrit :

> On Wed, 26 Jan 2011, Johnny Mariéthoz wrote:
>> when the virtual collections are displayed with their children, the
>> children are "real" collections instead of "virtual".

Sorry, I should say regular instead of real.

> 
> This is actually by design.  The lhs part of the collection tree is
> always composed of `real' children, and the rhs part of the `virtual'
> children, regardless of virtuality of the parent collection.  This is so
> that you can have a setup where a virtual collection will have both real
> and virtual children, if need be.
> 
> Here is one (someone artificial) use case.  Say you are in the
> collection `University Books' that looks like this:
> 
>   Narrow by:                 Focus on:
> 
>   [ ] Books                  Dept A books, Dept B books
>   [ ] Proceedings
> 
> After clicking on Dept A books, you can have:
> 
>   Narrow by:                 Focus on:
> 
>   [ ] Dept A manuscripts     IT books, Physics books
>   [ ] Dept A textbooks
>   [ ] Dept A ebooks 
> 
> In this case, Dept A ebooks is a regular child, and IT books is a
> virtual child, of the virtual Dept A books collection.
> 
> Does this describe what you had in mind, or were you thinking of another
> setup?

Yes, but in your example you don't display the children.

Ok consider this setup and put the variable 
CFG_WEBSEARCH_NARROW_SEARCH_SHOW_GRANDSONS = 1, with the actual code I should 
obtain:

  Narrow by:                 Focus on:

  [ ] Books                  Dept A books
                                      Dept A manuscript, Dept A textbooks, Dept 
A ebooks
  [ ] Proceedings          Dept B books

after the patch I obtain:

  Narrow by:                 Focus on:

  [ ] Books                  Dept A books, Dept B books
                                      IT books, Physics books
  [ ] Proceedings


Is it clear? What is the right result?

Regards.

> 
> Best regards
> -- 
> Tibor Simko

----------------------------------------------------------------------
Johnny Mariéthoz
RERO, Av. de la Gare 45, CH - 1920 MARTIGNY
Téléphone:  +41(0)27 721 8579
Fax              : +41(0)27 721 8586
Web            : http://www.rero.ch
ReroDoc    : http://doc.rero.ch, [email protected]
----------------------------------------------------------------------


Reply via email to