Recognize more DOIs for Springer books
authorDan Scott <dan@coffeecode.net>
Tue, 7 Apr 2020 17:05:04 +0000 (13:05 -0400)
committerDan Scott <dan@coffeecode.net>
Tue, 7 Apr 2020 17:05:04 +0000 (13:05 -0400)
Signed-off-by: Dan Scott <dan@coffeecode.net>
tools/ebooks/prep_ebook_records.py

index 7786453..339da4f 100755 (executable)
@@ -1324,10 +1324,15 @@ def get_subfields(field, data, platform):
         subs.extend([field.subfields[0], field.subfields[1]])
 
     link_text = data["link_text"]
+
     # We don't know what the 956 platform is
     if platform and field.tag != "956":
         link_text = "%s (%s)" % (data["link_text"], platform)
-    elif url.find("springer.com") > -1 or url.find("doi.org/10.1057/") > -1:
+    elif (
+        url.find("springer.com") > -1
+        or url.find("doi.org/10.1057/") > -1
+        or url.find("doi.org/10.1007") > -1
+    ):
         link_text = "%s (%s)" % (data["link_text"], "Springer")
     elif url.find("doi.org/10.1093/") > -1:
         link_text = "%s (%s)" % (data["link_text"], "Oxford Scholarship Online")