Changeset 7668


Ignore:
Timestamp:
2004-06-29T22:33:08+12:00 (20 years ago)
Author:
jrm21
Message:

renamed "kea" to "Keyphrase" metadata, and add one for each extracted
keyphrase.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/BasPlug.pm

    r7645 r7668  
    817817        # print STDERR "stems: $stems\n";
    818818        $thissection = $doc_obj->get_top_section(); #add metadata to top section
    819         $doc_obj->add_metadata($thissection, "kea", $keyphrases);
     819        # add all key phrases as one metadata
     820        $doc_obj->add_metadata($thissection, "Keyphrases", $keyphrases);
     821        # add individual key phrases as multiple metadata
     822        foreach my $keyphrase (split(',', $keyphrases)) {
     823            $keyphrase =~ s/^\s*//; $keyphrase =~ s/\s*$//;
     824        $doc_obj->add_metadata($thissection, "Keyphrase", $keyphrase);
     825        }
    820826        $doc_obj->add_metadata($thissection, "stems", $stems);
    821827    }
Note: See TracChangeset for help on using the changeset viewer.