Changeset 10538


Ignore:
Timestamp:
2005-08-19T12:15:51+12:00 (19 years ago)
Author:
kjdon
Message:

add assocfilepath metadata always, even if no associated files. with lucene, all doc types have their doc.xml as a kind of assocfile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/docsave.pm

    r10431 r10538  
    493493    &util::hard_link ($source_filename, $filename);
    494494    }
    495            
     495         
     496    # set the assocfile path (even if we have no assoc files - need this for lucene)
     497    $doc_obj->set_utf8_metadata_element ($doc_obj->get_top_section(),
     498                     "assocfilepath",
     499                     "$doc_dir");
    496500    foreach my $assoc_file_rec (@{$doc_obj->get_assoc_files()}) {
    497501    my ($dir, $afile) = $assoc_file_rec->[1] =~ /^(.*?)([^\/\\]+)$/;
     
    529533                     "gsdlassocfile",
    530534                     "$afile:$assoc_file_rec->[2]:$dir");
    531         $doc_obj->set_utf8_metadata_element ($doc_obj->get_top_section(),
    532                          "assocfilepath",
    533                          "$doc_dir");
    534535    } elsif ($self->{'verbosity'} > 2) {
    535536        print $outhandle "docsave::process couldn't copy the associated file " .
Note: See TracChangeset for help on using the changeset viewer.