Cart Processor
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 Add to Cart functionality is available as of Geoportal Server version 1.2.2. When enabled, it allows users to select items from the search results to store in a "cart", manage the contents of the cart, and then carry out some action on the group. A sample of cart functionality is provided, but the idea is that you can write your own processor for your own organization's purposes. Read how NOAA's NODC office used a custom processor for helping their users in access data.
How to Enable the Add to Cart Processor
The Add to Cart Processor is only available if your organization has configured in the gpt.xml file that the Cart functionality should appear.
To configure the Cart Processor - or a custom processor - in the geoportal:
- First open the \\geoportal\WEB-INF\classes\gpt\config\gpt.xml file.
- Find the section for the Item cart parameters.
- Update the parameters in that section as desired:
- catalog.cart.enabled: Set to "true" to enable cart functionality.
- catalog.cart.maxItems: maximum number of items that can be saved to a cart. Consider what your geoportal is going to do once a user initiates the processing; if you've configured a processor to for example, download data from the FTP URLS from the metadata XML, then you may want not want users adding hundreds of items to the cart and initiating the processing.
- catalog.cart.processor: the Java class used to process items. An example is provided out of the box, using a class called 'com.esri.gpt.control.cart.ZipXmls'. This class will process the list of metadata XMLs in the cart by zipping them up and providing the .zip file to the user. This is just a sample processor - you can write your own processor for custom functionality that will be initiated when the user clicks the "Process" button in the cart. One example is the NOAA's NODC office's custom processor.
- After changing these settings, save the gpt.xml file.
- Now, consider if you want to change the cart icon. The default cart icon looks like this:cart.png. You will likely want to choose a more intuitive icon to display on your user interface, especially if you are using a custom processor that does a specific task. To change the icon, go to the \\geoportal\catalog\images folder and make a backup copy of the cart.png file. Then, move your more suitable icon - size should be 16 X 16 pixels - the this folder. Delete the cart.png (but not the backup), and rename your new icon to cart.png.
- Update any strings associated with the customized cart functionality as desired in the \\geoportal\WEB-INF\classes\gpt\resources\gpt.properties file. The Cart Processor strings are in the "catalog.cart" section. Save the gpt.properties file when finished.
- Restart your geoportal web application to see the changes take effect.
How to Use the Cart Processor
When enabled, the Cart Processor will result in several user interface changes. First, there will be a "Cart" link at the top of the Geoportal user interface. You can click this Cart button from any page in the geoportal to see the items in your cart. Also when you do a Search or look at results on the Browse tab, you will see an icon and a checkbox next to each search result. When you hover over the icon and checkbox, you will see a message indicating that the user should check the box to add an item to the cart. Once a user has checked the maximum number of items allowable in the cart, the checkboxes are disabled and a message saying that the maximum has been reached appears.
When a user clicks the Cart link at the top, their cart displays. The user can remove items by clicking the "X" next to the cart item. The user can go back to the search results or Browse tab and continue to add items to the cart, or they can choose to initiate Processing their items by clicking the "Process" button.
In the sample provided out of the box for the geoportal, clicking the "Process" button will result in a .zip file of the selected items being displayed for the user to open or save. This processing functionality can vary though, if an organization has implemented a custom processor.
NOAA NODC Example
The NOAA NODC office has implemented a custom processor that allows users to designate a list of items to be passed to their in-house data download tool. The geoportal side extracts the FTP URLs from the selected metadata XMLs, and passes them to the NODC tool for processing.
Custom "Volume" for Cart
Perhaps your organization wants to have some kind of volume setting on the cart, beyond simply the number of items a user can put in the cart. For example, if the backend Cart Processor is customized to extract and deliver data, then there may be a limit to how much data a user should be allowed to extract. The sum of the data size for items described by metadata in the cart might be limited in this case. To set such a limit, the gpt.xml file has a setting for the 'tryhandler' class. The example below shows a configuration in gpt.xml, where 'catalog.cart.volumetryhandler.commaSeparatedFields' is the index (or indices, if more than one should be considered) to be used when summing the items in the cart and determining its volume and the 'catalog.cart.volumetryhandler.max' is the maximum the cart should be allowed to accommodate. When the volume of the cart reaches capacity, a user can no longer select items to place in the cart. Note, this example points to the existing dcat.size index for the volume, but this could be set to any existing numeric index in your property-meanings.xml file.
| gpt.xml tryhandler settings |
| parameter key="catalog.cart.tryhandler.class" value="com.esri.gpt.control.cart.VolumeTryHandler" |
| parameter key="catalog.cart.volumetryhandler.commaSeparatedFields" value="dcat.size" |
| parameter key="catalog.cart.volumetryhandler.max" value="100000" |
Back to Customizations