Changeset 12274


Ignore:
Timestamp:
2006-07-21T15:54:02+12:00 (18 years ago)
Author:
mdewsnip
Message:

Added support for "indexed_section" and "info_section" gsdldoctype metadata, which is the same as "indexed_doc" and "info_doc" but at the section level.

Location:
trunk/gsdl/perllib
Files:
3 edited

Legend:

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

    r12272 r12274  
    146146    # but we need to put the section tag placeholders in there so the
    147147    # sections match up with gdbm db
    148     if (!$indexed_doc) {
     148    my $indexed_section = $doc_obj->get_metadata_element($section, "gsdldoctype") || "indexed_section";
     149    if (!$indexed_doc || $indexed_section ne "indexed_section") {
    149150        $text .= "\n</$sectiontag>\n" if ($sectiontag ne "");
    150151        $section = $doc_obj->get_next_section($section);
  • trunk/gsdl/perllib/mgbuildproc.pm

    r10474 r12274  
    8585    $self->{'num_sections'} += 1;
    8686
    87     if ($indexed_doc) {
     87    my $indexed_section = $doc_obj->get_metadata_element($section, "gsdldoctype") || "indexed_section";
     88    if ($indexed_doc && $indexed_section eq "indexed_section") {
    8889        $self->{'num_bytes'} += $doc_obj->get_text_length ($section);
    8990        foreach my $field (split (/,/, $fields)) {
  • trunk/gsdl/perllib/mgppbuildproc.pm

    r10961 r12274  
    240240    $text .= "$sectiontag";
    241241
    242     if (!$indexed_doc) {
     242    my $indexed_section = $doc_obj->get_metadata_element($section, "gsdldoctype") || "indexed_section";
     243    if (!$indexed_doc || $indexed_section ne "indexed_section") {
    243244        # we are not actually indexing anything for this document,
    244245        # but we want to keep the section numbers the same, so we just
Note: See TracChangeset for help on using the changeset viewer.