[bijiben] tracker: fix notes retrieve
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] tracker: fix notes retrieve
- Date: Sun, 8 Sep 2013 20:04:32 +0000 (UTC)
commit 5896dce446b8a96a418af665696f1ef92ade4342
Author: Pierre-Yves Luyten <py luyten fr>
Date: Sun Sep 8 21:41:14 2013 +0200
tracker: fix notes retrieve
Retrieve url in tracker since book uses uuid to hash
and "item_class->get_uuid = biji_note_obj_get_path"
src/libbiji/biji-tracker.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/libbiji/biji-tracker.c b/src/libbiji/biji-tracker.c
index fa33f6b..eb537e6 100644
--- a/src/libbiji/biji-tracker.c
+++ b/src/libbiji/biji-tracker.c
@@ -375,14 +375,15 @@ biji_get_items_matching_async (BijiNoteBook *book,
lower = g_utf8_strdown (needle, -1);
query = g_strconcat (
- "SELECT ?urn WHERE {",
+ "SELECT ?url WHERE {",
" { ?urn a nie:DataObject ;",
+ " nie:url ?url ;",
" nie:title ?title ; nie:plainTextContent ?content ;",
" nie:generator 'Bijiben' . FILTER (",
" fn:contains (fn:lower-case (?content), '", lower, "' ) || ",
" fn:contains (fn:lower-case (?title) , '", lower, "'))} ",
"UNION",
- " { ?urn a nfo:DataContainer ;",
+ " { ?url a nfo:DataContainer ;",
" nie:title ?title ; nie:generator 'Bijiben' . FILTER (",
" fn:contains (fn:lower-case (?title), '", lower, "'))}}",
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]