From 4e28c3cadb8a0524bc3cc634c982cec48b6987aa Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev Date: Tue, 15 Sep 2020 13:41:01 +0700 Subject: [PATCH 1/4] add Litres references --- cps/db.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cps/db.py b/cps/db.py index c3d62a22..cc156942 100644 --- a/cps/db.py +++ b/cps/db.py @@ -142,6 +142,8 @@ class Identifiers(Base): return u"https://www.kobo.com/ebook/{0}".format(self.val) elif format_type == "lubimyczytac": 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 == "url": return u"{0}".format(self.val) else: From 8745b8b051e0044e9958ff802d56c8b777a1d42c Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev Date: Tue, 15 Sep 2020 13:47:57 +0700 Subject: [PATCH 2/4] nice title for Litres tags --- cps/db.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cps/db.py b/cps/db.py index cc156942..7132e23e 100644 --- a/cps/db.py +++ b/cps/db.py @@ -117,6 +117,8 @@ class Identifiers(Base): return u"Google Books" elif format_type == "kobo": return u"Kobo" + elif format_type == "litres": + return u"ЛитРес" if format_type == "lubimyczytac": return u"Lubimyczytac" else: From ec4ff834656d9a1237048f50620ff6ba921ed99c Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev Date: Tue, 15 Sep 2020 13:50:34 +0700 Subject: [PATCH 3/4] 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: From 4eded821027a0ff8bab7310a1c81692cda499437 Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev Date: Tue, 15 Sep 2020 17:39:13 +0700 Subject: [PATCH 4/4] 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: