Changeset 21646 for main/trunk/greenstone2/perllib/ClassifyTreeModel.pm
- Timestamp:
- 2010-01-26T17:30:08+13:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/ClassifyTreeModel.pm
r21564 r21646 18 18 sub new() 19 19 { 20 my ($class, $collection, $ root) = @_;20 my ($class, $collection, $infodbtype, $root) = @_; 21 21 my $debug = 0; 22 print STDERR "ClassifyTreeModel.new(\"$collection\", \"$root\")\n" unless !$debug;22 print STDERR "ClassifyTreeModel.new(\"$collection\", $infodbtype, \"$root\")\n" unless !$debug; 23 23 # Store the variables 24 24 my $self = {}; 25 25 $self->{'collection'} = $collection; 26 $self->{'infodbtype'} = $infodbtype; 26 27 $self->{'debug'} = $debug; 27 28 $self->{'root'} = $root; … … 122 123 123 124 my $index_text_directory_path = &util::filename_cat($ENV{'GSDLHOME'}, "collect", $self->getCollection(), "index", "text"); 124 my $infodb_file_path = &dbutil::get_infodb_file_path( "gdbm", $self->getCollection(), $index_text_directory_path);125 if (&dbutil::read_infodb_entry( "gdbm", $infodb_file_path, $clid) =~ /\w+/)125 my $infodb_file_path = &dbutil::get_infodb_file_path($self->{'infodbtype'}, $self->getCollection(), $index_text_directory_path); 126 if (&dbutil::read_infodb_entry($self->{'infodbtype'}, $infodb_file_path, $clid) =~ /\w+/) 126 127 { 127 128 # Since the CLID can directly reference the correct entry in the info database we
Note:
See TracChangeset
for help on using the changeset viewer.