Installation

This section describes how to install the Tool Registry software contained in the tool-registry package. The following topics can be found in this section:

System Requirements

The Tool Registry software was developed using Ajax Solr and jQuery. The application must reside within a PDS web site deployment because it depends on the CSS configuration and server side includes provided by the site.

Deploying the Application

The software is not compiled but can instead be deployed with a Subversion "external" directory configuration within the PDS Home site directory structure. The desired end point is tools/tool-registry within the site. From within the top directory of the PDS site deployment (e.g., /data/www/pds/htdocs), change directories to the tools directory and perform the following commands to configure and retrieve the "external" directory:

% svn propset svn:externals \
'tool-registry https://starcell.jpl.nasa.gov/repo/2010/trunk/portal/tool-registry/src/main/webapp' .
% svn update
      

Configuring the Application

The application defaults to accessing the Search Service at https://pds.jpl.nasa.gov/services/search/. If this needs to be modified for a given deployment, edit the tool-registry/js/ToolRegistry.js file and modify the following block accordingly:

$(function () {
  Manager = new AjaxSolr.Manager({
    solrUrl: 'https://pds.jpl.nasa.gov/services/search/'
  });
      

The application also defaults to accessing the Transport Service at https://pds.jpl.nasa.gov/services/transport-upload/. If this needs to be modified for a given deployment, edit the tool-registry/js/ToolRegistry.js file and modify the following block accordingly (there are two instances of this block that will need to be modified):

.ajax(\{
  url: "https://pds.jpl.nasa.gov/services/transport-upload/upload",
  type: "POST",
  data: formData,
  cache: false,
  contentType: false,
  processData: false
\});