[gnome-documents] query: specify nfo:PaginatedTextDocument when looking for PDF documents



commit 1d33c53d20098ed21c9f5353f0b7beb113598679
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Jun 7 16:19:16 2012 -0400

    query: specify nfo:PaginatedTextDocument when looking for PDF documents
    
    This should help a bit with performance.

 src/searchbar.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/searchbar.js b/src/searchbar.js
index 03b2a2d..0acdbea 100644
--- a/src/searchbar.js
+++ b/src/searchbar.js
@@ -141,7 +141,8 @@ const SearchTypeManager = new Lang.Class({
                                       where: '?urn rdf:type nfo:DataContainer .' }));
         this.addItem(new SearchType({ id: 'pdf',
                                       name: _("PDF Documents"),
-                                      where: '?urn nie:mimeType \"application/pdf\" .' }));
+                                      filter: 'fn:contains(nie:mimeType(?urn), \"application/pdf\"',
+                                      where: '?urn rdf:type nfo:PaginatedTextDocument .' }));
         this.addItem(new SearchType({ id: 'presentations',
                                       name: _("Presentations"),
                                       where: '?urn rdf:type nfo:Presentation .' }));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]