Campus Publications: Architecture and Indexing for XTF

Table of Contents

1 Architecture

1.1 Test

1.1.1 Front end

http://campub-test.lib.uchicago.edu

staff:/projects/websites/campub-test

1.1.2 Back end

campub-xtf:/usr/local/apache-tomcat-6.0/webapps/xtf/

1.2 Production

1.2.1 Front end

http://campub.lib.uchicago.edu

staff:/projects/websites/campub

1.2.2 Back end

xtf.lib.uchicago.edu:/usr/local/apache-tomcat-6.0/webapps/campub
service tomcat6 restart (as user xtf)
http://xtf.lib.uchicago.edu:8180/campub/search

2 Indexing

Make a directory called 'in' in the current directory. The files in this directory should match the following pattern:

in
  mvol-0428-0044-00
    mvol-0428-0033.dc.xml
    mvol-0428-0033.pdf
    mvol-0428-0033.txt
    jpg
      00000001.jpg
      ...
    pos
      00000001.pos
      ...
    tif
      00000001.tif.fits.xml
      ...
    xml
      00000001.xml
      ...
  ...

Run this script:

sh convert

The script will make an 'out' directory and place output directories and files there. Those output directories can be uploaded to the XTF data directory.

If there is an error, you can get more detailed error messages by running the script to build a metadata file manually:

sh convertpresdatatobookreader.sh in/mvol-0428-0033-00

Run the XTF textindexer:

/usr/local/apache-tomcat-6.0/webapps/xtf/bin/textIndexer -index default

or

/usr/local/apache-tomcat-6.0/webapps/xtf/bin/textIndexer -clean -index default

Stop and restart Tomcat:

/usr/local/apache-tomcat-6.0/bin/catalina.sh stop
/usr/local/apache-tomcat-6.0/bin/catalina.sh start

Author: John Jung / Charles Blair (c-blair@uchicago.edu)

Date:

Emacs 25.3.1 (Org mode 8.2.10)

Valid XHTML 1.0 Strict