How To Simplify Retrieval Of Managed Content

If managed content happens to be on the same file system as Fedora, it is not yet possible to copy those files directly during the ingest. Instead, the file upload servlet has to be used. In order to provide the files using valid URLs, the following method can be applied:
  • Create a Tomcat FileDirContext:
<Context path="/managed" docBase="managed" reloadable="true" crossContext="true">
  <Resources className="org.apache.naming.resources.FileDirContext" 
             allowLinking="true" 
             caseSensitive="false" 
  />
</Context>
  • Create a symlink to make the filesystem available for Tomcat's docBase:
ln -s /data/managedContent /data/fedora/tomcat/webapps/managed
  • Adapt the digital objects so that the contentLocation URL of datastreams reflect the mapped file system.
<foxml:datastream CONTROL_GROUP="M" ID="ds1978000001full"  >
  <foxml:datastreamVersion ID="dsv1978000001full" MIMETYPE="text/xml" >
    <foxml:contentLocation 
        REF="http://localhost:8082/managed/1978000001/1978000001_full.xml" 
        TYPE="URL"/>
  </foxml:datastreamVersion>
</foxml:datastream>

Add new attachment

In order to upload a new attachment to this page, please use the following box to find the file, then click on “Upload”.
« This page (revision-1) was last changed on 10-Jun-2008 15:07 by KST [RSS]