Changeset 24754
- Timestamp:
- 2011-10-13T13:23:05+13:00 (13 years ago)
- Location:
- main/trunk/greenstone2/perllib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/basebuilder.pm
r24495 r24754 316 316 } 317 317 318 sub 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 318 325 sub compress_text { 319 326 my $self = shift (@_); … … 458 465 $self->{'buildproc'}->set_indexing_text (0); 459 466 $self->{'buildproc'}->set_store_text(1); 460 $self->{'buildproc'}->set_store_metadata_coverage ($self->{'collect_cfg'}->{'store_metadata_coverage'});461 467 462 468 # make_infodatabase needs full reset even for incremental build … … 708 714 my $mdprefix_fields = $self->{'buildproc'}->{'mdprefix_fields'}; 709 715 foreach my $prefix (keys %$mdprefix_fields) 710 { 716 { 711 717 push(@{$collection_infodb->{"metadataset"}}, $prefix); 712 718 -
main/trunk/greenstone2/perllib/basebuildproc.pm
r24404 r24754 525 525 push(@{$section_infodb{$field}}, $value); 526 526 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")) 528 530 { 529 531 $self->infodb_metadata_stats($field,$edit_mode); -
main/trunk/greenstone2/perllib/colcfg.pm
r24741 r24754 196 196 q/sortmeta|removesuffix|removeprefix|create_images|/ . 197 197 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)$/, 199 200 q/^(maintainer|languages|indexsubcollections|orthogonalbuildtypes|/ . 200 201 q/indexes|indexoptions|dontbuild|dontgdbm|mirror|levels|/. -
main/trunk/greenstone2/perllib/strings.properties
r24728 r24754 114 114 115 115 buildcol.no_strip_html:Do not strip the html tags from the indexed text (only used for mgpp collections). 116 117 buildcol.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. 116 118 117 119 buildcol.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.