[gnome-books/gnome-3-32] search: Don't filter by rdf:type
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-books/gnome-3-32] search: Don't filter by rdf:type
- Date: Fri, 2 Aug 2019 13:06:02 +0000 (UTC)
commit 36aa272a83f3e4c22cb97cbbe78b5555f6fdea6b
Author: Bastien Nocera <hadess hadess net>
Date: Fri Aug 2 13:44:21 2019 +0200
search: Don't filter by rdf:type
The rdf:type is only set by the tracker miners for the types that it
actually knows about, and it might end up being late adjusting
mime-types, whether upstream or downstream.
See https://gitlab.gnome.org/GNOME/tracker/issues/88
Closes: #28
src/search.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/search.js b/src/search.js
index ad0ecd88..3872e318 100644
--- a/src/search.js
+++ b/src/search.js
@@ -126,11 +126,11 @@ const SearchTypeManager = new Lang.Class({
this.addItem(new SearchType({ id: SearchTypeStock.EBOOKS,
name: _("e-Books"),
filter: '(nie:mimeType(?urn) IN (\"application/epub+zip\",
\"application/x-mobipocket-ebook\", \"application/x-fictionbook+xml\", \"application/x-zip-compressed-fb2\",
\"image/vnd.djvu+multipage\"))',
- where: '?urn rdf:type nfo:EBook .' }));
+ where: '?urn rdf:type nfo:FileDataObject .' }));
this.addItem(new SearchType({ id: SearchTypeStock.COMICS,
name: _("Comics"),
filter: '(nie:mimeType(?urn) IN (\"application/x-cbr\",
\"application/vnd.comicbook-rar\", \"application/x-cbz\", \"application/vnd.comicbook+zip\",
\"application/x-cbt\", \"application/x-cb7\"))',
- where: '?urn rdf:type nfo:EBook .' }));
+ where: '?urn rdf:type nfo:FileDataObject .' }));
this.setActiveItemById(SearchTypeStock.ALL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]