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
1 changed files with 2 additions and 0 deletions

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