Differences between revisions 3 and 4
Revision 3 as of 2009-10-23 12:16:09
Size: 2574
Comment:
Revision 4 as of 2009-10-26 09:04:41
Size: 2680
Editor: HenrikKirk
Comment:
Deletions are marked like this. Additions are marked like this.
Line 59: Line 59:

Samples settings files are placed in ''conf/wayback/*'' and is used in the wayback.build.xml ant file.

Tools in Wayback Module

Action(edit)

dk.netarkivet.wayback.NetarchiveResourceStore

Wayback is a tool for browsing in webarchives. It can be downloaded from http://archive-access.sourceforge.net/projects/wayback/. The NetarchiveSuite plugin for wayback is a class NetarchiveResourceStore which implements org.archive.wayback.ResourceStore. NetarchiveResourceStore instantiates a connection to a NetarchiveSuite ArcRepository and retrieves archive data from it via NetarchiveSuite.

In order to make use of the plugin, it is necessary to

  1. Copy the required jar files into the lib-directory of your wayback installation
  2. Ensure that wayback has access to a NetarchiveSuite settings file with the necessary connection information

  3. Configure wayback to use NetarchiveResourceStore

The lib directory for wayback will be under wayback/WEB-INF/lib in your tomcat webapps directory. Copy into the lib directory all the jar files in netarchivesuite/lib except

 dk.netarkivet.deploy.jar
 dk.netarkivet.harvester.jar
 dk.netarkivet.viewerproxy.jar
 dk.netarkivet.monitor.jar

and the jar files for the packages wayback, je, jericho, jetty, junit, poi and libidn. These are either not required or aleady included in the wayback distribution.

The NetarchiveSuite settings file location can be specified in the catalina.sh file of your tomcat with a line like CATALINA_OPTS="-Ddk.netarkivet.settings.file=/home/user/settings_for_my_repository.xml".

NetarchiveResourceStore has been tested with a wayback localcdxcollection using settings like:

<bean id="localcdxcollection" class="org.archive.wayback.webapp.WaybackCollection">

     <property name="resourceStore">
       <bean class="dk.netarkivet.wayback.NetarchiveResourceStore">
       </bean>     
     </property>


    <property name="resourceIndex">   
          <bean class="org.archive.wayback.resourceindex.LocalResourceIndex">
          <property name="source">
          <bean class="org.archive.wayback.resourceindex.CompositeSearchResultSource">
            <property name="CDXSources">
              <list>                
                 <value>index1.cdx</value>
                 <value>index2.cdex</value>
              </list>
            </property>
          </bean>     
 
        </property>
        <property name="maxRecords" value="40000" />
      </bean>

    </property>
  </bean>

but should work with other types of wayback collection.

Samples settings files are placed in conf/wayback/* and is used in the wayback.build.xml ant file.

Additional Tools Manual 3.10/Tools in Wayback Module (last edited 2010-08-16 10:24:45 by localhost)