Commit 886f08a79dd6644bb82b71ff2e76ecc434621296

Authored by conradverm
1 parent 62df4f37

KTS-2580

"Open office document text extractor doesn't have application/msword associated with it"
Fixed. Added missing mime types

Committed By: Conrad Vermeulen
Reviewed By: Kevin Fourie


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7568 c91229c3-7414-0410-bfa2-8a42b809f60b
search2/indexing/extractors/ExifExtractor.inc.php
@@ -46,7 +46,8 @@ class ExifExtractor extends DocumentExtractor @@ -46,7 +46,8 @@ class ExifExtractor extends DocumentExtractor
46 public function getSupportedMimeTypes() 46 public function getSupportedMimeTypes()
47 { 47 {
48 return array( 48 return array(
49 - 'image/tiff','image/jpeg' 49 + 'image/tiff',
  50 + 'image/jpeg'
50 ); 51 );
51 } 52 }
52 53
search2/indexing/extractors/OOTextExtractor.inc.php
@@ -69,7 +69,13 @@ class OOTextExtractor extends ExternalDocumentExtractor @@ -69,7 +69,13 @@ class OOTextExtractor extends ExternalDocumentExtractor
69 public function getSupportedMimeTypes() 69 public function getSupportedMimeTypes()
70 { 70 {
71 return array( 71 return array(
72 - 72 + 'application/msword',
  73 + 'application/vnd.sun.xml.writer',
  74 + 'application/vnd.sun.xml.writer.template',
  75 + 'application/vnd.sun.xml.writer.global',
  76 + 'application/vnd.oasis.opendocument.text',
  77 + 'application/vnd.oasis.opendocument.text-template',
  78 + 'application/vnd.oasis.opendocument.text-master'
73 ); 79 );
74 } 80 }
75 81
search2/indexing/extractors/PlainTextExtractor.inc.php
@@ -45,7 +45,12 @@ class PlainTextExtractor extends TextExtractor @@ -45,7 +45,12 @@ class PlainTextExtractor extends TextExtractor
45 45
46 public function getSupportedMimeTypes() 46 public function getSupportedMimeTypes()
47 { 47 {
48 - return array('text/plain','text/csv'); 48 + return array(
  49 + 'text/plain',
  50 + 'text/csv',
  51 + 'text/tab-separated-values',
  52 + 'text/css'
  53 + );
49 } 54 }
50 55
51 } 56 }
search2/indexing/extractors/ScriptExtractor.inc.php
@@ -45,7 +45,9 @@ class ScriptExtractor extends TextExtractor @@ -45,7 +45,9 @@ class ScriptExtractor extends TextExtractor
45 45
46 public function getSupportedMimeTypes() 46 public function getSupportedMimeTypes()
47 { 47 {
48 - return array('application/x-shellscript','application/javascript'); 48 + return array(
  49 + 'application/x-shellscript',
  50 + 'application/javascript');
49 } 51 }
50 52
51 } 53 }
search2/indexing/extractors/XMLExtractor.inc.php
@@ -45,7 +45,12 @@ class XMLExtractor extends TextExtractor @@ -45,7 +45,12 @@ class XMLExtractor extends TextExtractor
45 45
46 public function getSupportedMimeTypes() 46 public function getSupportedMimeTypes()
47 { 47 {
48 - return array('text/xml','application/xml','text/html','text/enriched'); 48 + return array(
  49 + 'text/xml',
  50 + 'application/xml',
  51 + 'text/html',
  52 + 'text/enriched'
  53 + );
49 } 54 }
50 55
51 protected function filter($text) 56 protected function filter($text)