GeoNetwork.util.SearchFormTools¶
Example Use¶
SearchFormTools help to quickly create simple or advanced form or any GeoNetwork default search fields.
searchForm = new Ext.FormPanel({
items : GeoNetwork.SearchFormTools.getAdvancedFormFields(catalogue.services),
...
TODO : Add distributed search
Public Methods¶
Public methods.
- SearchFormTools.getAbstractField()¶
Returns: An abstract field Create an abstract field
- SearchFormTools.getAdvancedFormFields()¶
Parameters: services – Optional GeoNetwork services URL used for OpenSearch suggestion URL. If not defined, no suggestion fields. Returns: A GeoNetwork advanced form Create a advanced form
- SearchFormTools.getAdvancedTextFields()¶
Returns: A fieldset with advanced text search Create fieldset with extra search on text (or, exact, all, without searches)
- SearchFormTools.getCatalogueField()¶
Returns: Create a combo for catalogue field
- SearchFormTools.getCategoryField()¶
Returns: A category combobox Create category combo
- SearchFormTools.getFullTextField()¶
Returns: A full text search text field Create full text search field
- SearchFormTools.getGroupField()¶
Returns: A group combo Create a combo for group field
- SearchFormTools.getKeywordsField()¶
Returns: A keyword field Create keyword field
- SearchFormTools.getMapTypesField()¶
Returns: A map type options
- SearchFormTools.getMetadataDateField()¶
Returns: Metadata date extent fields Create metadata date extent fields and register DateVtype if needed.
- SearchFormTools.getMetadataTypeField()¶
Returns: A metadata type combo Create a combo with template or metadata options
- SearchFormTools.getNearYouButton()¶
Parameters: geomFieldId – String Field id to update on click Returns: A button Create a button which update the associated text field with the coordinate compute by the browser.
- SearchFormTools.getOptions()¶
- :param : Object config:
- hitsPerPage: List of options for hits per page field
- withLanguage: With language filter field. Default is false.
Returns: An options fieldset Create option fields
- SearchFormTools.getOrgNameField()¶
Returns: A organisation name search field Create organisation name search field
- SearchFormTools.getRelationField()¶
Returns: A combo with geom relations Create geometry relation field
- SearchFormTools.getRequestedLanguageCombo()¶
Return a combo box with languages
- SearchFormTools.getScaleDenominatorField()¶
Returns: a multi slider fields to search on scale Parameters: disabled – boolean to enable or disable the field by default. Create a multi slider fields to search on scale using denominatorFrom and denominatorTo form parameter.
- SearchFormTools.getSimilarityField()¶
Returns: A similarity radio group Create similarity field
- SearchFormTools.getSimpleFormFields()¶
Parameters: services – Optional GeoNetwork services URL used for OpenSearch suggestion URL. If not defined, no suggestion fields. Returns: A GeoNetwork simple form Create a simple form
- SearchFormTools.getSimpleMap()¶
Parameters: - layers – An array of layers to be added to the map.
- mapOptions – OpenLayers map options.
- activeMapControlExtent – Turn on map extent criteria. Default is false.
- panelConfig – MapPanel configuration options.
- withRelation – Add spatial relation combobox. Default is false.
Returns: An array of component with a hidden geometry field and a simple map.
Create simple map search field.
TODO : Add more options ? See GeometryMapField
- SearchFormTools.getSortByCombo()¶
Parameters: defaultValue – Default value for sorting. Default is relevance. Return a combo box with sort options
- SearchFormTools.getSortByStore()¶
Return an ArrayStore of sort options
- SearchFormTools.getSpatialRepresentationTypeField()¶
Parameters: codeList – Array of values Returns: Spatial representation types combo box Spatial representation type is based on gmd:spatialRepresentationType/gmd:MD_SpatialRepresentationTypeCode/@codeListValue ISO19115 codelist. Applying such a filter will not return non ISO records.
- SearchFormTools.getStatusField()¶
Returns: Status field
- SearchFormTools.getTemporalExtentField()¶
Returns: Temporal extent fields Create temporal extent fields and register DateVtype if needed.
- SearchFormTools.getTextField()¶
Parameters: - name – String Text field name
- fieldLabel – String Text field label
Returns: a text field
Create text field
- SearchFormTools.getTitleField()¶
Returns: A title field Create a title search field
- SearchFormTools.getTypesField()¶
Returns: Type selection using combo box based on hierarchy level values.
- SearchFormTools.getValidField()¶
Returns: Validation status field
- SearchFormTools.registerDateVtype()¶
Returns: Boolean Register a new VTypes for date range in order to link a start and end date Date field and control value range.



