From ec4ff834656d9a1237048f50620ff6ba921ed99c Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev Date: Tue, 15 Sep 2020 13:50:34 +0700 Subject: [PATCH] Add ISSN tags --- cps/db.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cps/db.py b/cps/db.py index 7132e23e..1e65ccf9 100644 --- a/cps/db.py +++ b/cps/db.py @@ -119,6 +119,8 @@ class Identifiers(Base): return u"Kobo" elif format_type == "litres": return u"ЛитРес" + elif format_type == "issn": + return u"ISSN" if format_type == "lubimyczytac": return u"Lubimyczytac" else: @@ -146,6 +148,8 @@ class Identifiers(Base): return u" https://lubimyczytac.pl/ksiazka/{0}".format(self.val) elif format_type == "litres": 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 == "url": return u"{0}".format(self.val) else: