Changeset 98
- Timestamp:
- 1999-01-06T14:22:01+13:00 (25 years ago)
- Location:
- trunk/gsdl
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/import.pl
r91 r98 37 37 38 38 # get the list of plugins for this collection 39 @plugins = (" RecPlug", "HTMLPlug", "TXTPlug");40 if (-e "$ENV{'GSDLHOME'}/collect/$collection/ collect.cfg") {39 @plugins = ("HTMLPlug", "TXTPlug", "RecPlug"); 40 if (-e "$ENV{'GSDLHOME'}/collect/$collection/etc/collect.cfg") { 41 41 $collectcfg = &colcfg::read_collect_cfg ("$ENV{'GSDLHOME'}/collect/$collection/etc/collect.cfg"); 42 42 if (defined $collectcfg->{'plugins'}) { 43 43 @plugins = @{$collectcfg->{'plugins'}}; 44 44 } 45 } else { 46 print STDERR "WARNING - couldn't find collection configuration file\n"; 47 print STDERR " using default plugins\n"; 45 48 } 46 49 -
trunk/gsdl/perllib/arcinfo.pm
r14 r98 128 128 129 129 130 # returns the number of documents so far 131 sub size { 132 my $self = shift (@_); 133 return (scalar(@{$self->{'order'}})); 134 } 135 130 136 1; 131 137 -
trunk/gsdl/perllib/docsave.pm
r4 r98 32 32 $OID = "NULL" unless defined $OID; 33 33 34 # get the document's directory by inserting a / every 1-8 characters 35 # and removing the last / 36 my $doc_dir = $OID; 37 $doc_dir =~ s/(.{1,8})/$1\//g; 38 $doc_dir =~ s/\/$//; 39 $doc_dir .= ".dir"; 34 # get the document's directory. 35 my $doc_info = $self->{'archive_info'}->get_info($OID); 36 my $doc_dir = ""; 37 if (defined $doc_info && scalar(@$doc_info) >= 1) { 38 # this OID already has an assigned directory, use the 39 # same one. 40 $doc_dir = $doc_info->[0]; 41 42 } else { 43 # have to get a new document directory 44 my $doc_dir_rest = $OID; 45 my $doc_dir_num = 0; 46 do { 47 $doc_dir .= "/" if $doc_dir_num > 0; 48 if ($doc_dir_rest =~ s/^(.{1,8})//) { 49 $doc_dir .= $1; 50 $doc_dir_num++; 51 } 52 } while ($doc_dir_rest ne "" && 53 (-d "$archive_dir/$doc_dir.dir" || 54 ($self->{'archive_info'}->size() >= 1024 && $doc_dir_num < 2))); 55 $doc_dir .= ".dir"; 56 } 57 40 58 &util::mk_all_dir ("$archive_dir/$doc_dir"); 41 59 -
trunk/gsdl/perllib/mgbuilder.pm
r91 r98 34 34 35 35 # read in the collection configuration file 36 if (!-e "$ENV{'GSDLHOME'}/collect/$collection/ collect.cfg") {36 if (!-e "$ENV{'GSDLHOME'}/collect/$collection/etc/collect.cfg") { 37 37 die "mgbuilder::new - couldn't find collect.cfg for collection $collection\n"; 38 38 } -
trunk/gsdl/unicode/MAPPINGS/EASTASIA/GB/makemapfile.pl
r92 r98 312 312 "unicode/MAPPINGS/EASTASIA/GB", 313 313 "$encoding.TXT"); 314 #if (!&loadencoding ($encoding, $mapfile)) {315 if (!&loadmapencoding ($encoding)) {314 if (!&loadencoding ($encoding, $mapfile)) { 315 # if (!&loadmapencoding ($encoding)) { 316 316 die "couldn't load encoding $encoding"; 317 317 } … … 323 323 324 324 sub main { 325 makeencodingmapfile ("GBK"); 326 makeencodingmapfile ("GB2312"); 327 makeencodingmapfile ("GB12345"); 328 } 325 makeencodingmapfile ("BIG5"); 326 # makeencodingmapfile ("GBK"); 327 # makeencodingmapfile ("GB2312"); 328 # makeencodingmapfile ("GB12345"); 329 }
Note:
See TracChangeset
for help on using the changeset viewer.