Changeset 24754


Ignore:
Timestamp:
2011-10-13T13:23:05+13:00 (13 years ago)
Author:
sjm84
Message:

Some changes to support the store_metadata_coverage option

Location:
main/trunk/greenstone2/perllib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/basebuilder.pm

    r24495 r24754  
    316316}
    317317
     318sub set_store_metadata_coverage {
     319    my $self = shift (@_);
     320    my ($store_metadata_coverage) = @_;
     321   
     322    $self->{'buildproc'}->set_store_metadata_coverage($store_metadata_coverage);
     323}
     324
    318325sub compress_text {
    319326    my $self = shift (@_);
     
    458465    $self->{'buildproc'}->set_indexing_text (0);
    459466    $self->{'buildproc'}->set_store_text(1);
    460     $self->{'buildproc'}->set_store_metadata_coverage ($self->{'collect_cfg'}->{'store_metadata_coverage'});
    461467
    462468    # make_infodatabase needs full reset even for incremental build
     
    708714    my $mdprefix_fields = $self->{'buildproc'}->{'mdprefix_fields'};
    709715    foreach my $prefix (keys %$mdprefix_fields)
    710     {
     716    {   
    711717    push(@{$collection_infodb->{"metadataset"}}, $prefix);
    712718
  • main/trunk/greenstone2/perllib/basebuildproc.pm

    r24404 r24754  
    525525            push(@{$section_infodb{$field}}, $value);
    526526
    527             if ($section eq "" && $self->{'store_metadata_coverage'} =~ /^true$/i)
     527            if ($section eq ""
     528            && (($self->{'store_metadata_coverage'} =~ /^true$/i)
     529                || $self->{'store_metadata_coverage'} eq "1"))
    528530            {
    529531            $self->infodb_metadata_stats($field,$edit_mode);
  • main/trunk/greenstone2/perllib/colcfg.pm

    r24741 r24754  
    196196                 q/sortmeta|removesuffix|removeprefix|create_images|/ .
    197197                 q/maxnumeric|languagemetadata/ .
    198                  q/no_strip_html|index|sections_index_document_metadata)$/,
     198                 q/no_strip_html|index|sections_index_document_metadata)$/.
     199                     q/store_metadata_coverage)$/,
    199200                 q/^(maintainer|languages|indexsubcollections|orthogonalbuildtypes|/ .
    200201                 q/indexes|indexoptions|dontbuild|dontgdbm|mirror|levels|/.
  • main/trunk/greenstone2/perllib/strings.properties

    r24728 r24754  
    114114
    115115buildcol.no_strip_html:Do not strip the html tags from the indexed text (only used for mgpp collections).
     116
     117buildcol.store_metadata_coverage:Include statistics about which metadata sets are used in a collection, including which actual metadata terms are used.  This is useful in the built collection if you want the list the metadata values that are used in a particular collection.
    116118
    117119buildcol.no_text:Don't store compressed text. This option is useful for minimizing the size of the built indexes if you intend always to display the original documents at run time (i.e. you won't be able to retrieve the compressed text version).
Note: See TracChangeset for help on using the changeset viewer.