Add Another Tab to the Geoportal Interface
mhogeweg edited this page Dec 22, 2012
·
2 revisions
Pages 202
- Home
- 2009 Esri Federal UC
- 2009 Esri International UC
- 2010 Esri Federal UC
- 2010 Esri International UC
- 2011 Esri Federal UC
- 2012 Esri Federal UC
- 2013 Esri Federal GIS Conference
- 2013 Esri International User Conference
- 2015 SDI Special Interest Group
- Add a Custom Profile
- Add an OpenSearch endpoint for Federated Search
- Add Another Tab to the Geoportal Interface
- Add Custom Link to a Search Result
- Add Custom Search Criteria
- Add the Geoportal Search to a List of Search Providers
- Add v1.1.1 FGDC editor to a previous Geoportal release
- AGP TO AGP Harvesting with the Geoportal
- AGS TO AGP Harvesting with the Geoportal
- All gpt.xml file settings
- An Introduction to vi
- Apache Tomcat geoportal logging
- Being a Good Robot
- Best Practice for Edits to JSP files
- Biological or Remote Sensing FGDC xsds
- Browse Tree
- Cart Processor
- Catalog Service
- Clear the Tomcat Work Folder
- Collections
- Common problems and solutions
- Communities and live examples
- Components
- Configure a Directory Server for the Geoportal
- Configure geoportal User and Schema in the PostgreSQL Database
- Configure Previewable Filetypes
- Configure Searching of YouTube
- Configure the gpt.xml File
- Configure Widgets
- Connecting to a User Directory
- Create a user account
- Create Relationships between Resources
- Customizations
- Customize DCAT output
- Customize Metadata Validation
- Database problems
- Database Tables
- DataDownload Tab
- Deploy and Configure the Geoportal Web Application in Tomcat
- Deploy and Configure the Servlet Web Application
- Deploy the Geoportal Web Application
- Details of Lucene Indexing in the Geoportal
- Development topics
- Discovering Resources
- Eclipse Project from Compiled WAR
- Eclipse Project from Source Code
- Enable Search Using an Ontology Service
- Error Messages in the Geoportal Web Application
- Esri Geoportal Server LiveDVD
- Extending the Web Harvester
- Federated Search in Portal for ArcGIS
- Feedback
- FGDC Biological Profile and Remote Sensing Extension
- FGDC Service Checker Integration
- Geoportal Clients for ArcGIS
- Geoportal CSW Clients
- Geoportal Facets using Apache Solr
- Geoportal genie
- Geoportal Project from Compiled WAR
- Geoportal Publish Client
- Geoportal Server 1.2.5 What's New
- Geoportal Server 1.2.6 What's New
- Geoportal Server 1.2.7 What's New
- Geoportal server as a broker
- Geoportal Server Downloads
- Geoportal Server v 1.0 What's New
- Geoportal Server v 1.1 What's New
- Geoportal Server v 1.1.1 What's New
- Geoportal Server v 1.2 What's New
- Geoportal Server v 1.2.2 What's New
- Geoportal Server v 1.2.4 What's New
- Geoportal SPARQL Sample
- Geoportal User Interface Components
- Geoportal Web Application File Organization
- Geoportal XML Editor
- Get Assistance with an Implementation
- GXE Concepts
- GXE Crash Course
- GXE Structure
- GXE Workflow
- High Availability and Large Number of Records
- How to Browse for Resources
- How to Create and Manage My Profile
- How to find all documents of a particular metadata standard
- How to Leave a Resource Review
- How to Login and Manage my Password
- How to Manage and Edit Resources
- How to Publish Resources
- How to Restrict Access to Resources
- How to Search for Resources
- How to Search with an Ontology Service
- How to Set Up an Esri Geoportal Server on Linux
- How to Use Search Page Results
- How to Use the Data Download Feature
- How to View Resource Relationships
- IDE Topics
- Identity Components LDAP and Single Sign On
- Index All Metadata Content
- Indexing and Searching the Time Period of the Content
- Install Apache Tomcat 6
- Install Desktop Tools
- Install Esri Geoportal Server
- Install PostgreSQL 9.1.2
- Install the JDBC .jar Files
- Installation
- Installation Version 1.0
- Installation Version 1.1
- Installation Version 1.2
- Installation Version 1.2.2
- Installation Version 1.2.4
- Installation Version 1.2.5
- Installation Version 1.2.6
- Installation Version 1.2.7
- Installation Version 1.2.8
- Integrate with a Content Management System
- Integrate with the con terra Security Solution
- Localization
- Log In to the Geoportal
- Logging
- Look and Feel of the User Interface
- Main Page
- Map LDAP Attributes on the Registration Page
- Map Viewer
- Online form editing for all publication methods
- Open source acknowledgements
- Oracle WebLogic geoportal logging
- Orientation to the Create Metadata Page
- Perform Preinstallation Computer Setup
- Portal for ArcGIS Integration
- Post Deployment Actions
- Preinstallation
- Preinstallation 0.9
- Preinstallation 1.0 and 1.1.x
- Preinstallation 1.2
- Preinstallation 1.2.2
- Preinstallation 1.2.4
- Preinstallation 1.2.5
- Preinstallation 1.2.6
- Preinstallation 1.2.7
- Preinstallation 1.2.8
- Preview Function
- Publication Components
- Ratings and Comments for Search Results
- Register ArcGIS for Server with the Geoportal
- Release notes
- REST API Syntax
- Sample FGDC metadata.xml
- Scheduled tasks
- Search Components
- Search Map
- Search Widget for Flex
- Search Widget for HTML
- Search Widget for Silverlight
- Security Concepts
- Set Up Systemwide Environment Variables
- Set up the Geoportal Database
- Share Link
- Single Sign On
- Smoketest the Geoportal
- Standards Support
- Supported CSW Profiles for Synchronization
- Theme Library
- Troubleshooting
- Troubleshooting Tips
- Two geoportals on the same server
- Upgrade 1.x to 1.2 database
- Upgrading file system approach
- Upgrading Read This Overview
- Upgrading SVN approach
- Url filter customization
- Use an XSLT to Render the Details Page
- Use Ant to build Geoportal
- User Functions and Roles
- User Management Interface
- Using a geoportal
- Using Lucene Search Text Queries
- Version 0.9
- Version 1.0
- Version 1.1
- Version 1.1.1
- Version 1.2
- Version 1.2.2
- Version 1.2.4
- Version 1.2.5
- Version 1.2.6
- Version 1.2.7
- Version 1.2.8
- What is a geoportal and the geoportal server
- What is the esri geoportal server
- What's New
- wiki template
- WMC Client
- Show 187 more pages…
Clone this wiki locally
The steps below outline how to add another tab to your geoportal interface. In these steps, we add a (example) tab called Links that could possibly host a webpage, integrating with a content management system. These same steps can be used to add other tabs according to your geoportal's specifications.
Note: This topic assumes that you understand the geoportal web application jsp page tile structure, as described in Geoportal User Interface Components#Geoportal Layout and Tiles.
Create the folder and JSP pages to which your new tab will navigate
- First, you will create the folder that will house your new tab's functionality. Navigate to the \\geoportal\catalog directory, and create a new folder in that catalog directory. In this example, we name our new folder quicklink.
- Now you will create the parent jsp page that will house your new tab's body.jsp page. Create a new text file, and give it a name. Save it with a .jsp file extension. In our example, we create quicklink.jsp.
- Paste the following code into the new empty .jsp file, replacing quicklink in the code with your new folder name. Note that the tiles: put name value parameter will reference the body jsp, which we'll create next:
<% // quicklink.jsp - Link pages (tiles definition) %>
<%@taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@taglib uri="http://www.esri.com/tags-gpt" prefix="gpt" %>
<% // initialize the page %>
<gpt:page id="catalog.quicklink.home"/>
<tiles:insert definition=".gptLayout" flush="false" >
<tiles:put name="body" value="/catalog/quicklink/quicklinkBody.jsp"/>
</tiles:insert>
- Now, you will create the body page that will hold the real content of your new tab. Create another blank .jsp file in your new folder, and name the file the same as you named the .jsp you just created, except with Body appended to the file name. In our example, this will be quicklinkBody.jsp. In this new file, paste the following code. The example below references web content specified in the iframe src attribute. This uses an IFrame with javascript to render an imported page in proper browser window size. In our example, the imported page is http://www.esri.com.
<% // quicklinkBody.jsp - Links page (JSF body) %>
<iframe id="frame" src="http://www.esri.com" style="overflow-y:auto;overflow-x:hidden" width="100%" frameborder="0" marginheight="0" marginwidth="0" height="100%" >
</iframe>
<script type="text/javascript">
function resizeIframe() {
var height = document.documentElement.clientHeight;
height += document.getElementById('frame').offsetTop;
height -= 20; /* whatever you set your body bottom margin/padding to be */
document.getElementById('frame').style.height = height +"px";};
document.getElementById('frame').onload = resizeIframe;
window.onresize = resizeIframe;
</script>
Create the new tab and reference it
- Navigate to the \\geoportal\catalog\skins\tiles folder and open the primaryNavigation.jsp file in a text editor.
- Paste the following code near the bottom of the file, just above , editing the pasted code according to match the names you've given to your jsp pages and folder. Note that the id quicklinkHome is a unique id that you assign to this tab. The action catalog.quicklink.home sets this link to open files in the folder you created earlier, the \\geoportal\catalog\quicklink folder. The value attribute is the bean that references the name that will appear to the user on the new tab, as set in the gpt.properties file which we will update later. The styleClass is a reference to the tab styling. Make sure to change the [catalog.quicklink] in the styleClass attribute to reference the same folder that you referenced in your action attribute. Use the example below as a guide.
<h:commandLink
id="quicklinkHome"
action="catalog.quicklink.home"
value="#{gptMsg['catalog.quicklink.home.menuCaption']}"
styleClass="#{PageContext.tabStyleMap['catalog.quicklink']}"/>
- You will need to define the new page opened by your tab in the gpt-faces-config.xml file. Navigate to the \\geoportal\WEB-INF folder and open gpt-faces-config.xml in a text editor. Paste the following code just below the navigation-rule for '. Edit the from-outcome parameter to reference the action attribute from the previous step. The to-view-id parameter references that first jsp page you created:
<!-- link page -->
<navigation-rule>
<navigation-case>
<from-outcome>catalog.quicklink.home</from-outcome>
<to-view-id>/catalog/quicklink/quicklink.jsp</to-view-id>
<redirect/>
</navigation-case>
</navigation-rule>
Update the gpt.properties file
- Navigate to the \\geoportal\WEB-INF\classes\gpt\resources folder and open the gpt.properties file in a text editor.
- Update the file by entering in the new key value you referenced from the primaryNavigation.jsp. The term you specify in the bean will display as the text on the new tab. The caption entry below the menuCaption entry will display at the top of the page after clicking your new tab and navigating to the page. The example below shows the two new entries for a tab called Links and the welcome text displayed just underneath the tab when a user clicks it.
# quicklink page ###################
catalog.quicklink.home.menuCaption = Links
catalog.quicklink.home.caption = Welcome to the Link Page
Save files, restart, and test
Save the files you have modified and restart your geoportal web application. Your new tab should appear on the homepage.