Commit 83db0f9a authored by PJ Eby's avatar PJ Eby

Render 'url:' ID type as a link

Calibre allows 'url:' as a kind of book identifier
and shows it in the UI as a link; this change
makes calibre-web do the same.
parent 3a9a59b7
......@@ -112,6 +112,8 @@ class Identifiers(Base):
return u"https://books.google.com/books?id={0}".format(self.val)
elif self.type == "kobo":
return u"https://www.kobo.com/ebook/{0}".format(self.val)
elif self.type == "url":
return u"{0}".format(self.val)
else:
return u""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment