Changeset 10725
- Timestamp:
- 2005-10-14T13:39:40+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/HTMLPlug.pm
r10513 r10725 786 786 787 787 my $html_header=$1; 788 788 789 # go through every <meta... tag defined in the html and see if it is 789 790 # one of the tags we want to match. 790 791 791 792 # special case for title - we want to remember if its been found 792 793 my $found_title = 0; … … 811 812 next; 812 813 } 813 814 814 815 # don't need to assign this field if it was passed in from a previous 815 816 # (recursive) plugin … … 819 820 $metatag =~ /content\s*=\s*([\"\'])?(.*?)\1/is; 820 821 $value=$2; 822 821 823 if (! $value) { 822 824 $metatag =~ /(?:name|http-equiv)\s*=\s*([^\s\>]+)/is; … … 835 837 $tag='Creator'; 836 838 } elsif (!exists $find_fields{lc($tag)}) { 837 next; # don't want this tag839 next; # don't want this tag 838 840 } else { 839 841 # get the user's preferred capitalisation … … 845 847 print $outhandle " extracted \"$tag\" metadata \"$value\"\n" 846 848 if ($self->{'verbosity'} > 2); 849 if ($tag =~ /date.*/i){ 850 $tag = lc($tag); 851 } 847 852 $doc_obj->add_utf8_metadata($section, $tag, $value); 848 853
Note:
See TracChangeset
for help on using the changeset viewer.