Changeset 21551

Show
Ignore:
Timestamp:
21.01.2010 14:08:10 (9 years ago)
Author:
mdewsnip
Message:

Changed calls to GDBMUtils::serializeHash() to dbutil::convert_infodb_hash_to_string(). Part of removing GDBMUtils.pm and making the code less GDBM-specific.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/cgiactions/metadataaction.pm

    r20936 r21551  
    3030use cgiactions::baseaction; 
    3131 
     32use dbutil; 
    3233use GDBMUtils; 
    3334use ghtml; 
     
    329330    ## print STDERR "**** metavalue = $metavalue\n"; 
    330331 
    331     my $serialized_doc_rec = GDBMUtils::serializeHash($doc_rec); 
     332    my $serialized_doc_rec = &dbutil::convert_infodb_hash_to_string($doc_rec); 
    332333 
    333334    ## print STDERR "**** ser dr\n$serialized_doc_rec\n\n\n"; 
     
    845846    $doc_rec->{$metaname} = $filtered_metadata; 
    846847 
    847     my $serialized_doc_rec = GDBMUtils::serializeHash($doc_rec); 
     848    my $serialized_doc_rec = &dbutil::convert_infodb_hash_to_string($doc_rec); 
    848849 
    849850    my $cmd = "gdbmset \"$gdbm_db\" \"$docid\" \"$serialized_doc_rec\"";