Changeset 3872 for trunk/gsdl3/bin/script/gs2_mkcol.pl
- Timestamp:
- 2003-03-13T12:16:00+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/bin/script/gs2_mkcol.pl
r3771 r3872 125 125 $line =~ s/\*\*defaultindex\*\*/$defaultindex/g; 126 126 $line =~ s/\*\*indexmeta\*\*/$indexmeta/g; 127 127 $line =~ s/\*\*xmlindexes\*\*/$xmlindexes/g; 128 $line =~ s/\*\*xmlplugins\*\*/$xmlpluginstring/g; 129 128 130 print OUTFILE $line; 129 131 } … … 239 241 # get the strings to include. 240 242 $pluginstring = ""; 243 $xmlpluginstring = ""; 241 244 foreach $plugin (@plugin) { 242 245 if ($plugin eq RecPlug) { 243 246 $pluginstring .= "plugin $plugin -use_metadata_files\n"; 247 $xmlpluginstring .= "<plugin name='$plugin'><option name='use_metadata_files'/></plugin>\n"; 244 248 } else { 245 249 $pluginstring .= "plugin $plugin\n"; 250 $xmlpluginstring .= "<plugin name='$plugin'/>\n"; 246 251 } 247 252 } … … 269 274 270 275 # set up the default indexes - this could be a command line option at some stage 276 # the names are added in here for the xml ones, but they should be added after building once the names are known. 271 277 if ($buildtype eq "mg") { 272 278 $indexes = "document:text document:Title document:Source"; … … 274 280 $indexmeta = "collectionmeta .document:text \"text\"\ncollectionmeta .document:Title \"titles\"\ncollectionmeta .document:Source \"filenames\"\n"; 275 281 282 $xmlindexes = "<index name='dtx' content='text' level='Document'><displayName lang='en'>text</displayName></index>\n<index name='dtt' content='Title' level='Document'><displayName lang='en'>titles</displayName></index>\n<index name='dsr' content='Source' level='Document'><displayName lang='en'>filenames</displayName></index>"; 276 283 } elsif ($buildtype eq "mgpp") { 277 284 $indexes = "text,metadata"; 278 285 $defaultindex = "text,metadata"; 279 286 $indexmeta = "collectionmeta .text,metadata \"text\"\n"; 287 $xmlindexes = "<index name='tm' content='text,metadata' level='Document'><displayName lang='en'>text</displayName></index>"; 280 288 } else { 281 289 print STDOUT "Error: buildtype should be mg or mgpp, but its $buildtype\n";
Note:
See TracChangeset
for help on using the changeset viewer.