Don't label the 956 platform, because we know not what it is
authorDan Scott <dscott@laurentian.ca>
Fri, 8 Sep 2017 17:50:09 +0000 (13:50 -0400)
committerDan Scott <dscott@laurentian.ca>
Fri, 8 Sep 2017 17:50:09 +0000 (13:50 -0400)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
tools/ebooks/prep_ebook_records.py

index 9a9dc5c..1bb80cb 100755 (executable)
@@ -1123,8 +1123,11 @@ def get_subfields(field, data, platform):
         subs.extend([field.subfields[0], field.subfields[1]])
 
     link_text = data['link_text']
-    if platform:
+    # We don't know what the 956 platform is
+    if platform and field.tag != '956':
         link_text = "%s (%s)" % (data['link_text'], platform)
+    else:
+        link_text = "%s" % (data['link_text'])
     subs.extend([
             'y', link_text,
             '9', data['code']