Added goodreads link (fnally closes #80)

pull/90/head
OzzieIsaacs 8 years ago
parent ea2e8205e3
commit 3590665614

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

Loading…
Cancel
Save