I could surely find the contribution and then, the queryModel.
It is like :

<queryModel name="byCoverageNavQueryModel" docType="QueryNav">
      <max>10</max>
      <whereClause>

        <predicate parameter="dc:coverage" operator="STARTSWITH">
          <field schema="querynav" name="coverage" />
        </predicate>

      </whereClause>

      <sortColumn>
        <field schema="advanced_search" name="sortColumn" />
      </sortColumn>

      <sortAscending>
        <field schema="advanced_search" name="sortAscending" />
      </sortAscending>

    </queryModel>

But it is just not enough for me.
I can change the operator, trying "STARTSWITH", "LIKE", or even "=", but the 
result is not satisfying.
To be precise, the fact is that I have a two-level dictionnary 
Category/subcategory, similarly to "Subjects (topics / subtopics)". A document 
can have several values of subcategories, just as a core document can have 
several subtopics : Art/painting, Art/literature ...

The specific point is that, in my plugin, some different categories can have 
the same subcategory.

For example, subcategory Lucene belongs both to Category Java, and Category PHP.

The behaviour I need for the navigation plugin is that, by clicking on "Lucene" 
(from tree Java / Lucene), I can ALSO see documents having value PHP/Lucene.

I don't know if it is cristal clear, but the final word is that I definitely 
need to know which java classfile deals with querying about path values (by 
covergae, path = continent + country ; by subjects, path = topic + subtopic), 
in order to customize it.

Thank you all

-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Olivier Grisel
Envoyé : lundi 15 septembre 2008 14:47
À : [email protected]
Cc : [EMAIL PROTECTED]
Objet : Re: [Ecm] Plugin VirtualNavigation : which query is processed ?

[EMAIL PROTECTED] a écrit :
> Hello,
>
> I am using the plugin nuxeo-platform-virtualnavigation-5.2.jar, and need to 
> customize it : I need to have control on the query that is processed when you 
> click, for example on "Europe" / "Italy".
>
> The source code of the plugin holds only two java classes, but they only seem 
> to handle appearance.
> There is also the file tree_explorer_with_virtual_nav.xhtml that includes  
> single_directory_tree_explorer.xhtml (injecting var treeModel).
> In the latter file, I see that when the user click on "Europe" / "France", 
> the action thrown is via a commandLink button that raises action 
> "node.selectNode()".
>
> My investigations have stopped here, I cannot find where the source code 
> dealing with the query processed is.

This is handled by a stateful query model on dublincore fields such as coverage
(if I remember correctly). The configuration of the contribution to the
DirectoryTreeManager extension point should give you the name of the QueryModel
used to build the query and then you can find it's definition contributed to the
QueryModel extension point in some OSGI-INF/ folder (either directly in the
nuxeo-platform-virtualnavigation project or in one the default nuxeo project
such as webapp-core).

--
Olivier

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to