[GeoNetwork-users] separate search view and results view

Hi !
Would anyone know what I'd need to do to separate the search view from the
results view ?
I'd like my GN to open on a large search page. When the results are
returned, these would be on a separate page as well.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/separate-search-view-and-results-view-tp5891493p5891493.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hello,

2011/1/5 timothee.becker <timothee.becker@anonymised.com>:

Hi !
Would anyone know what I'd need to do to separate the search view from the
results view ?

You'll have to look into main-page.xsl and related JS. You could send
search criteria to the main.search service (which only present
results).

Another option is to create your own search GUI based on the widget
sandbox See http://trac.osgeo.org/geonetwork/wiki/proposals/componentsBasedGui

HTH.

Francois

I'd like my GN to open on a large search page. When the results are
returned, these would be on a separate page as well.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/separate-search-view-and-results-view-tp5891493p5891493.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Thank you François,
I'm having a little trouble finding how to change main-page.xsl. I guess I
need to find the place in the xsl that calls the content of the "results
column". Would you have any further advice ?
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/separate-search-view-and-results-view-tp5891493p5906205.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

OK,
I've managed part of it but now I seem to be stuck.
Up to now, what I have done is removed all items from the "right column". I
was not able to cleanly remove everything related to the "right column".
When I did, or when I thought I did, I got the following error:
"uncaught exception: No center region defined in BorderLayout ext-comp-1006"
So what I did was to comment out
- title: '<xsl:value-of select="/root/gui/strings/mapViewer"/>',
- items: [mapViewport]
- contentEl :'content',
Any suggestions how to do this more cleanly ?

NOW, TRYING TO GENERATE A SEPARATE RESULTS PAGE,
(that is, still keeping the banner and main menu)
By simplifying, I see a search calls runSimpleSearch() in gn_search.js
This then calls gn_search(pars), which in turn calls a strange function,
getGNServiceURL(‘main.search.embedded’)

Is this correct ?

What happens after that ? I don't get it.
I saw that in geonetwork.js, there is the following code:

var getGNServiceURL = function(service) {
  return Env.locService+"/"+service; };

Can anyone help ?
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/separate-search-view-and-results-view-tp5891493p5907221.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hey,
Here's a reply Heikki Doeleman gave me personally:
...

hi Timothee,

I think the main difficulty is in that when you search in GeoNetwork, the
switch from search form to search results is not an actual page change (as
you can see by the browser's "back" button which does not work). Instead,
the request is sent using Ajax; so when the search results come back, you
need to handle it in the Ajax response handler (gn_search.js javascript
file).

So to achieve what you want you need to fiddle around with that. In Ajax
response handler to search request, use Javascript to programmatically hide
the parts of the page you do not want to display with the search results;
and let's say you have a menu or so, to go back to the home page / search
form page, use Javascript in its onclick() to hide the search results and
re-display the parts you want to see.

Is this more or less clear ?
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/separate-search-view-and-results-view-tp5891493p5914384.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.