= Release test step: Install Summa On A Stick = ## Please replace TITLE above. ## This describes what is needed to do a step in the release test. ## Please remember that the description must be operational. For instance ## Write the command "unzip foo.zip". ## Check the output is {{{...}}} ## Make sure that the success criteria are clear 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/false/true/g" summa-storage-build-4327/config/controllucene.properties }}} Configure the summa ingest module {{{ sed -i -e "s,,,g" summa-ingest-build-4327/config/targets.properties.xml echo '' >> summa-ingest-build-4327/config/targets.properties.xml echo " $PWD/data/doms" >> summa-ingest-build-4327/config/targets.properties.xml echo " true" >> summa-ingest-build-4327/config/targets.properties.xml echo " dk.statsbiblioteket.summa.ingest.OAI.OAIHarvestDirectoryDigester" >> summa-ingest-build-4327/config/targets.properties.xml echo " false" >> summa-ingest-build-4327/config/targets.properties.xml echo " UTF-8" >> summa-ingest-build-4327/config/targets.properties.xml echo " " >> summa-ingest-build-4327/config/targets.properties.xml echo " true" >> summa-ingest-build-4327/config/targets.properties.xml echo " record" >> summa-ingest-build-4327/config/targets.properties.xml echo " identifier" >> summa-ingest-build-4327/config/targets.properties.xml echo " DOMS" >> summa-ingest-build-4327/config/targets.properties.xml echo "" >> summa-ingest-build-4327/config/targets.properties.xml sed -i -e "s/oai/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/(true|false)/true/g" summa-index-build-4327/config/index.properties.xml sed -i -e "s/\/\/localhost:8500\/summa_storage/\/\/localhost:8500\/summa_storage/g" summa-index-build-4327/config/index.properties.xml sed -i -e 's,.*\.xsl,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///g" summa-index-build-4327/config/index.properties.xml sed -i -e "s/false/false/g" summa-index-build-4327/config/index.properties.xml sed -i -e "s///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,http://developer.statsbiblioteket.dk/folkebib/services/SummaSearch?WSDL,http://localhost:7900/summaws/services/SummaSearch?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 }}}