cleaned up processing of metadata from diverse origins (doc,extattrs,localfields)
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ $headAndBody = 1;
|
||||
sub xapianTag {
|
||||
my $imgtag = shift;
|
||||
while ( ( $tagre, $xapiantag) = each %{$tagMap} ) {
|
||||
return $xapiantag if $imgtag =~ /$tagre/i;
|
||||
return $xapiantag if $imgtag =~ /^$tagre$/i;
|
||||
}
|
||||
return undef;
|
||||
}
|
||||
|
||||
+7
-1
@@ -132,7 +132,13 @@ awk 'BEGIN'\
|
||||
gsub(/>/, "\\>", mid)
|
||||
mid = "<title>" mid "</title>"
|
||||
$0 = part1 mid part2
|
||||
}
|
||||
}
|
||||
|
||||
# Recoll treats "Subject" as a "title" element (based on emails). The PDF
|
||||
# "Subject" metadata field is more like an HTML "description"
|
||||
if(doescape == 0 && $0 ~ /<meta ?name="Subject"/){
|
||||
gsub(/="Subject"/, "=\"Description\"", $0)
|
||||
}
|
||||
|
||||
if ($0 == "<pre>"){
|
||||
# Begin of body text. need to escape some chars from now on as
|
||||
|
||||
Reference in New Issue
Block a user