Add awareness of 856 $z as first subfield in Springer records
authordbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Thu, 9 Dec 2010 01:06:21 +0000 (01:06 +0000)
committerdbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Thu, 9 Dec 2010 01:06:21 +0000 (01:06 +0000)
When $z is the first subfield in a Springer record, it generally means
that it's a public note of importance - for example, there may be two
856 fields, and the $z identifies which volume can be reached by each
URL.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/branches/rel_1_6_1@1104 6d9bc8c9-1ec2-4278-b937-99fde70a366f

tools/ebooks/prep_ebook_records.py

index cfe0d46..4b20b20 100644 (file)
@@ -459,6 +459,11 @@ def get_subfields(field, data):
     else:
         subs.extend(['u', data['proxy'] + field['u']])
 
+    # 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
+    if field.subfields[0] == 'z':
+        subs.extend([field.subfields[0], field.subfields[1]])
+
     subs.extend([
             'y', data['link_text'],
             '9', data['code']