From 4eded821027a0ff8bab7310a1c81692cda499437 Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev Date: Tue, 15 Sep 2020 17:39:13 +0700 Subject: [PATCH] Add ISFDB --- cps/db.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cps/db.py b/cps/db.py index 1e65ccf9..f9b41e9e 100644 --- a/cps/db.py +++ b/cps/db.py @@ -121,6 +121,8 @@ class Identifiers(Base): return u"ЛитРес" elif format_type == "issn": return u"ISSN" + elif format_type == "isfdb": + return u"ISFDB" if format_type == "lubimyczytac": return u"Lubimyczytac" else: @@ -150,6 +152,8 @@ class Identifiers(Base): return u"https://www.litres.ru/{0}".format(self.val) elif format_type == "issn": return u"https://portal.issn.org/resource/ISSN/{0}".format(self.val) + elif format_type == "isfdb": + return u"http://www.isfdb.org/cgi-bin/pl.cgi?{0}".format(self.val) elif format_type == "url": return u"{0}".format(self.val) else: