[gnome-documents] documents: Hide eBooks from Documents view
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] documents: Hide eBooks from Documents view
- Date: Wed, 17 Dec 2014 15:45:12 +0000 (UTC)
commit 0323917ba9200c407a1b33c49dcf0f41df7ee310
Author: Bastien Nocera <hadess hadess net>
Date: Tue Dec 16 13:59:17 2014 +0100
documents: Hide eBooks from Documents view
gnome-documents showed eBooks and Comics in the documents view because
they matched the "Paginated Document" RDF type. Make sure to exclude
paginated documents from the documents view.
https://bugzilla.gnome.org/show_bug.cgi?id=741594
src/search.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/search.js b/src/search.js
index 1462ca9..3dc93b4 100644
--- a/src/search.js
+++ b/src/search.js
@@ -206,6 +206,7 @@ const SearchTypeManager = new Lang.Class({
where: '?urn rdf:type nfo:Spreadsheet .' }));
this.addItem(new SearchType({ id: SearchTypeStock.TEXTDOCS,
name: _("Text Documents"),
+ filter: 'NOT EXISTS { ?urn a nfo:EBook }',
where: '?urn rdf:type nfo:PaginatedTextDocument .' }));
} else {
this.addItem(new SearchType({ id: SearchTypeStock.EBOOKS,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]