[open-ils-commits] r1104 - conifer/branches/rel_1_6_1/tools/ebooks (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Dec 8 20:06:22 EST 2010


Author: dbs
Date: 2010-12-08 20:06:21 -0500 (Wed, 08 Dec 2010)
New Revision: 1104

Modified:
   conifer/branches/rel_1_6_1/tools/ebooks/prep_ebook_records.py
Log:
Add awareness of 856 $z as first subfield in Springer records

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.


Modified: conifer/branches/rel_1_6_1/tools/ebooks/prep_ebook_records.py
===================================================================
--- conifer/branches/rel_1_6_1/tools/ebooks/prep_ebook_records.py	2010-12-08 20:48:20 UTC (rev 1103)
+++ conifer/branches/rel_1_6_1/tools/ebooks/prep_ebook_records.py	2010-12-09 01:06:21 UTC (rev 1104)
@@ -459,6 +459,11 @@
     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']



More information about the open-ils-commits mailing list