[GeoNetwork-users] advanced search and group option

Hello all,

I think there is a mistake on the advanced search option concerning the
group option on the release 2.2.

When we select a group we want to display the metadata owned by a specific
group, isn't it ?

The parameters is named group on the form and on the LuceneSearcher.java The
group parameters do not refer to the group owner of the metadata but to the
group of the connected user.

In fact it look like a confusion between group and groupowner on the lucene
query parameters.

Here the proposal correction to be able to query metadata owned by a
specific group :

lucene.xsl :
line 228 add
<!-- F Bachraty Update lucene query to manage groupowner parameters-->
  <xsl:for-each select="/request/groupowner">
    <BooleanClause required="true" prohibited="false">
      <TermQuery fld="_groupOwner" txt="{string(.)}"/>
    </BooleanClause>
  </xsl:for-each>
<!-- F Bachraty Update lucene query to manage groupowner parameters-->

LuceneSearcher.java
line 204 add
//F Bachraty update the group selection parameter to search distinct group
owner
if ( request.getChildText("group") != null )
  request.addContent(new
Element("groupowner").setText(request.getChildText("group")));
//F Bachraty update the group selection parameter to search distinct group
owner

Best Regards,
Fabien Bachraty
--
View this message in context: http://www.nabble.com/advanced-search-and-group-option-tp17667132p17667132.html
Sent from the geonetwork-users mailing list archive at Nabble.com.