Commit 35906656 authored by OzzieIsaacs's avatar OzzieIsaacs

Added goodreads link (fnally closes #80)

parent ea2e8205
...@@ -96,6 +96,8 @@ class Identifiers(Base): ...@@ -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): ...@@ -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""
......
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