You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by ma...@apache.org on 2011/09/10 03:04:41 UTC

svn commit: r1167426 [5/5] - in /oodt/site/components/maven/curator: ./ user/

Modified: oodt/site/components/maven/curator/user/basic.html
URL: http://svn.apache.org/viewvc/oodt/site/components/maven/curator/user/basic.html?rev=1167426&r1=1167425&r2=1167426&view=diff
==============================================================================
--- oodt/site/components/maven/curator/user/basic.html (original)
+++ oodt/site/components/maven/curator/user/basic.html Sat Sep 10 01:04:40 2011
@@ -1,10 +1,8 @@
 <?xml version='1.0' encoding='utf-8'?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Apache™ OODT</title><link rel="stylesheet" href="http://oodt.apache.org/oodt.css" type="text/css" /><link rel="stylesheet" href="../css/print.css" type="text/css" media="print" /><meta name="author" content="David Woollard" /></head><body><div id="outerWrapper"><div id="innerWrapper"><div class="visualHeaderWrapper"><div class="header"><div class="apacheOODTLogo"><a href="http://oodt.apache.org/"><img src="http://oodt.apache.org/images/apacheOODT.png" alt="Apache™ OODT" /></a></div><div class="fright"><ul class="globalnav"><!-- One of these li's must be given the currentNavTab class --><li><a id="tab-contact" href="http://oodt.apache.org/contact">Contact</a></li><li><a id="tab-development" href="http://oodt.apache.org/development">Development</a></li><li><a id="tab-downloads" href="http://oodt.apache.org/downloads">Dow
 nloads</a></li><li><a id="tab-components" href="http://oodt.apache.org/components" class="currentNavTab">Components</a></li><li><a id="tab-about" href="http://oodt.apache.org/about">About</a></li><li><a id="tab-home" href="http://oodt.apache.org/">Home</a></li></ul></div><div class="visualClear"></div></div></div><div class="subProductWrapper"><div class="subProductHeader"><h1 id="productNameSlot"><span id="bannerLeft">&#13;
-    &#13;
-            CAS Curation Interface&#13;
-    &#13;
-            </span></h1><h2 id="productSubheadSlot"><h2><a name="Introduction" id="Introduction"></a>Introduction</h2><h2><a name="Download_And_Build" id="Download_And_Build"></a>Download And Build</h2><h2><a name="Tomcat_Deployment" id="Tomcat_Deployment"></a>Tomcat Deployment</h2><h2><a name="Staging_Area_Setup" id="Staging_Area_Setup"></a>Staging Area Setup</h2><h2><a name="Extractor_Setup" id="Extractor_Setup"></a>Extractor Setup</h2><h2><a name="File_Manager_Configuration" id="File_Manager_Configuration"></a>File Manager Configuration</h2></h2></div></div><div class="visualContentWrapper"><div class="contentGradient"></div><div id="content"><div class="diptych triptychSpace"><div class="visualPadding" id="leftPlate"><p>This document serves as a basic user's guide for the CAS-Curator
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Apache™ OODT</title><link rel="stylesheet" href="http://oodt.apache.org/oodt.css" type="text/css" /><link rel="stylesheet" href="../css/print.css" type="text/css" media="print" /><meta name="author" content="David Woollard" /><meta name="Date-Revision-yyyymmdd" content="20110910" /><meta http-equiv="Content-Language" content="en" /></head><body><div id="outerWrapper"><div id="innerWrapper"><div class="visualHeaderWrapper"><div class="header"><div class="apacheOODTLogo"><a href="http://oodt.apache.org/"><img src="http://oodt.apache.org/images/apacheOODT.png" alt="Apache™ OODT" /></a></div><div class="fright"><ul class="globalnav"><!-- One of these li's must be given the currentNavTab class --><li><a id="tab-contact" href="http://oodt.apache.org/contact">Contact</a></li><li><a id="tab-development" href="http://oodt.apach
 e.org/development">Development</a></li><li><a id="tab-downloads" href="http://oodt.apache.org/downloads">Downloads</a></li><li><a id="tab-components" href="http://oodt.apache.org/components" class="currentNavTab">Components</a></li><li><a id="tab-about" href="http://oodt.apache.org/about">About</a></li><li><a id="tab-home" href="http://oodt.apache.org/">Home</a></li></ul></div><div class="visualClear"></div></div></div><div class="subProductWrapper"><div class="subProductHeader"><h1 id="productNameSlot"><div id="bannerLeft">&#13;
+                CAS Curation Interface&#13;
+                </div></h1><h2 id="productSubheadSlot"><h2>Introduction<a name="Introduction" id="Introduction"></a></h2><h2>Download And Build<a name="Download_And_Build" id="Download_And_Build"></a></h2><h2>Tomcat Deployment<a name="Tomcat_Deployment" id="Tomcat_Deployment"></a></h2><h2>Staging Area Setup<a name="Staging_Area_Setup" id="Staging_Area_Setup"></a></h2><h2>Extractor Setup<a name="Extractor_Setup" id="Extractor_Setup"></a></h2><h2>File Manager Configuration<a name="File_Manager_Configuration" id="File_Manager_Configuration"></a></h2></h2></div></div><div class="visualContentWrapper"><div class="contentGradient"></div><div id="content"><div class="diptych triptychSpace"><div class="visualPadding" id="leftPlate"><p>This document serves as a basic user's guide for the CAS-Curator
       project. The goal of the document is to allow users to check out,
       build, and install the base version of the CAS-Curator, as well
       as perform basic configuration tasks. For advanced topics, such 
@@ -12,48 +10,56 @@
       project, please see our <a href="../user/advanced.html">Advanced 
       Guide.</a></p><p>The remainder of this guide is separated into the following 
       sections:</p><ul><li><a href="#section1">Download and Build</a></li>
-<li><a href="#section2">Tomcat Deployment</a></li>
-<li><a href="#section3">Staging Area Setup</a></li>
-<li><a href="#section4">Extractor Setup</a></li>
-<li><a href="#section5">File Manager Configuration</a></li>
-</ul><a name="section1" id="section1"></a><div class="section"><h2><a name="Download_And_Build" id="Download_And_Build"></a>Download And Build</h2>
-<p>The most recent CAS-Curator project can be downloaded from
+        <li><a href="#section2">Tomcat Deployment</a></li>
+        <li><a href="#section3">Staging Area Setup</a></li>
+        <li><a href="#section4">Extractor Setup</a></li>
+        <li><a href="#section5">File Manager Configuration</a></li>
+      </ul><a name="section1" id="section1"></a><div class="section"><h2>Download And Build<a name="Download_And_Build" id="Download_And_Build"></a></h2>
+      <p>The most recent CAS-Curator project can be downloaded from
       the OODT <a class="externalLink" href="http://incubator.apache.org/oodt">website</a> or it can
       be checked out from the OODT repository using Subversion. The 
       We recommend checking
       out the latest released version (v1.0.0 at the time of writing).
       </p>
-<p>Maven is the build management system used for OODT projects. We
+      
+      <p>Maven is the build management system used for OODT projects. We
       currently support Maven 2.0 and later. For more information on 
-      Maven, see our <a href="../development/maven.html">Maven Guide.</a></p>
-<p>Assuming a *nix-like environment, with both Maven and Subversion 
+      Maven, see our <a href="../development/maven.html">Maven Guide.</a>
+      </p>
+      
+      <p>Assuming a *nix-like environment, with both Maven and Subversion 
       clients installed and on your path, an example of the checkout and 
       build process is presented below:</p>
-<div class="source"><pre>
+      
+      <div class="source"><pre>
 &gt; mkdir /usr/local/src
 &gt; cd /usr/local/src
 &gt; svn checkout http://oodt/repo/cas-curator/tags/1_0_0_release \
     cas-curator-v1.0.0       
-      </pre>
-</div>
-<p>After the Subversion command completes, you will have the source
-      for the CAS-Curator project in the <code>/usr/local/src/cas-curator-v1.0.0</code>
+      </pre></div>
+        
+      <p>After the Subversion command completes, you will have the source
+      for the CAS-Curator project in the <tt>/usr/local/src/cas-curator-v1.0.0</tt>
       directory.</p>
-<p>In order to build the WAR (Web ARchive) file from this source,
+      
+      <p>In order to build the WAR (Web ARchive) file from this source,
       issue the following commands:</p>
-<div class="source"><pre>
+      
+      <div class="source"><pre>
 &gt; cd /usr/local/src/cas-curator-v1.0.0
 &gt; mvn package    
-      </pre>
-</div>
-<p>Once the Maven command completes successfully, you should have a 
-      <code>target</code> directory under <code>cas-curator-v1.0.0/</code>. The 
-      WAR file, called <code>cas-curator-1.0.0.war</code>, can be found under 
-      <code>target/</code>.</p>
-<p>In the next section, we will discuss deploying this WAR file to
-      a Tomcat instance.</p>
-</div><a name="section2" id="section2"></a><div class="section"><h2><a name="Tomcat_Deployment" id="Tomcat_Deployment"></a>Tomcat Deployment</h2>
-<p>Once you have built a war file, it is necessary to deploy the web
+      </pre></div>   
+      
+      <p>Once the Maven command completes successfully, you should have a 
+      <tt>target</tt> directory under <tt>cas-curator-v1.0.0/</tt>. The 
+      WAR file, called <tt>cas-curator-1.0.0.war</tt>, can be found under 
+      <tt>target/</tt>.</p>
+      
+      <p>In the next section, we will discuss deploying this WAR file to
+      a Tomcat instance.</p>   
+      
+    </div><a name="section2" id="section2"></a><div class="section"><h2>Tomcat Deployment<a name="Tomcat_Deployment" id="Tomcat_Deployment"></a></h2>
+      <p>Once you have built a war file, it is necessary to deploy the web
       application using a servlet container such as 
       <a class="externalLink" href="http://tomcat.apache.org/">Tomcat</a> or 
       <a class="externalLink" href="http://www.mortbay.org/jetty/">Jetty</a>. For the purposes of 
@@ -64,65 +70,80 @@
       <a class="externalLink" href="http://tomcat.apache.org/">website</a>. NOTE: There are two
       concurrent versions of Tomcat: 5.5.X and 6.0.X. CAS-Curator is compatible
       with both versions.</p>
-<p>We will assume that you have downloaded Tomcat to an appropriate 
+      
+      <p>We will assume that you have downloaded Tomcat to an appropriate 
       directory, are using the default configuration, and have taken the 
       appropriate steps to allow access to port 8080. See your System 
       Administrator is you have any questions about firewall security and policy
       regarding port access. We will further assume that you have set an 
-      environment variable, <code>$TOMCAT_HOME</code>, to the base directory
+      environment variable, <tt>$TOMCAT_HOME</tt>, to the base directory
       of your Tomcat installation.</p>
-<p>There are a number of ways to deploy a WAR file to Tomcat, though we
+      
+      <p>There are a number of ways to deploy a WAR file to Tomcat, though we
       recommend using a context file. A context file is a XML file that provides
       Tomcat with "context" for using a particular web application. In order to 
       create a context file for the CAS-Curator, open your favorite text editor
       and copy and paste the following:</p>
-<div class="source"><pre>&lt;Context path="/my-curator"
+      
+      <div class="source"><pre>&lt;Context path="/my-curator"
 docBase="/usr/local/src/cas-curator-v1.0.0/target/cas-curator-1.0.0.war"&gt;  
   &lt;Parameter name="org.apache.oodt.security.sso.implClass"
             value="org.apache.oodt.security.sso.DummyImpl"/&gt;
   &lt;Parameter name="org.apache.oodt.cas.curator.projectName"
         value="My Project"/&gt;
 &lt;/Context&gt;    
-      </pre>
-</div>
-<p>Save the context file to 
-      <code>$TOMCAT_HOME/conf/Catalina/localhost/curator.xml</code>. Now you 
+      </pre></div>
+       
+      <p>Save the context file to 
+      <tt>$TOMCAT_HOME/conf/Catalina/localhost/my-curator.xml</tt>. Now you 
       can point a web browser to <a class="externalLink" href="http://localhost:8080/my-curator/">
       http://localhost:8080/my-curator</a> and you should see a log-in screen
-      for CAS-Curator.</p>
-<img src="../images/basic_login.jpg" /><p>The <code>org.apache.oodt.security.sso.implClass</code> parameter
+      for CAS-Curator. <i>Note</i>: Tomcat will only use the path attribute 
+      if the context is defined in server.xml. Tomcat uses the xml file name 
+      instead. See the 
+      <a class="externalLink" href="http://tomcat.apache.org/tomcat-5.5-doc/config/context.html"> 
+      Tomcat documentation</a> for further information</p> 
+      
+      <img src="../images/basic_login.jpg" alt="" /><p>The <tt>org.apache.oodt.security.sso.implClass</tt> parameter
       that we set in the context file configures the CAS-Curator for a "dummy"
       log-in to its Single Sign On service. Because of this, we are able to 
       log into the web application with a blank user name and a blank password. 
       For help in implementing security with CAS-Curator, see our 
       <a href="../user/advanced.html">Advanced Guide.</a></p>
-<img src="../images/basic_page.jpg" /><p>In the next sections, we will talk about setting up staging areas, 
+      
+      <img src="../images/basic_page.jpg" alt="" /><p>In the next sections, we will talk about setting up staging areas, 
       metadata extractors, and launching a CAS-Filemgr instance into which 
       CAS-Curator will ingest data products.</p>
-</div><a name="section3" id="section3"></a><div class="section"><h2><a name="Staging_Area_Setup" id="Staging_Area_Setup"></a>Staging Area Setup</h2>
-<p>Staging areas are directories on your local machine that hold data 
+        
+    </div><a name="section3" id="section3"></a><div class="section"><h2>Staging Area Setup<a name="Staging_Area_Setup" id="Staging_Area_Setup"></a></h2>
+      <p>Staging areas are directories on your local machine that hold data 
       products to be curated. The staging area can have arbitrary structure. 
       The only requirement that CAS-Curator has with regard to this structure 
       is that the directory structure be mirrored in a metadata generation
       area. This generation area is used by CAS-Curator to create metadata
       files to associate with data products.</p>
-<p>For example, if there is a product, say an MP3 file of Bach's <i>Der 
+      
+      <p>For example, if there is a product, say an MP3 file of Bach's <i>Der 
       Geist hilft unsrer Schwachheit auf</i>, in the staging area at:</p>
-<div class="source"><pre> 
+      
+      <div class="source"><pre> 
 [staging_area_base]/audio/classical/bach/Der_Geist_hilft.mp3   
-      </pre>
-</div>
-<p>Then the CAS-Curator will generate all associated metadata products
-      in <code>[metadata_gen_base]/audio/classical/bach/</code>.</p>
-<p>In order to set up the staging area and the metadata generation area,
+      </pre></div>
+      
+      <p>Then the CAS-Curator will generate all associated metadata products
+      in <tt>[metadata_gen_base]/audio/classical/bach/</tt>.</p>
+      
+      <p>In order to set up the staging area and the metadata generation area,
       we first create base directories for each, shown below:</p>
-<div class="source"><pre>
+      
+      <div class="source"><pre>
 &gt; mkdir /usr/local/staging
 &gt; mkdir /usr/local/staging/products
 &gt; mkdir /usr/local/staging/metadata
-      </pre>
-</div>
-<p>Next, we will set the following parameters in the CAS-Curator context file:</p>
+      </pre></div>
+      
+      <p>Next, we will set the following parameters in the CAS-Curator context file:</p>
+      
 <div class="source"><pre>&lt;Parameter name="org.apache.oodt.cas.curator.stagingAreaPath"
         value="/usr/local/staging/products"/&gt;
     
@@ -130,88 +151,101 @@ docBase="/usr/local/src/cas-curator-v1.0
         value="/usr/local/staging/metadata"/&gt;
     
 &lt;Parameter name="org.apache.oodt.cas.curator.metExtension"
-        value=".met"/&gt;</pre>
-</div>
-<p>The <code>org.apache.oodt.cas.curator.stagingAreaPath</code> parameter should 
+        value=".met"/&gt;</pre></div>
+      
+    <p>The <tt>org.apache.oodt.cas.curator.stagingAreaPath</tt> parameter should 
     be set to the product staging area and the 
-    <code>org.apache.oodt.cas.curator.metAreaPath</code> should be set to the metedata
+    <tt>org.apache.oodt.cas.curator.metAreaPath</tt> should be set to the metedata
     generation area. Additionally, we specified the parameter 
-    <code>org.apache.oodt.cas.curator.metExtension</code> to be <code>.met</code>. 
+    <tt>org.apache.oodt.cas.curator.metExtension</tt> to be <tt>.met</tt>. 
     This parameter specifies the extension for all of the metadata files produced in
     the metadata generation area.</p>
-<p>For illustrative purposes, we will load an mp3 file into the staging area:</p>
-<div class="source"><pre>
+    
+    <p>For illustrative purposes, we will load an mp3 file into the staging area:</p>
+    
+    <div class="source"><pre>
 &gt; mkdir /usr/local/staging/products/mp3
 &gt; cd /usr/local/staging/products/mp3
 &gt; curl http://incubator.apache.org/oodt/components/curator/media/Bach-SuiteNo2.mp3 &gt; \
         Bach-SuiteNo2.mp3
-    </pre>
-</div>
-<p>We should note that this music file was produced by the 
+    </pre></div>
+    
+    <p>We should note that this music file was produced by the 
     <a class="externalLink" href="http://www.fuldaer-symphonisches-orchester.de/">Fulda Symphonic 
     Orchestra</a> and is freely distributed under the
     <a class="externalLink" href="http://www.eff.org/about/">EFF Open Audio License</a>, version 1.0. We 
     have edited the ID3 tag of this file (in order to make the later metadata extraction
     example more interesting), but original authorship is retained. Now back to the 
     tutorial...</p>
-<p>Remember that we need to mirror the product staging area and the metadata 
+    
+    <p>Remember that we need to mirror the product staging area and the metadata 
     generation area, so will also need to create the matching directory structure 
     there:</p>
-<div class="source"><pre>
+    
+    <div class="source"><pre>
 &gt; mkdir /usr/local/staging/metadata/mp3
-    </pre>
-</div>
-<p>Once you restart Tomcat, the changes you have made to the context file will be
-    used. The staging area will now be set to <code>/usr/local/staging/products</code>.
+    </pre></div>
+    
+    <p>Once you restart Tomcat, the changes you have made to the context file will be
+    used. The staging area will now be set to <tt>/usr/local/staging/products</tt>.
     See the screenshot below:</p>
-<img src="../images/basic_staging.jpg" /><p>Double-clicking on "mp3", we can see that the staging area path in the top left 
-    is now <code>/mp3</code> and <code>Bach-SuiteNo2.mp3</code> can be seen the main 
+ 
+    <img src="../images/basic_staging.jpg" alt="" /><p>Double-clicking on "mp3", we can see that the staging area path in the top left 
+    is now <tt>/mp3</tt> and <tt>Bach-SuiteNo2.mp3</tt> can be seen the main 
     left staging pane. For the time-being, there is no metadata detected (as reported 
     in the main right staging pane), but in the next section, we will be setting up a 
     basic, command-line metadata extractor in order to show how extractors are 
     integrated into CAS-Curator.</p>
-</div><a name="section4" id="section4"></a><div class="section"><h2><a name="Extractor_Setup" id="Extractor_Setup"></a>Extractor Setup</h2>
-<p>The CAS-Curator uses ancillary programs called metadata extractors to produce
+          
+    </div><a name="section4" id="section4"></a><div class="section"><h2>Extractor Setup<a name="Extractor_Setup" id="Extractor_Setup"></a></h2>
+    <p>The CAS-Curator uses ancillary programs called metadata extractors to produce
     the metadata that it associates with products. More information about metadata 
     extractors can be found in the 
     <a href="../../metadata/user/extractorBasics.html">
     Extractor Basics</a> User's Guide.</p>
-<p>Like the staging area, we first need to set up an area in the file system for
-    metadata extractors. We will call this directory <code>extractors</code>:</p>
-<div class="source"><pre>
+    
+    <p>Like the staging area, we first need to set up an area in the file system for
+    metadata extractors. We will call this directory <tt>extractors</tt>:</p>
+    
+    <div class="source"><pre>
  &gt; mkdir /usr/local/extractors   
-    </pre>
-</div>
-<p>In order to register the metadata extractor path with the CAS-Curator, we will 
+    </pre></div> 
+    
+    <p>In order to register the metadata extractor path with the CAS-Curator, we will 
     need to add another parameter to the web application's context file. Add the
     following parameter:</p>
+    
 <div class="source"><pre>&lt;Parameter name="org.apache.oodt.cas.curator.metExtractorConf.uploadPath"
 		value="/usr/local/extractors" /&gt;    
-    </pre>
-</div>
-<p>We are going to make a metadata extractor that will extractor ID3 tag metadata, 
+    </pre></div>
+    
+    <p>We are going to make a metadata extractor that will extractor ID3 tag metadata, 
     such as author, title, resource type, etc from mp3s. As a first step, we will create 
     a directory for the new extractor. The name of this directory is important, because
     CAS-Curator will use the directory name to register the extractor. We will name this
-    directory <code>mp3extractor</code></p>
+    directory <tt>mp3extractor</tt></p>
+    
 <div class="source"><pre>
 &gt; mkdir /usr/local/extractors/mp3extractor
-</pre>
-</div>
-<p>While we could write a custom extractor in Java for the Cas-Curator, there are 
+</pre></div>
+
+    <p>While we could write a custom extractor in Java for the Cas-Curator, there are 
     multiple existing software packages that read mp3 ID3 tags. For these situations,
     where an external, command-line extractor exists, we have developed the 
-    <code>ExternMetExtractor</code> class in the CAS-Metadata project.</p>
-<p>For this example, we are going to leaverage an existing, open source mime-type
+    <tt>ExternMetExtractor</tt> class in the CAS-Metadata project.</p>
+    
+    <p>For this example, we are going to leaverage an existing, open source mime-type
     detector with text and metadata parsing capabilities called 
     <a class="externalLink" href="http://lucene.apache.org/tika/">Apache Tika</a>. Tika parses a number of 
     different common data formats, including a number of audio formats like mp3.
     I'll leave it to the reader of this guide to download and install Tika. We
     will assume that the latest release of the tika-app jar is in the 
-    <code>mp3extractor</code> directory.</p>
-<p>We have a little work to do to convert the output of Tika into a metadata file
+    <tt>mp3extractor</tt> directory.</p>
+    
+    <p>We have a little work to do to convert the output of Tika into a metadata file
     compatible with CAS-Curator. By default, Tika produces metadata in a "key: value"
     format as shown in the command-line session below:</p>
+    
 <div class="source"><pre>
 &gt; java -jar tika-app-0.5-SNAPSHOT.jar -m \
     /usr/local/staging/products/mp3/Bach-SuiteNo2.mp3
@@ -219,10 +253,11 @@ Author: Johann Sebastian Bach
 Content-Type: audio/mpeg
 resourceName: Bach-SuiteNo2.mp3
 title: Bach Cello Suite No 2  
-    </pre>
-</div>
-<p>With a little AWK magic, we can convert this output to the Cas-Metadata xml
+    </pre></div>   
+    
+    <p>With a little AWK magic, we can convert this output to the Cas-Metadata xml
     format:</p>
+    
 <div class="source"><pre>
 &gt; java -jar tika-app-0.5-SNAPSHOT.jar -m \
   /usr/local/staging/products/mp3/Bach-SuiteNo2.mp3 | awk -F:\
@@ -236,19 +271,21 @@ title: Bach Cello Suite No 2  
 &lt;keyval&gt;&lt;key&gt;resourceName&lt;/key&gt;&lt;val&gt;Bach-SuiteNo2.mp3&lt;/val&gt;&lt;/keyval&gt;
 &lt;keyval&gt;&lt;key&gt;title&lt;/key&gt;&lt;val&gt;Bach Cello Suite No 2&lt;/val&gt;&lt;/keyval&gt;
 &lt;/cas:metadata&gt;            
-    </pre>
-</div>
-<p>Cool as a one line format translater is, we are actually going to have to
+    </pre></div> 
+    
+    <p>Cool as a one line format translater is, we are actually going to have to
     do a little more work to create an extractor capable of producing metadata
     for CAS-Curator. A requirement for metadata extractors that are to be integrated
     with CAS-Curator is that they product three pieces of metadata:</p>
-<ul><li>ProductType</li>
-<li>FileLocation</li>
-<li>Filename</li>
-</ul><p>We should note that this is NOT a general requirement of all metadata 
+    
+    <ul><li>ProductType</li>
+      <li>FileLocation</li>
+      <li>Filename</li>
+    </ul><p>We should note that this is NOT a general requirement of all metadata 
     extractors, but a ramification of the current implementation of CAS-Curator.
     In order to product this extra metadata, we will develop a small Python
-    script:</p>
+    script:</p> 
+
 <div class="source"><pre>
 #!/usr/bin/python
 
@@ -277,12 +314,13 @@ f.write(fileName+'&lt;/val&gt;&lt;/keyva
 f.write('&lt;/key&gt;&lt;val&gt;'+fileLocation+'&lt;/val&gt;&lt;/keyval&gt;\n')
 f.write('&lt;/cas:metadata&gt;')
 f.close()
-</pre>
-</div>
-<p>We'll assume that you have Python installed at <code>/usr/bin/python</code>
-    and you have named this script <code>mp3PythonExtractor.py</code> and placed
-    it in <code>/usr/local/extractors/mp3extractor</code>. We'll need
+</pre></div>
+
+    <p>We'll assume that you have Python installed at <tt>/usr/bin/python</tt>
+    and you have named this script <tt>mp3PythonExtractor.py</tt> and placed
+    it in <tt>/usr/local/extractors/mp3extractor</tt>. We'll need
     to make sure it is executable from the command-line:</p>
+
 <div class="source"><pre>
 &gt; cd /usr/local/extractors/mp3extractor
 &gt; chmod +x mp3PythonExtractor.py
@@ -298,21 +336,23 @@ f.close()
 &lt;keyval&gt;&lt;key&gt;FileLocation&lt;/key&gt;&lt;val&gt;/usr/local/staging/products/mp3
 &lt;/val&gt;&lt;/keyval&gt;
 &lt;/cas:metadata&gt;
-</pre>
-</div>
-<p>Now that we have a metadata extractor that meets our requirements (it's
+</pre></div>  
+    
+    <p>Now that we have a metadata extractor that meets our requirements (it's
     callable from the command-line, it produces CAS-Metadata compatible XML, and
     it extracts <i>ProductType</i>, <i>Filename</i>, and <i>FileLocation</i>),
-    the next step is to create an <code>ExternMetExtractor</code> configuration
-    file. This file will configure CAS-Metadata's <code>ExternMetExtractor</code>
-    to call the <code>mp3PythonExtractor.py</code> script correctly.</p>
-<p>There is more information about <code>ExternMetExtractor</code> 
+    the next step is to create an <tt>ExternMetExtractor</tt> configuration
+    file. This file will configure CAS-Metadata's <tt>ExternMetExtractor</tt>
+    to call the <tt>mp3PythonExtractor.py</tt> script correctly.</p> 
+    
+    <p>There is more information about <tt>ExternMetExtractor</tt> 
     configuration available in CAS-Metadata's 
     <a class="externalLink" href="http://oodt.jpl.nasa.gov/cas-metadata/user/extractorBasics.html">
     Extractor Basics</a> User's Guide. For the purposes of this guide, we will 
     assume that the reader is familiar with configuration of this extractor, so we 
     will just present the configuration below (we assume that you name this file 
-    <code>mp3PythonExtractor.config</code>):</p>
+    <tt>mp3PythonExtractor.config</tt>):</p> 
+ 
 <div class="source"><pre>    
 &lt;?xml version="1.0" encoding="UTF-8"?&gt;
 &lt;cas:externextractor xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas"&gt;
@@ -325,33 +365,36 @@ f.close()
       &lt;/args&gt;
    &lt;/exec&gt;
 &lt;/cas:externextractor&gt;
-</pre>
-</div>
-<p>The last step in configuring our mp3 metadata extractor is to provide a 
+</pre></div>    
+    
+    <p>The last step in configuring our mp3 metadata extractor is to provide a 
     properties file for CAS-Curator so that it knows how to call the 
-    <code>ExternMetExtractor</code>. Each extractor used by CAS-Curator needs
-    a <code>config.properties</code> file. This file sets two properties:</p>
-<ul><li><code>extractor.classname</code></li>
-<li><code>extractor.config.files</code></li>
-</ul><p>Create a <code>config.properties</code> file (this name is important for 
+    <tt>ExternMetExtractor</tt>. Each extractor used by CAS-Curator needs
+    a <tt>config.properties</tt> file. This file sets two properties:</p>
+    
+    <ul><li><tt>extractor.classname</tt></li>
+      <li><tt>extractor.config.files</tt></li>
+    </ul><p>Create a <tt>config.properties</tt> file (this name is important for 
     CAS-Curator to pick up the cofiguration) in the 
-    <code>/usr/local/extractors/mp3extractor</code> directory. This file should
+    <tt>/usr/local/extractors/mp3extractor</tt> directory. This file should
     consist of the following parameters:</p>
+
 <div class="source"><pre>
 extractor.classname=
    org.apache.oodt.cas.metadata.extractors.ExternMetExtractor
 extractor.config.files=
    /usr/local/extractors/mp3extractor/mp3PythonExtractor.config
-</pre>
-</div>
-<p>To recap, we first created a Python script that calls
+</pre></div>
+
+    <p>To recap, we first created a Python script that calls
     <a class="externalLink" href="http://lucene.apache.org/tika/">Apache Tika</a> to extract metadata
     from mp3 files. Then we created a configuration file that configures 
-    CAS-Metadata's <code>ExternMetExtractor</code> to call this python script.
+    CAS-Metadata's <tt>ExternMetExtractor</tt> to call this python script.
     Finally, we created a properties file for the CAS-Curator to call the 
-    <code>ExternMetExtractor</code>. To confirm the configuration of this 
+    <tt>ExternMetExtractor</tt>. To confirm the configuration of this 
     extractor, we can long list the extractor directory:</p>
-<div class="source"><pre>
+    
+    <div class="source"><pre>
 &gt; cd /usr/local/extractors/mp3extractor
 &gt; ls -l
 total 51448
@@ -359,72 +402,82 @@ total 51448
 -rw-r--r--  1 -  -       328 Nov 27 13:49 mp3PythonExtractor.config
 -rwxr-xr-x  1 -  -       702 Nov 27 13:49 mp3PythonExtractor.py
 -rw-r--r--  1 -  -  26325155 Nov 27 13:46 tika-app-0.5-SNAPSHOT.jar
-    </pre>
-</div>
-<p>Once you restart Tomcat, the change you have made to the context file will be
-    used. The extractor area will now be set to <code>/usr/local/extractors</code>.
+    </pre></div>    
+
+    <p>Once you restart Tomcat, the change you have made to the context file will be
+    used. The extractor area will now be set to <tt>/usr/local/extractors</tt>.
     See the screenshot below:</p>
-<img src="../images/basic_extractor.jpg" /><p>In the above screenshot, we see that, upon clicking on the mp3 file, 
-    metadata produced by the <code>mp3extractor</code> is shown in the main right 
+ 
+    <img src="../images/basic_extractor.jpg" alt="" /><p>In the above screenshot, we see that, upon clicking on the mp3 file, 
+    metadata produced by the <tt>mp3extractor</tt> is shown in the main right 
     staging pane. Now staging and extraction are set up. In the next section, we
     will set up a CAS-Filemgr instance and show how CAS-Curator can be used to 
     ingest products.</p>
-</div><a name="section5" id="section5"></a><div class="section"><h2><a name="File_Manager_Configuration" id="File_Manager_Configuration"></a>File Manager Configuration</h2>
-<p>The final step in our basic configuration of CAS-Curator is to configure a 
+    
+    </div><a name="section5" id="section5"></a><div class="section"><h2>File Manager Configuration<a name="File_Manager_Configuration" id="File_Manager_Configuration"></a></h2>
+    
+    <p>The final step in our basic configuration of CAS-Curator is to configure a 
     CAS-Filemgr instance into which we will ingest our mp3s. There is a lot of
     information on configuring the CAS-Filemgr in its
     <a href="../../filemgr/user/">User's Guide</a>. We will 
     assume familiarity with the CAS-Filemgr for the remainder of this guide.</p>
-<p>In this guide, we will focus on the basic configuration necessary to tailor
+    
+    <p>In this guide, we will focus on the basic configuration necessary to tailor
     a vanilla build of the CAS-Filemgr for use with our CAS-Curator. We will assume 
     that you have built the latest release of the CAS-Filemgr (v1.8.0 at the time of 
     this writing) and installed it at:</p>
-<div class="source"><pre>
+    
+    <div class="source"><pre>
 /usr/local/src/cas-filemgr-1.8.0/
-    </pre>
-</div>
-<p>The first step in configuring the CAS-Filemgr is to edit the 
-    <code>filemgr.properties</code> file in the <code>etc</code> directory. This 
+    </pre></div>
+    
+    <p>The first step in configuring the CAS-Filemgr is to edit the 
+    <tt>filemgr.properties</tt> file in the <tt>etc</tt> directory. This 
     file controls the basic configuration of the CAS-Filemgr, including its
     various extension points. For this example, we are going to run the CAS-Filemgr
     in a very basic configuration, with both its repository and validation layer
     controlled by XML configuration, a local data transfer factory, and a 
     <a class="externalLink" href="http://lucene.apache.org/java/docs/">Lucene</a>-based metadata 
     catalog.</p>
-<p>In order to create this configuration, we will change the following
-    parameters in the <code>filemgr.properties</code> file:</p>
-<ul><li>Set <code>org.apache.oodt.cas.filemgr.catalog.lucene.idxPath</code>
-      to <code>/usr/local/src/cas-filemgr-1.8.0/catalog</code>. This parameter
+    
+    <p>In order to create this configuration, we will change the following
+    parameters in the <tt>filemgr.properties</tt> file:</p>
+    
+    <ul><li>Set <tt>org.apache.oodt.cas.filemgr.catalog.lucene.idxPath</tt>
+      to <tt>/usr/local/src/cas-filemgr-1.8.0/catalog</tt>. This parameter
       tells CAS-Filemgr where to create the Lucene index. The first time you start 
       the CAS-Filemgr, make sure that this file does NOT exist. The CAS-Filemgr 
       will take care of creating it and populating it with the appropriate files.
       </li>
-<li>Set <code>org.apache.oodt.cas.filemgr.repositorymgr.dirs</code> to
-      <code>file:///usr/local/src/cas-filemgr-1.8.0/policy/mp3</code>. The value needs
+      <li>Set <tt>org.apache.oodt.cas.filemgr.repositorymgr.dirs</tt> to
+      <tt>file:///usr/local/src/cas-filemgr-1.8.0/policy/mp3</tt>. The value needs
       to be a URL and we are pointing to a policy folder we will create.</li>
-<li>Set <code>org.apache.oodt.cas.filemgr.validation.dirs</code> to 
-      <code>file:///usr/local/src/cas-filemgr-1.8.0/policy/mp3</code>. Like the last 
+      <li>Set <tt>org.apache.oodt.cas.filemgr.validation.dirs</tt> to 
+      <tt>file:///usr/local/src/cas-filemgr-1.8.0/policy/mp3</tt>. Like the last 
       parameter we configured, this parameter should be a URL and point to the 
       same policy folder.</li>
-</ul><p>With these changes, you are ready to run the basic configuration of the 
+    </ul><p>With these changes, you are ready to run the basic configuration of the 
     CAS-Filemgr. In order to make this install of CAS-Filemgr work with our 
     CAS-Curator, however, we will also need to augment the basic policy for both
     the repository manager and validation layer.</p>
-<p>First, we will create a policy directory for our mp3 curator. We can do this
-    by moving the current policy files from the base <code>policy</code> directory to
-    a <code>mp3</code> directory:</p>
-<div class="source"><pre>
+    
+    <p>First, we will create a policy directory for our mp3 curator. We can do this
+    by moving the current policy files from the base <tt>policy</tt> directory to
+    a <tt>mp3</tt> directory:</p>
+    
+    <div class="source"><pre>
 &gt; cd /usr/local/src/cas-filemgr-1.8.0/policy
 &gt; mkdir mp3
 &gt; mv *.xml mp3/    
-    </pre>
-</div>
-<p>Next, we will add a product type to our instance of the CAS-Filemgr. In order 
-    to do this, we will edit the <code>product-types.xml</code> file in the 
-    <code>policy/mp3</code> directory. We will add the following as a child of the 
-    <code>&lt;cas:producttypes&gt;</code> node (we purposefully elide any
+    </pre></div> 
+    
+    <p>Next, we will add a product type to our instance of the CAS-Filemgr. In order 
+    to do this, we will edit the <tt>product-types.xml</tt> file in the 
+    <tt>policy/mp3</tt> directory. We will add the following as a child of the 
+    <tt>&lt;cas:producttypes&gt;</tt> node (we purposefully elide any
     commentary on the details of this configuration and leave it to the 
     reader):</p>
+
 <div class="source"><pre> 
 &lt;type id="urn:example:MP3" name="MP3"&gt;
   &lt;repository path="file:///usr/local/archive"/&gt;
@@ -442,12 +495,13 @@ total 51448
     &lt;/extractor&gt;
   &lt;/metExtractors&gt;
 &lt;/type&gt;
-</pre>
-</div>
-<p>Next, we will create a number of elements in the <code>elements.xml</code>
+</pre></div>
+    
+    <p>Next, we will create a number of elements in the <tt>elements.xml</tt>
     file. There will be an element node for each of the metadata elements we
     want to associate with MP3 products. We can do this be adding the following 
-    as children nodes of <code>&lt;cas:elements&gt;</code> tag:</p>
+    as children nodes of <tt>&lt;cas:elements&gt;</tt> tag:</p>
+ 
 <div class="source"><pre>     
 &lt;element id="urn:example:FileLocation" name="FileLocation"&gt;
   &lt;dcElement/&gt;
@@ -477,13 +531,14 @@ total 51448
   &lt;dcElement/&gt;
   &lt;description/&gt;
 &lt;/element&gt; 
-</pre>
-</div>
-<p>After we have configured the new metadata elements, we will need to map 
+</pre></div>    
+
+    <p>After we have configured the new metadata elements, we will need to map 
     these elements to our MP3 product. We do this by editing the 
-    <code>product-type-element-map.xml</code> file in the <code>policy/mp3</code>
+    <tt>product-type-element-map.xml</tt> file in the <tt>policy/mp3</tt>
     directory to add the following as a child node to 
-    <code>&lt;cas:producttypemap&gt;</code>:</p>
+    <tt>&lt;cas:producttypemap&gt;</tt>:</p>
+    
 <div class="source"><pre>       
 &lt;type id="urn:example:MP3"&gt;
   &lt;element id="urn:example:FileLocation"/&gt;
@@ -494,27 +549,30 @@ total 51448
   &lt;element id="urn:example:title"/&gt;
   &lt;element id="urn:example:Content-Type"/&gt; 
 &lt;/type&gt;
-</pre>
-</div>
-<p>A final configuration step will be to create the archive area for the 
+</pre></div> 
+    
+    <p>A final configuration step will be to create the archive area for the 
     CAS-Filemgr (You'll remember that we set the repository path for MP3 products 
-    in the <code>product-types.xml</code> file). In order to do this, we will just 
+    in the <tt>product-types.xml</tt> file). In order to do this, we will just 
     make the directory:</p>
-<div class="source"><pre>
+    
+    <div class="source"><pre>
 &gt; mkdir /usr/local/archive
-    </pre>
-</div>
-<p>We will now start the CAS-Filemgr instance. This instance will run on
+    </pre></div>
+    
+    <p>We will now start the CAS-Filemgr instance. This instance will run on
     port 9000 by default. In order to start the Filemgr, we will issue the 
     following commands:</p>
-<div class="source"><pre>
+    
+    <div class="source"><pre>
 &gt; cd /usr/local/src/cas-filemgr-1.8.0/bin
 &gt; ./filemgr start
-    </pre>
-</div>
-<p>Now that we have started the CAS-Filemgr, we will need to configure the
+    </pre></div>
+    
+    <p>Now that we have started the CAS-Filemgr, we will need to configure the
     CAS-Curator to use this Filemgr instance. In order to do this, we will add
     the following parameters to the CAS-Curator context file:</p>
+    
 <div class="source"><pre>    
 &lt;Parameter name="org.apache.oodt.cas.fm.url"
         value="http://localhost:9000"/&gt;
@@ -524,26 +582,30 @@ total 51448
 
 &lt;Parameter name="org.apache.oodt.cas.curator.fmProps"
         value="/usr/local/src/cas-filemgr-1.8.0/etc/filemgr.properties"/&gt;        
-</pre>
-</div>
-<p>Once we restart Tomcat, the CAS-Curator will now recognize the policy
+</pre></div>    
+    
+    <p>Once we restart Tomcat, the CAS-Curator will now recognize the policy
     and properties of the configured CAS-Filemgr instance and use this 
     instance during the ingest process.</p>
-<img src="../images/basic_filemgr.jpg" /><p>From the above image, you can see that the CAS-Filemgr configuration
+    
+    <img src="../images/basic_filemgr.jpg" alt="" /><p>From the above image, you can see that the CAS-Filemgr configuration
     has been picked up by CAS-Curator. If you double-click on MP3 in the left
     filemgr main pane, you will see the product types that are contained in
-    the mp3 policy: <code>GenericFile</code> which was part of the default
-    configuration, and <code>MP3</code> which we added. Clicking on MP3,
-    we bring up the ingest interface in the right filemgr main pane.</p>
-<img src="../images/basic_ingest.jpg" /><p>Once we drag the Bach-SuiteNo2.mp3 from the staging pane to the green
+    the mp3 policy: <tt>GenericFile</tt> which was part of the default
+    configuration, and <tt>MP3</tt> which we added. Clicking on MP3,
+    we bring up the ingest interface in the right filemgr main pane.</p> 
+    
+    <img src="../images/basic_ingest.jpg" alt="" /><p>Once we drag the Bach-SuiteNo2.mp3 from the staging pane to the green
     box in the right filemgr main pane, we can then select a metadata extractor
     from the pulldown menu and click on the "Save as Ingestion Task." This will
     add the Ingest task to the bottom pane as illustrated in the above 
     screenshot. In order to test file ingestion, we will click on the "Start"
     button.</p>
-<p>As a final step, we will confirm that the mp3 file was archived. We 
+    
+    <p>As a final step, we will confirm that the mp3 file was archived. We 
     can do this by listing the archive:</p>
-<div class="source"><pre>
+    
+    <div class="source"><pre>
 &gt; ls -lR /usr/local/archive
 total 0
 drwxr-xr-x  3 -  - 102 Nov 27 23:53 Bach-SuiteNo2.mp3
@@ -551,65 +613,42 @@ drwxr-xr-x  3 -  - 102 Nov 27 23:53 Bach
 /usr/local/archive//Bach-SuiteNo2.mp3:
 total 9344
 -rw-r--r--  1 -  -  4781079 Nov 25 20:14 Bach-SuiteNo2.mp3
-    </pre>
-</div>
-<p>Worth noting is the fact that our configuration of the CAS-Filemgr
-    included a selection of the <code>BasicVersioner</code> as the MP3 
+    </pre></div>
+    
+    <p>Worth noting is the fact that our configuration of the CAS-Filemgr
+    included a selection of the <tt>BasicVersioner</tt> as the MP3 
     product type versioner. This means that mp3s are placed at
     [archive_base]/[filename]/[filename] during ingest.</p>
-<p>We have now completed a base configuration of the CAS-Curator. In
+    
+    <p>We have now completed a base configuration of the CAS-Curator. In
     the <a href="../user/advanced.html">Advanced Guide</a>, we will cover 
     topics like changing the look and feel of the Curator, and security 
     configuration.</p>
-</div></div><div class="visualClear"></div></div><div class="triptychRight"><div class="columnBorder"><div class="visualPadding" id="rightPlate"><div id="navcolumn">&#13;
-           &#13;
-  &#13;
-&#13;
-  &#13;
-    &#13;
-  &#13;
-  &#13;
-    &#13;
-                   <h5>Project Documentation</h5>&#13;
-            <ul><li class="collapsed">&#13;
-                    <a href="../project-info.html">Project Information</a>&#13;
-                </li>&#13;
-              &#13;
-                &#13;
-              &#13;
-      &#13;
-            &#13;
-      &#13;
-            &#13;
-      &#13;
-            &#13;
-      &#13;
-              &#13;
-        <li class="collapsed">&#13;
-                    <a href="../project-reports.html">Project Reports</a>&#13;
-                </li>&#13;
+    
+    </div></div><div class="visualClear"></div></div><div class="triptychRight"><div class="columnBorder"><div class="visualPadding" id="rightPlate"><div id="navcolumn">&#13;
+             &#13;
+        &#13;
+                                <h5>Project Documentation</h5>&#13;
+                  <ul><li class="collapsed">&#13;
+                          <a href="../project-info.html" title="Project Information">Project Information</a>&#13;
+                  </li>&#13;
+                                                                                                                                                              <li class="collapsed">&#13;
+                          <a href="../project-reports.html" title="Project Reports">Project Reports</a>&#13;
+                  </li>&#13;
           </ul><h5>Software Documentation</h5>&#13;
-            <ul><li class="none">&#13;
-              <strong>Basic User's Guide</strong>&#13;
-        </li>&#13;
-              &#13;
-    <li class="none">&#13;
-                    <a href="../user/advanced.html">Advanced User's Guide</a>&#13;
-          </li>&#13;
-              &#13;
-    <li class="none">&#13;
-                    <a href="../api/index.html">REST API Guide</a>&#13;
+                  <ul><li class="none">&#13;
+            <strong>Basic User's Guide</strong>&#13;
           </li>&#13;
+                  <li class="none">&#13;
+                          <a href="../user/advanced.html" title="Advanced User's Guide">Advanced User's Guide</a>&#13;
+            </li>&#13;
+                  <li class="none">&#13;
+                          <a href="../api/index.html" title="REST API Guide">REST API Guide</a>&#13;
+            </li>&#13;
           </ul>&#13;
-                       &#13;
-  &#13;
-&#13;
-  &#13;
-    &#13;
-  &#13;
-  &#13;
-    &#13;
-        </div></div></div></div></div></div><div style="clear: both;"> </div></div><div id="push"></div></div><div id="footerWrapper"><div id="footerGradient"></div><div id="footer"><a id="footerLogo" href="http://oodt.apache.org/" name="footerLogo"></a><p>
+                   &#13;
+        &#13;
+            </div></div></div></div></div></div><div style="clear: both;"> </div></div><div id="push"></div></div><div id="footerWrapper"><div id="footerGradient"></div><div id="footer"><a id="footerLogo" href="http://oodt.apache.org/" name="footerLogo"></a><p>
                     Apache™ OODT is © 2010 by the Apache Software Foundation (ASF). Apache and the Apache
                     feather logo are trademarks of the ASF.
                 </p><p>