-
Notifications
You must be signed in to change notification settings - Fork 149
Add v1.1.1 FGDC editor to a previous Geoportal release
mhogeweg edited this page Dec 23, 2012
·
2 revisions
The Geoportal Server version 1.1.1 release contains a new FGDC metadata editor based on the Geoportal XML Editor (GXE) engine. For those organizations that cannot upgrade to version 1.1.1 yet, this document outlines a procedure to incorporate GXE-based FGDC metadata editor from Geoportal Server version 1.1.1 into a previous Geoportal release.
Example Assumptions:
- System environment is Windows OS with Apache Tomcat as the web container
- Geoportal Server (pre-v1.1.1) deployed in a webapps folder
- Download and unpack Geoportal Server v.1.1.1
- Download geoportal-1.1.1
- Unzip to folder geoportal-1.1.1
- Navigate to the sub-directory ..\geoportal-1.1.1\Web Applications\Geoportal
- Copy Geoportal.war and rename the file extension to .zip
- Unzip .zip to a folder
- Stop the Tomcat service (from the services.msc control panel)
- Add new GXE FGDC files from Geoportal - Copy" to the deployed geoportal
- Copy the fgdc folder from geoportal - Copy\WEB-INF\classes\gpt\gxe to the deployed geoportal gxe folder, webapps\geoportal\WEB-INF\classes\gpt\gxe
- Add the new resource key-value pairs for the new FGDC editor
- Open the gpt.properties file from geoportal Copy in a text editor (in geoportal - Copy\WEB-INF\classes\gpt\resources)
- Copy the block of text pertaining to the GXE FGDC editor:
- Find the line starting # GXE FGDC Editor (line 3425)
- Use this as the start of the text block copy
- Find the line starting # end GXE FGDC timeinfo (line 3872)
- Use this as the end of the text block copy
- Copy the block of text into the clipboard
- Open the gpt.properties file from the deployed geoportal in a text editor (in webapps\geoportal\WEB-INF\classes\gpt\resources)
- Go to the end of the deployed gpt.properties and paste the block of text pertaining to GXE FGDC resources
- Save and close gpt.properties
- Update the fgdc-definition file
- Go to the deployed geoportal webapps\geoportal\WEB-INF\classes\gpt\metadata\fgdc folder and rename fgdc-definition.xml to fgdc-definition-old.xml
- Copy the fgdc-definition.xml file from geoportal - Copy\WEB-INF\classes\gpt\metadata\fgdc to the deployed geoportal webapps\WEB-INF\classes\gpt\metadata\fgdc folder
- Add the new GXE javascript functions
- Go to geoportal - Copy\catalog\js folder and copy the v1.1.1 folder
- Go to the deployed geoportal folder webapps\geoportal\catalog\js and paste the v1.1.1 folder
- Update gxeEditorBody.jsp
- Go to the deployed geoportal folder webapps\geoportal\catalog\publication and edit gxeEditorBody.jsp in a text editor
- Find the line referencing gxe.js (line 49)
- Edit the path to the gxe.jsp to reference the new v1.1.1 folder: <script type="text/javascript" src="<%=request.getContextPath()%">/catalog/js/v1.1.1/gxe.js"></script>
- Save and close the file
- Test the new FGDC editor in your deployed geoportal
- Clear the logs by deleting all .log files in the Tomcat logs folder
- Start the Tomcat service from the services.msc control panel
- Wait for a minute
- Go to the Tomcat logs folder and open the gpt log file in a text editor
- Look for any ERROR messages
- If you see ERROR messages, something is wrong review all the previous steps
- If there are no ERROR messages, proceed to the next step
- Open the deployed geoportal in a web browser
- Log in as a publisher or administrator
- Go to the Administration tab and click on Add (next to Manage, under the main navigation bar)
- Select Use dedicated editor to create metadata manually and click Proceed button
- On the Create Metadata page, you should see an option for FGDC now, instead of FGDC Best Practice. (If you do not see this change, go back and double-check the steps pertaining to the fgdc-definition.xml file or gpt.resources)
- Select FGDC from the list and click the Proceed button
- On the Metadata Editor page, you should see the title FGDC under the Save as Draft and Save buttons, and you should see tabs for the FGDC CSDGM sections.
- If you get an error or do not see the CSDGM sections, go back and review the steps pertaining to gxe.js and the gxe files
- If you do see the FGDC CSGDM sections, then SUCCESS! ... Back up your deployed geoportal and enjoy using the GXE-based FGDC metadata editor.
Back to Customizations