|
57 | 57 | scopecontent = '' |
58 | 58 | acqinfo = '' |
59 | 59 | custodhist = '' |
| 60 | + bioghist = '' |
| 61 | + accessrestrict = '' |
| 62 | + relatedmaterial = '' |
60 | 63 | try: |
61 | 64 | if note['type'] == 'abstract': |
62 | 65 | abstract = note['content'][0].encode('utf-8') |
|
78 | 81 | custodhist = custodhist + subnote['content'].encode('utf-8') + ' ' |
79 | 82 | f.writerow([title]+[uri]+[bibnum]+['custodhist']+[custodhist]) |
80 | 83 | if note['type'] == 'bioghist': |
81 | | - custodhistSubnotes = note['subnotes'] |
82 | | - for subnote in custodhistSubnotes: |
83 | | - custodhist = custodhist + subnote['content'].encode('utf-8') + ' ' |
84 | | - f.writerow([title]+[uri]+[bibnum]+['bioghist']+[custodhist]) |
| 84 | + bioghistSubnotes = note['subnotes'] |
| 85 | + for subnote in bioghistSubnotes: |
| 86 | + bioghist = bioghist + subnote['content'].encode('utf-8') + ' ' |
| 87 | + f.writerow([title]+[uri]+[bibnum]+['bioghist']+[bioghist]) |
85 | 88 | if note['type'] == 'accessrestrict': |
86 | | - custodhistSubnotes = note['subnotes'] |
87 | | - for subnote in custodhistSubnotes: |
88 | | - custodhist = custodhist + subnote['content'].encode('utf-8') + ' ' |
89 | | - f.writerow([title]+[uri]+[bibnum]+['accessrestrict']+[custodhist]) |
| 89 | + accessrestrictSubnotes = note['subnotes'] |
| 90 | + for subnote in accessrestrictSubnotes: |
| 91 | + accessrestrict = accessrestrict + subnote['content'].encode('utf-8') + ' ' |
| 92 | + f.writerow([title]+[uri]+[bibnum]+['accessrestrict']+[accessrestrict]) |
| 93 | + if note['type'] == 'relatedmaterial': |
| 94 | + relatedmaterialtSubnotes = note['subnotes'] |
| 95 | + for subnote in relatedmaterialSubnotes: |
| 96 | + relatedmaterial = relatedmaterial + subnote['content'].encode('utf-8') + ' ' |
| 97 | + f.writerow([title]+[uri]+[bibnum]+['relatedmaterial']+[relatedmaterial]) |
90 | 98 | except: |
91 | 99 | f.writerow([title]+[uri]+[bibnum]+['']+[custodhist]) |
92 | 100 |
|
|
0 commit comments