[GeoNetwork-users] customising geonetwork

Hello all,
we are using geonetwork 2.6.1 and i would like customise the geontwrok
interface.
How can i change the place of the layer tree (toctree) , print, legend
panel to put them on the right (east) of the map instead of the left
place (west).

Toctree is defined in ol_map.js in the object accordion. When i change
the region to east of the viewport object , nothing change

viewport = new Ext.Panel({
            layout: 'border',
            border: false,
            renderTo:'map_container',
            items: [{
                    region: 'center',
                    layout: 'fit',
                    frame: false,
                    border: false,
                    margins: '0 0 0 0',
                    items: [mapPanel]
                },
    {
                    region: 'east',
                    xtype: 'panel',
                    collapsible: true,
                    collapseMode: "mini",
                    split:true,
                    border: false,
                    width:200,
                    minSize: 200,
                    maxSize: 300,
                    layout: 'border',
                    items: [accordion, legendPanel]
                }

            ]
        });

I misunderstood something ?

Help will be appreciated , thank you.

Hi

The javascript files used in GeoNetwork are the minified versions located in
web\geonetwork\scripts\lib.

To get your change working, you need download GeoNetwork source code, modify
the file web\src\main\webapp\scripts\ol_map.js and rebuild the minified
javascript files executing mvn install in the web folder.

The minified files are located in the folder
web\src\main\webapp\scripts\lib. Copy them to the folder
web\geonetwork\scripts\lib in your GeoNetwork installation and the change
you did in ol_map.js file should be available.

Regards,
Jose García

On Thu, Dec 9, 2010 at 8:49 PM, silst <stephane.lii@anonymised.com>wrote:

Hello all,
we are using geonetwork 2.6.1 and i would like customise the geontwrok
interface.
How can i change the place of the layer tree (toctree) , print, legend
panel to put them on the right (east) of the map instead of the left
place (west).

Toctree is defined in ol_map.js in the object accordion. When i change
the region to east of the viewport object , nothing change

viewport = new Ext.Panel({
           layout: 'border',
           border: false,
           renderTo:'map_container',
           items: [{
                   region: 'center',
                   layout: 'fit',
                   frame: false,
                   border: false,
                   margins: '0 0 0 0',
                   items: [mapPanel]
               },
               {
                   region: 'east',
                   xtype: 'panel',
                   collapsible: true,
                   collapseMode: "mini",
                   split:true,
                   border: false,
                   width:200,
                   minSize: 200,
                   maxSize: 300,
                   layout: 'border',
                   items: [accordion, legendPanel]
               }

           ]
       });

I misunderstood something ?

Help will be appreciated , thank you.

------------------------------------------------------------------------------
_______________________________________________
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

Ok Jose,
it works now, thank you.

On jeu., 2010-12-09 at 21:25 +0100, jose garcia wrote:

Hi

The javascript files used in GeoNetwork are the minified versions
located in web\geonetwork\scripts\lib.

To get your change working, you need download GeoNetwork source code,
modify the file web\src\main\webapp\scripts\ol_map.js and rebuild the
minified javascript files executing mvn install in the web folder.

The minified files are located in the folder web\src\main\webapp
\scripts\lib. Copy them to the folder web\geonetwork\scripts\lib in
your GeoNetwork installation and the change you did in ol_map.js file
should be available.

Regards,
Jose García

On Thu, Dec 9, 2010 at 8:49 PM, silst
<stephane.lii@anonymised.com> wrote:
        Hello all,
        we are using geonetwork 2.6.1 and i would like customise the
        geontwrok
        interface.
        How can i change the place of the layer tree (toctree) ,
        print, legend
        panel to put them on the right (east) of the map instead of
        the left
        place (west).
        
        Toctree is defined in ol_map.js in the object accordion. When
        i change
        the region to east of the viewport object , nothing change
        
        viewport = new Ext.Panel({
                   layout: 'border',
                   border: false,
                   renderTo:'map_container',
                   items: [{
                           region: 'center',
                           layout: 'fit',
                           frame: false,
                           border: false,
                           margins: '0 0 0 0',
                           items: [mapPanel]
                       },
                       {
                           region: 'east',
                           xtype: 'panel',
                           collapsible: true,
                           collapseMode: "mini",
                           split:true,
                           border: false,
                           width:200,
                           minSize: 200,
                           maxSize: 300,
                           layout: 'border',
                           items: [accordion, legendPanel]
                       }
        
                   ]
               });
        
        I misunderstood something ?
        
        Help will be appreciated , thank you.
        
        ------------------------------------------------------------------------------
        _______________________________________________
        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

hello everybody,
One more question,
is it possible to put a WMS layer in the map display when editing a
metadata ?
Like the ol_minimap and the map defined in config_gui.xml ?
there is tags in config-gui.xml :
<metadata>
   <width>100%</width>
   <height>300px</height>
</metadata>
Can we put tags inside as :
<layers>
    <layer server="http://www.tefenua.gov.pf/geowebcache/service/wms&quot;
tocName="Fond" params="{layers: 'FondCached', format: 'image/jpeg'}"
options="{isBaseLayer: true}" />
</layers>

thank you .