1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-24 10:37:23 +00:00

Added goodreads link (fnally closes #80)

This commit is contained in:
OzzieIsaacs 2017-01-05 20:11:02 +01:00
parent ea2e8205e3
commit 3590665614

View File

@ -96,6 +96,8 @@ class Identifiers(Base):
return u"ISBN"
elif self.type == "doi":
return u"DOI"
elif self.type == "goodreads":
return u"Goodreads"
else:
return self.type
@ -106,6 +108,8 @@ class Identifiers(Base):
return u"http://http://www.worldcat.org/isbn/{0}".format(self.val)
elif self.type == "doi":
return u"http://dx.doi.org/{0}".format(self.val)
elif self.type == "goodreads":
return u"http://www.goodreads.com/book/show/{0}".format(self.val)
else:
return u""