1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-25 09:30:31 +00:00

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.
This commit is contained in:
PJ Eby 2018-07-18 15:36:51 -04:00
parent 3a9a59b751
commit 83db0f9ad5

View File

@ -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""