Changeset 12951


Ignore:
Timestamp:
2006-09-29T16:09:13+12:00 (18 years ago)
Author:
kjdon
Message:

changed \! to == 0 cos someone complained that it didn't work

Location:
trunk/gsdl/perllib
Files:
2 edited

Legend:

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

    r12844 r12951  
    149149    # sections match up with gdbm db
    150150    my $indexed_section = $doc_obj->get_metadata_element($section, "gsdldoctype") || "indexed_section";
    151     if (!$indexed_doc || ($indexed_section ne "indexed_section" && $indexed_section ne "indexed_doc")) {
     151    if (($indexed_doc == 0) || ($indexed_section ne "indexed_section" && $indexed_section ne "indexed_doc")) {
    152152        $text .= "\n</$sectiontag>\n" if ($sectiontag ne "");
    153153            $section = $doc_obj->get_next_section($section);
  • trunk/gsdl/perllib/mgppbuildproc.pm

    r12424 r12951  
    244244   
    245245    my $indexed_section = $doc_obj->get_metadata_element($section, "gsdldoctype") || "indexed_section";
    246     if ((!$indexed_doc) || ($indexed_section ne "indexed_section" && $indexed_section ne "indexed_doc")) {
     246    if (($indexed_doc == 0) || ($indexed_section ne "indexed_section" && $indexed_section ne "indexed_doc")) {
    247247        # we are not actually indexing anything for this document,
    248248        # but we want to keep the section numbers the same, so we just
Note: See TracChangeset for help on using the changeset viewer.