From: dbs Date: Thu, 9 Dec 2010 01:06:21 +0000 (+0000) Subject: Add awareness of 856 $z as first subfield in Springer records X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=036d0192e35a041535d4299ab72aac72c40291e7;p=contrib%2FConifer.git 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. git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/branches/rel_1_6_1@1104 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- diff --git a/tools/ebooks/prep_ebook_records.py b/tools/ebooks/prep_ebook_records.py index cfe0d46088..4b20b20149 100644 --- a/tools/ebooks/prep_ebook_records.py +++ b/tools/ebooks/prep_ebook_records.py @@ -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']