[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/office/tellico/src/fetch
From:       Robby Stephenson <robby () periapsis ! org>
Date:       2010-08-04 13:56:07
Message-ID: 20100804135607.21BBDAC7BC () svn ! kde ! org
[Download RAW message or body]

SVN commit 1159140 by rstephenson:

without qjson, openlibrary fetcher can only do isbn

 M  +9 -0      openlibraryfetcher.cpp  
 M  +1 -1      openlibraryfetcher.h  


--- trunk/extragear/office/tellico/src/fetch/openlibraryfetcher.cpp #1159139:1159140
@@ -80,6 +80,15 @@
   return m_name.isEmpty() ? defaultName() : m_name;
 }
 
+// without QJSON, we can only search on ISBN for covers
+bool OpenLibraryFetcher::canSearch(FetchKey k) const {
+#ifndef HAVE_QJSON
+  return k == ISBN;
+#else
+  return k == Title || k == Person || k == ISBN || k == LCCN || k == Keyword;
+#endif
+}
+
 bool OpenLibraryFetcher::canFetch(int type) const {
   return type == Data::Collection::Book;
 }
--- trunk/extragear/office/tellico/src/fetch/openlibraryfetcher.h #1159139:1159140
@@ -59,7 +59,7 @@
    */
   virtual QString source() const;
   virtual bool isSearching() const { return m_started; }
-  virtual bool canSearch(FetchKey k) const { return k == Title || k == Person || k \
== ISBN || k == LCCN || k == Keyword; } +  virtual bool canSearch(FetchKey k) const;
   virtual void stop();
   virtual Data::EntryPtr fetchEntryHook(uint uid);
   virtual Type type() const { return OpenLibrary; }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic