Changeset 24297
- Timestamp:
- 2011-07-20T18:52:50+12:00 (12 years ago)
- Location:
- main/trunk/greenstone2
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/mkcol.pl
r22219 r24297 353 353 # load default plugins if none were on command line 354 354 if (!scalar(@plugin)) { 355 @plugin = (ZIPPlugin,GreenstoneXMLPlugin, TextPlugin,HTMLPlugin,EmailPlugin,355 @plugin = (ZIPPlugin,GreenstoneXMLPlugin,EmbeddedMetadataPlugin,TextPlugin,HTMLPlugin,EmailPlugin, 356 356 PDFPlugin,RTFPlugin,WordPlugin,PostScriptPlugin,PowerPointPlugin,ExcelPlugin,ImagePlugin,ISISPlugin,NulPlugin,MetadataXMLPlugin,ArchivesInfPlugin,DirectoryPlugin); 357 357 } -
main/trunk/greenstone2/build-src/packages/Makefile
r23800 r24297 32 32 PACKAGEDIRS = 33 33 34 USE_WVWARE= 034 USE_WVWARE=1 35 35 ifeq ($(USE_WVWARE), 1) 36 36 PACKAGEDIRS += wv/wv-gs -
main/trunk/greenstone2/collect/demo/etc/collect.cfg
r23487 r24297 15 15 # following two plugins not needed for the demo collection, but are useful to 16 16 # include for tutorial purposes 17 plugin 18 plugin 17 plugin ImagePlugin 18 plugin ZIPPlugin 19 19 plugin MetadataXMLPlugin 20 20 plugin ArchivesInfPlugin … … 25 25 classify Hierarchy -metadata dls.Subject -sort dls.Title 26 26 27 classify List - sort_leaf_nodes_using dls.Title -metadata dls.Organization-bookshelf_type always -partition_type_within_level constant_size27 classify List -metadata dls.Organization -sort_leaf_nodes_using dls.Title -bookshelf_type always -partition_type_within_level constant_size 28 28 29 29 classify List -metadata dls.Keyword -partition_type_within_level constant_size -buttonname Howto -
main/trunk/greenstone2/collect/modelcol/etc/collect.cfg
r22353 r24297 6 6 infodbtype **infodbtype** 7 7 8 indexes text dc.Title,ex. Title ex.Source8 indexes text dc.Title,ex.dc.Title,ex.Title ex.Source 9 9 defaultindex text 10 10 … … 20 20 collectionmeta collectionextra "**about**" 21 21 collectionmeta .text "_labeltext_" 22 collectionmeta .dc.Title, Title "_labelTitle_"22 collectionmeta .dc.Title,ex.dc.Title,ex.Title "_labelTitle_" 23 23 collectionmeta .Source "_labelSource_" 24 24 collectionmeta .document "_textdocument_" -
main/trunk/greenstone2/etc/main.cfg
r23820 r24297 23 23 # Set status to "enabled" if you want the Maintenance and 24 24 # Administration facility to be available. 25 status disabled 25 #status disabled 26 status enabled 26 27 27 28 # Set collector to "enabled" if you want the "collector" -
main/trunk/greenstone2/etc/oai.cfg
r23235 r24297 42 42 43 43 # The OAI repository name - human readable 44 repositoryName "" 44 #repositoryName "" 45 repositoryName "Greenstone" 45 46 46 47 # The OAI repository domain name or unique identifier - used for generating 47 48 # the document identifiers, which will be like: 48 49 # oai:reposId:coll:oid 49 repositoryId "" 50 #repositoryId "" 51 repositoryId "greenstone" 50 52 51 53 # version is which oai id scheme is used for ids. Can be 1.1 or 2.0. … … 75 77 # and this is followed by one or more collection names. The collection name 76 78 # is the name of the collection's folder in the collect directory. 77 oaicollection demo documented-examples/oai-e 79 oaicollection demo documented-examples/oai-e oaipdf 78 80 79 81 # Optional, set name and description for each collection -
main/trunk/greenstone2/gsicontrol.bat
r24295 r24297 178 178 :: reset-gsdlhome forces configure-cgi by renaming any 179 179 :: existing gsdlsite.cfg and by deleting Mac .app files 180 :: However, we only relocate if there is a gsdlsite.cfg file with its gsdlhome 181 :: property the same as the current (greenstone installation) directory 180 182 :resethome 181 183 echo. 182 if exist "%GSDLHOME%\%cgibin%\gsdlsite.cfg" ( 183 move "%GSDLHOME%\%cgibin%\gsdlsite.cfg" "%GSDLHOME%\%cgibin%\gsdlsite.cfg.bak" 184 echo **** Regenerating %GSDLHOME%\%cgibin%\gsdlsite.cfg 185 echo **** Previous version of file now %GSDLHOME%\%cgibin%\gsdlsite.cfg.bak 186 ) 187 184 if not exist "%GSDLHOME%\%cgibin%\gsdlsite.cfg" goto relocate 185 186 FOR /F "tokens=2" %%G IN ('findstr /R ^gsdlhome "%cgibin%\gsdlsite.cfg"') do set gshome=%%G 187 if "x%gshome%" == "x%GSDLHOME%" set gshome=& goto exit 188 189 move "%GSDLHOME%\%cgibin%\gsdlsite.cfg" "%GSDLHOME%\%cgibin%\gsdlsite.cfg.bak" 190 echo **** Regenerating %GSDLHOME%\%cgibin%\gsdlsite.cfg 191 echo **** Previous version of file now %GSDLHOME%\%cgibin%\gsdlsite.cfg.bak 192 set gshome= 193 194 :relocate 188 195 for /F "delims=*" %%T in ('"echo %GSDLHOME%| %_sed% s@\\@\/@g"') do set safepath=%%T 189 196 … … 214 221 %_sed% "s@\*\*GSDLHOME\*\*@\"%safepath%\"@g" "%cgibin%\gsdlsite.cfg.in" >> "%cgibin%\gsdlsite.cfg" 215 222 set safepath= 216 217 if exist "%cgibin%\gsdlsite.cfg.bak" FOR /F "tokens=2" %%G IN ('findstr /R ^collecthome "%cgibin%\gsdlsite.cfg.bak"') do set colhome=%%G218 if not "%colhome%" == "" echo collecthome %colhome% >> "%cgibin%\gsdlsite.cfg"& echo. >> "%cgibin%\gsdlsite.cfg"219 set colhome=220 223 221 224 goto cgifin -
main/trunk/greenstone2/gsicontrol.sh
r24295 r24297 41 41 echo "" >> "$cgibin/gsdlsite.cfg" ; 42 42 sed "s@\*\*GSDLHOME\*\*@$GSDLHOME@g" "$cgibin/gsdlsite.cfg.in" >> "$cgibin/gsdlsite.cfg" ; 43 # preserve the user-assigned collecthome property, if any44 if test -e "$GSDLHOME/$cgibin/gsdlsite.cfg.bak" ; then45 collecthome=`egrep "^collecthome" "$cgibin/gsdlsite.cfg.bak" | awk '{print $2}'` ;46 if test -n $collecthome ; then47 echo "collecthome $collecthome" >> "$cgibin/gsdlsite.cfg" ;48 echo "" >> "$cgibin/gsdlsite.cfg" ;49 fi50 fi51 43 else 52 44 echo "WARNING: Nothing done for make configure-cgi." ; … … 175 167 } 176 168 177 # forces configure-cgi by deleting gsdlsite.cfg 169 # Forces configure-cgi by renaming gsdlsite.cfg 170 # but only if we actually *need* to relocate gsdlhome. 171 # We relocate at all times, except when there is a gsdlsite.cfg file with its 172 # gsdlhome property the same as the current (greenstone installation) directory 178 173 function reset-gsdlhome { 179 174 echo "" ; 175 relocate=yes ; 180 176 if test -e "$GSDLHOME/$cgibin/gsdlsite.cfg" ; then 181 /bin/mv "$GSDLHOME/$cgibin/gsdlsite.cfg" "$GSDLHOME/$cgibin/gsdlsite.cfg.bak" ; 182 echo "**** Regenerating $GSDLHOME/$cgibin/gsdlsite.cfg" ; 183 echo "**** Previous version of file now $GSDLHOME/$cgibin/gsdlsite.cfg.bak" ; 184 fi 185 186 apache_home_os="$GSDLHOME/apache-httpd/$GSDLOS$GSDLARCH" 187 188 if test ! -e "$apache_home_os/bin/apachectl.in" ; then 189 make apache-for-dist 190 fi 177 stored_gsdlhome=`egrep "^gsdlhome" "$cgibin/gsdlsite.cfg" | awk '{print $2}'` ; 178 if [ "x$stored_gsdlhome" != "x$GSDLHOME" ]; then 179 /bin/mv "$GSDLHOME/$cgibin/gsdlsite.cfg" "$GSDLHOME/$cgibin/gsdlsite.cfg.bak" ; 180 echo "**** Regenerating $GSDLHOME/$cgibin/gsdlsite.cfg" ; 181 echo "**** Previous version of file now $GSDLHOME/$cgibin/gsdlsite.cfg.bak" ; 182 else 183 relocate= 184 fi 185 fi 191 186 192 replace_list="conf/extra/httpd-dav.conf \ 187 if [ "x$relocate" = "xyes" ]; then 188 apache_home_os="$GSDLHOME/apache-httpd/$GSDLOS$GSDLARCH" 189 190 if test ! -e "$apache_home_os/bin/apachectl.in" ; then 191 make apache-for-dist 192 fi 193 194 replace_list="conf/extra/httpd-dav.conf \ 193 195 conf/extra/httpd-manual.conf \ 194 196 conf/extra/httpd-autoindex.conf \ … … 218 220 include/ap_config_layout.h" 219 221 220 221 /bin/cp "$apache_home_os/bin/$one_file.in" "$apache_home_os/bin/$one_file"222 223 224 225 /bin/cp "$apache_home_os/$one_file.in" "$apache_home_os/$one_file"226 227 228 229 230 231 232 233 222 for one_file in apachectl envvars envvars-std ; do 223 /bin/cp "$apache_home_os/bin/$one_file.in" "$apache_home_os/bin/$one_file" 224 done 225 226 for one_file in $replace_list ; do 227 /bin/cp "$apache_home_os/$one_file.in" "$apache_home_os/$one_file" 228 done 229 230 /bin/cp "$apache_home_os/bin/apr-1-config.in" "$apache_home_os/bin/apr-1-config" 231 232 /bin/cp "$apache_home_os/bin/apu-1-config.in" "$apache_home_os/bin/apu-1-config" 233 234 /bin/cp "$apache_home_os/build/config_vars.mk.in" "$apache_home_os/build/config_vars.mk" 235 234 236 # replace template files with active versions. The following will generate a httpd.conf 235 237 # file with placeholder strings, all of which we'll replace shortly hereafter. 236 bash "$apache_home_os/install-bindist.sh" "$apache_home_os" 237 238 log4jprop=$GSDLHOME/lib/java/log4j.properties 239 sed "s^@gsdl2home@^$GSDLHOME^g" "$log4jprop.in" > "$log4jprop" 240 241 for one_file in gs2-server.app gli.app client-gli.app gems.app ; do 242 if test -e "$one_file/Contents/document.wflow" ; then 243 rm -f "$one_file/Contents/document.wflow" 244 fi 245 done 246 247 configure-web $1 238 bash "$apache_home_os/install-bindist.sh" "$apache_home_os" 239 240 log4jprop=$GSDLHOME/lib/java/log4j.properties 241 sed "s^@gsdl2home@^$GSDLHOME^g" "$log4jprop.in" > "$log4jprop" 242 243 for one_file in gs2-server.app gli.app client-gli.app gems.app ; do 244 if test -e "$one_file/Contents/document.wflow" ; then 245 rm -f "$one_file/Contents/document.wflow" 246 fi 247 done 248 249 configure-web $1 250 fi 248 251 } 249 252
Note:
See TracChangeset
for help on using the changeset viewer.