[GeoNetwork-users] How to add a new criteria in search geonetwork 2.2.0

Hi,

I try to add a new criteria in simple search, I need to know what files must
modify. I've been searching on internet and modify the next files:

I've add to the lucene.xsl
    
in the searchform_simple_template.xsl
                                   
In the gn_search.xsl

function runSimpleSearch()
{
  preparePresent();

  var pars = "any=" + encodeURIComponent($('any') .value);
  pars+= "&any2=" + encodeURIComponent($('any2'.value));
  var region = $('region').value;
  if(region!="")
  {
    pars += "&"+im_mm_getURLselectedbbox();
    pars += fetchParam('relation');
    pars += "&attrset=geo";
        
    if(region!="userdefined")
    {
      pars += fetchParam('region');
    }
  }
  pars += fetchParam('sortBy');
  pars += fetchParam('hitsPerPage');
  pars += fetchParam('output');
  
  // Load results via AJAX
  gn_search(pars);
}
    
In the strings.xml
- Any2 -
Que es?
que

In the folder src/org/fao/geonet/services/util/MainUtil.java

.addContent(new Element(Geonet.SearchResult.ANY2) .setText(""))
Element elAny2 = elData.getChild(Geonet.SearchResult.ANY2);
String sAny2 = request.getChildText(Geonet.SearchResult.ANY2);
if (sAny2 != null) elAny2.setText(sAny2);

In the file src/org/fao/geonet/constants/Geonet.java

public static final String ANY2 = "any2";

Please Anybody can tell me what more i must modify

Thank you!!!
--
View this message in context: http://n2.nabble.com/How-to-add-a-new-criteria-in-search-geonetwork-2.2.0-tp2468676p2468676.html
Sent from the geonetwork-users mailing list archive at Nabble.com.