From 3590665614a5cdbad70d2895db3f2f54a1d3ef30 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Thu, 5 Jan 2017 20:11:02 +0100 Subject: [PATCH] Added goodreads link (fnally closes #80) --- cps/db.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cps/db.py b/cps/db.py index a354626b..4ba16da7 100755 --- a/cps/db.py +++ b/cps/db.py @@ -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""