Use the DOI to determine platform for 956 Springer
authorDan Scott <dan@coffeecode.net>
Wed, 22 Jan 2020 01:27:01 +0000 (20:27 -0500)
committerDan Scott <dan@coffeecode.net>
Wed, 22 Jan 2020 01:27:01 +0000 (20:27 -0500)
Signed-off-by: Dan Scott <dan@coffeecode.net>
tools/ebooks/prep_ebook_records.py

index 3c9b8b7..480e870 100755 (executable)
@@ -1292,7 +1292,7 @@ def get_subfields(field, data, platform):
     # 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:
+    elif url.find("springer.com") > -1 or url.find("doi.org/10.1057/") > -1:
         link_text = "%s (%s)" % (data["link_text"], "Springer")
     else:
         link_text = "%s" % (data["link_text"])