Skip to content

Commit 89db5d5

Browse files
author
ehanson8
committed
updates
1 parent e07bcd5 commit 89db5d5

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

getPropertiesFromResources.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@
5757
scopecontent = ''
5858
acqinfo = ''
5959
custodhist = ''
60+
bioghist = ''
61+
accessrestrict = ''
62+
relatedmaterial = ''
6063
try:
6164
if note['type'] == 'abstract':
6265
abstract = note['content'][0].encode('utf-8')
@@ -78,15 +81,20 @@
7881
custodhist = custodhist + subnote['content'].encode('utf-8') + ' '
7982
f.writerow([title]+[uri]+[bibnum]+['custodhist']+[custodhist])
8083
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])
8588
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])
9098
except:
9199
f.writerow([title]+[uri]+[bibnum]+['']+[custodhist])
92100

0 commit comments

Comments
 (0)