mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Don't show "0: text" in series view but just "text"
This commit is contained in:
@@ -685,7 +685,11 @@ function Search:browse(option,run,chosen)
|
||||
local book = libpath .. self.data[i][self.path]
|
||||
local text
|
||||
if option == "series" then
|
||||
text = string.format("%6.1f",self.data[i][self.series_index]):gsub(".0$","") .. ": " .. self.data[i][self.title] .. " (" .. self.data[i][self.authors] .. ")"
|
||||
if self.data[i][self.series_index] == "0.0" then
|
||||
text = self.data[i][self.title] .. " (" .. self.data[i][self.authors] .. ")"
|
||||
else
|
||||
text = string.format("%6.1f",self.data[i][self.series_index]:gsub(".0$","")) .. ": " .. self.data[i][self.title] .. " (" .. self.data[i][self.authors] .. ")"
|
||||
end
|
||||
else
|
||||
text = self.data[i][self.authors] .. ": " .. self.data[i][self.title]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user