A. KBS Styling is achieved through modification of three files (1) main.xsl, (2) main-page.xsl, and (3) geonetwork.css.
Files: \geonetwork\web\geonetwork\xsl\main.xsl
\geonetwork\web\geonetwork\xsl\main-page.xsl
\geonetwork\web\geonetwork\geonetwork.css
· 1) main.xsl – @ line 18 added ‘openIntermap’ function call to the onLoad event of the page (see CSS Map Legend Problem in section C.3.)
· 1) main.xsl replaced first table section with new
section.
· 1) main.xsl – @ line 22 added a fixed-width to the body element (960 pixels).
· 2) main-page.xsl – @ line 42 two new lines are inserted to handle PNG images.
· 2) main-page.xsl – @ line 281, “fillMeWithIntermap”, add ‘width: 700px;’.
· 3) geonetwork.css – beginning @ line 11 under General, the ‘body’ and ‘table’ sections were modified, and a section named ‘container’ added in between the ‘body’ and ‘table’ sections.
#container {
position: relative;
padding: 0;
width: 100%;
text-align: center;
· 3) @ line 35, new line inserted ‘position: relative;’.
· 3) @ line 36, a bracket ‘}’ was added.
· 3) geonetwork.css – @ end of General, a new section named ‘clear’ was added.
.clear {
clear: both;
· 3) geonetwork.css – beginning @ line 103 under Banner, a completely new container div replaces the old section.
· 3) geonetwork.css – @ line 215 the color of the main page background was changed from white (#fff) to light blue (#e7edf5).
· 3) geonetwork.css – @ line 219 the color of the Edit Metadata page background was changed from white (#fff) to light blue (#e7edf5).
· 3) geonetwork.css – @ line 240 the color of the left-hand navigation panel for Edit Metadata was changed from blue (#266397) to white (#ffffff).
· 3) geonetwork.css – @ section ‘resultList’ (line 779), the line ‘width: 100%;’ is added to end of section.
· 3) geonetwork.css – @ section ‘leftcolumn’ (line 787) the line ‘border-right: 1px solid #2a628f;’ is deleted.
· 3) geonetwork.css – @ line 788 the section ‘leftcolumn.padded-content’ is added.
3) geonetwork.css – under section content @ lines 215 and 219, set background to white (from #e7edf5 to #fff)
B. Modification of files under the directory \geonetwork\web\geoserver\
1. The configuration of GeoServer is kept in ‘services.xml’. However, all of these changes are made through the GeoServer Administrative interface, so there is no need to modify this file directly. Instructions for doing so are found under the main section titled “Configuration of GeoServer 2.0.1.
File: \geonetwork\data\geoserver_data\services.xml
2. The Map Services added to GeoServer make changes to the file “catalog.xml”. There is no need to modify this file directly as services are added through the GeoServer Administrative interface. Instructions for doing so are found under the main section titled “Configuration of GeoServer 2.0.1.
File: \geonetwork\web\geoserver\data\catalog.xml.
3. The style for drawing the Kansas boundary (white boundary) is defined and added through the GeoServer Administrative interface, under Styles. Instructions for doing so are found under the main section titled “Configuration of GeoServer 2.0.1.
C. Modification of files under the directory \geonetwork\web\intermap\
1. Modify intermap configuration file.
File: \geonetwork\web\intermap\WEB-INF\config.xml.
· At line 9 you can change the location of the data directory. Unnecessary when GeoNetwork is installed on D drive.
· At line 10 increase maxUploadSize to 1000.
2. Made an entry for the Kansas boundary Map Service.
File: \geonetwork\web\intermap\WEB-INF\mapServers.xml
· Beginning at line 69, an entry for the Kansas boundary Map Service that is available through the internal map server is inserted.
3. CSS Map Legend Problem
File: \geonetwork\web\intermap\scripts\im_integration.js
· Delete lines 154 through 161. Delete new line 157.
File: \geonetwork\web\intermap\scripts\intermap-embedded.css
File: \geonetwork\web\intermap\inter-embedded.css file location in v 2.4
· Delete ‘Verdana’ in line 13; change font-size to 10pt in line 14; insert new at line 18 ‘text-align: center;’.
· Under #fillMeWithIntermap, insert two new lines before 50, ‘position: relative;’ and ‘z-index: 0;’
· Under #im_layers, insert two new lines before 464, ‘position: relative;’ and ‘z-index: 11;’.
File: \geonetwork\web\intermap\scripts\im_bigmap.js
· Changed initial width and height of window from w=368 h=276 to w=450 h=300.
· Inserted a line (line 19) to define the map extent (zoom) of the Intermap big map window to North America.
Line 19: im_bm.setBBox(51.56155, -66.07543, 21.629387, -125.93976)
Line 20 for comments: // view of the United States (minx="-125.93976" miny="21.629387" maxx="-66.07543" maxy="51.56155")
4. Modified the default scale zoom parameters for the intermap window on load to include 1:24,000.
File: \geonetwork\web\intermap\xsl\index-embedded.xsl
At line 141, an option for the value "24000" was added.