subs = []
url = field["u"]
+ # Let's get to HTTPS whenever possible
+ if url.startswith("http://books.scholarsportal.info"):
+ url = url.replace(
+ "http://books.scholarsportal.info", "https://books.scholarsportal.info"
+ )
+
# Is this an ebrary URL?
ebrary = False
if url.find(".ebrary.com") > -1:
subs.extend(["u", url])
else:
if data["ebrary_code"] == "ocls" and re.search(r"ra.ocls.ca", field["u"]):
- subs.extend(["u", field["u"]])
+ subs.extend(["u", url])
else:
- subs.extend(["u", data["proxy"] + field["u"]])
+ subs.extend(["u", data["proxy"] + url])
# Check for a $z as the first 856; in Springer records, at least, this
# indicates a multi-volume set that requires keeping the $z around