Tweak for better Oxford Scholarship Online handling
authorDan Scott <dan@coffeecode.net>
Tue, 7 Apr 2020 16:08:39 +0000 (12:08 -0400)
committerDan Scott <dan@coffeecode.net>
Tue, 7 Apr 2020 16:08:39 +0000 (12:08 -0400)
tools/ebooks/prep_ebook_records.py

index 480e870..6a823cb 100755 (executable)
@@ -775,9 +775,9 @@ def add_publisher(record, options):
 
     if raw_publisher:
         if "Oxford" in raw_publisher or "Clarendon" in raw_publisher:
-            publisher = "Oxford University Press."
+            publisher = "Oxford University Press"
         elif "Cambridge" in raw_publisher:
-            publisher = "Cambridge University Press."
+            publisher = "Cambridge University Press"
 
     # Iterate through all of the existing 710 fields
     for sten in record.get_fields("710"):
@@ -1294,6 +1294,8 @@ def get_subfields(field, data, platform):
         link_text = "%s (%s)" % (data["link_text"], platform)
     elif url.find("springer.com") > -1 or url.find("doi.org/10.1057/") > -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")
     else:
         link_text = "%s" % (data["link_text"])
     subs.extend(["y", link_text, "9", data["code"]])