Prep ebooks: we know if it's Springer
authorDan Scott <dscott@laurentian.ca>
Fri, 2 Mar 2018 22:48:02 +0000 (17:48 -0500)
committerDan Scott <dscott@laurentian.ca>
Fri, 2 Mar 2018 22:48:02 +0000 (17:48 -0500)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
tools/ebooks/prep_ebook_records.py

index d613ec7..d386d79 100755 (executable)
@@ -1126,6 +1126,8 @@ 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:
+        link_text = "%s (%s)" % (data['link_text'], 'Springer')
     else:
         link_text = "%s" % (data['link_text'])
     subs.extend([