|
|
@ -6,6 +6,7 @@ local InfoMessage = require("ui/widget/infomessage")
|
|
|
|
local UIManager = require("ui/uimanager")
|
|
|
|
local UIManager = require("ui/uimanager")
|
|
|
|
local Screen = require("device").screen
|
|
|
|
local Screen = require("device").screen
|
|
|
|
local _ = require("gettext")
|
|
|
|
local _ = require("gettext")
|
|
|
|
|
|
|
|
local NetworkMgr = require("ui/network/manager")
|
|
|
|
|
|
|
|
|
|
|
|
local Goodreads = InputContainer:new {
|
|
|
|
local Goodreads = InputContainer:new {
|
|
|
|
goodreads_key = "",
|
|
|
|
goodreads_key = "",
|
|
|
@ -164,6 +165,10 @@ function Goodreads:search(search_type)
|
|
|
|
local text_input
|
|
|
|
local text_input
|
|
|
|
local info
|
|
|
|
local info
|
|
|
|
local result
|
|
|
|
local result
|
|
|
|
|
|
|
|
if not NetworkMgr:isOnline() then
|
|
|
|
|
|
|
|
NetworkMgr:promptWifiOn()
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
end
|
|
|
|
if search_type == "all" then
|
|
|
|
if search_type == "all" then
|
|
|
|
title_header = _("Search all books in Goodreads")
|
|
|
|
title_header = _("Search all books in Goodreads")
|
|
|
|
hint = _("Title, author or ISBN")
|
|
|
|
hint = _("Title, author or ISBN")
|
|
|
|