[GeoNetwork-devel] [GeoNetwork opensource Developer website] #862: Widgets / Restore search state

#862: Widgets / Restore search state
-------------------------+--------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
     Type: enhancement | Status: new
Priority: major | Milestone: v2.7.0
Component: General | Version:
Keywords: |
-------------------------+--------------------------------------------------
Currently only some URL parameters (eg. any=corine) could be used to
populate the search form on application startup. Instead of that, it's
better to make the search form stateful and use Ext.state.Provider to be
able to restore the state of the application.

In order to be able to restore search state create a !SearchFormPanel
widget.

State must be saved:
  * on search
  * on reset

State consists of saving:
  * all search form fields values (including spatial filter)
  * search status (triggered or not)

This state could be use with a !GeoExt permalink provider to display
current search permalink:
{{{
             // set a permalink provider
             permalinkProvider = new
GeoExt.state.PermalinkProvider({encodeType: false});
             Ext.state.Manager.setProvider(permalinkProvider);
             // update link when state chnages
             var onStatechange = function(provider) {
                 var l = provider.getLink();
                 Ext.get("permalink").update("<a href=" + l + ">" + l +
"</a>");
             };
             permalinkProvider.on({statechange: onStatechange});

}}}

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/862&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#862: Widgets / Restore search state
--------------------------+-------------------------------------------------
  Reporter: fxp | Owner: geonetwork-devel@…
      Type: enhancement | Status: closed
  Priority: major | Milestone: v2.7.0
Component: General | Version:
Resolution: fixed | Keywords:
--------------------------+-------------------------------------------------
Changes (by fxp):

  * status: new => closed
  * resolution: => fixed

Comment:

Committed revision 9092.
Committed revision 9093.

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/862#comment:1&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.