Release test step: Install Summa On A Stick
Download Summa on a stick and run the setup script.
cd .. wget http://hera.statsbiblioteket.dk/~te/SummaOnAStick-0.2.7/summa-build-4327.zip unzip summa-build-4327.zip cd summa-build-4327 ./summa-setup.sh
Configure the lucene storage
sed -i -e "s/<entry key=\"create_new_index\">false/<entry key=\"create_new_index\">true/g" summa-storage-build-4327/config/controllucene.properties
Configure the summa ingest module
sed -i -e "s,</properties>,,g" summa-ingest-build-4327/config/targets.properties.xml echo '<!-- Properties for the DOMS target -->' >> summa-ingest-build-4327/config/targets.properties.xml echo " <entry key=\"doms\">$PWD/data/doms</entry>" >> summa-ingest-build-4327/config/targets.properties.xml echo " <entry key=\"doms_run\">true</entry>" >> summa-ingest-build-4327/config/targets.properties.xml echo " <entry key=\"doms_DigesterClass\">dk.statsbiblioteket.summa.ingest.OAI.OAIHarvestDirectoryDigester</entry>" >> summa-ingest-build-4327/config/targets.properties.xml echo " <entry key=\"doms_full_ingest\">false</entry>" >> summa-ingest-build-4327/config/targets.properties.xml echo " <entry key=\"doms_encoding\">UTF-8</entry>" >> summa-ingest-build-4327/config/targets.properties.xml echo " <entry key=\"doms_prefix\"></entry>" >> summa-ingest-build-4327/config/targets.properties.xml echo " <entry key=\"doms_check_output\">true</entry>" >> summa-ingest-build-4327/config/targets.properties.xml echo " <entry key=\"doms_record_element\">record</entry>" >> summa-ingest-build-4327/config/targets.properties.xml echo " <entry key=\"doms_id_element\">identifier</entry>" >> summa-ingest-build-4327/config/targets.properties.xml echo " <entry key=\"doms_base_name\">DOMS</entry>" >> summa-ingest-build-4327/config/targets.properties.xml echo "</properties>" >> summa-ingest-build-4327/config/targets.properties.xml sed -i -e "s/<entry key=\"targets\">oai/<entry key=\"targets\">doms/g" summa-ingest-build-4327/config/targets.properties.xml
Install the XSLTs from the doms project in summa
mkdir summa-index-build-4327/config/targets/doms cp ../doms/disseminator_webservice/data/*.xslt summa-index-build-4327/config/targets/doms mv summa-index-build-4327/config/targets/doms/digitalObjectBundleToIndexDocument.xslt summa-index-build-4327/config/targets/doms/doms_index.xsl
Configure the summa indexer to use the doms harvest
sed -i -r -e "s/<entry key=\"OpenArchive_run\">(true|false)/<entry key=\"DOMS_run\">true/g" summa-index-build-4327/config/index.properties.xml sed -i -e "s/<entry key=\"OpenArchive_io_storage\">\/\/localhost:8500\/summa_storage/<entry key=\"DOMS_io_storage\">\/\/localhost:8500\/summa_storage/g" summa-index-build-4327/config/index.properties.xml sed -i -e 's,<entry key=\"OpenArchive_xslt_url\">.*\.xsl,<entry key=\"DOMS_xslt_url\">file://'"$PWD"'/summa-index-build-4327/config/targets/doms/doms_index.xsl,g' summa-index-build-4327/config/index.properties.xml sed -i -e "s/<entry key=\"OpenArchive_last_id\">/<entry key=\"DOMS_last_id\">/g" summa-index-build-4327/config/index.properties.xml sed -i -e "s/<entry key=\"OpenArchive_complete_full_index\">false/<entry key=\"DOMS_complete_full_index\">false/g" summa-index-build-4327/config/index.properties.xml sed -i -e "s/<entry key=\"OpenArchive_time\">/<entry key=\"DOMS_time\">/g" summa-index-build-4327/config/index.properties.xml
Configure the summa harvest
sed -i -e "s,alhena,localhost,g" summa-harvest-build-4327/config/targets.xml
Configure the simplesumma webservice to use the local summa index
mkdir -p .tmp pushd .tmp > /dev/null unzip -qo ../simplesumma.war sed -i -e "s,<wsdl>http://developer.statsbiblioteket.dk/folkebib/services/SummaSearch?WSDL</wsdl>,<wsdl>http://localhost:7900/summaws/services/SummaSearch?WSDL</wsdl>,g" WEB-INF/classes/services.xml mkdir stylesheets/xslt/full_record/doms cp ../../doms/disseminator_webservice/data/digitalObjectBundleToHTML.xslt stylesheets/xslt/full_record/doms/domsHTML.xslt sed -i -e "s&} else {&} else if (record_id.startsWith(\"doms\")) { record_xslt = basepath + \"stylesheets/xslt/full_record/doms/domsHTML.xslt\";} else { &g" showrecord.jsp cp ../../doms/disseminator_webservice/data/project.css stylesheets/css zip -q -r simplesumma.war * popd > /dev/null rm simplesumma.war mv .tmp/simplesumma.war . rm -rf .tmp
Give the summaws webservice the libs it require to function
mkdir -p .tmp pushd .tmp > /dev/null unzip -qo ../summaws.war cp ../../doms/lib/xalan-j_2_7_1-* WEB-INF/lib/ zip -q -r summaws.war * popd > /dev/null rm summaws.war mv .tmp/summaws.war . rm -rf .tmp