Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
nosivads committed Dec 6, 2024
1 parent bdf0179 commit 800cb90
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/ead2dc.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ def linkobjects():
#return dictionary of archival objects and linked digital objects
return links2

#return list of collections with digital content
def collections(ao_list):



#returns a "pretty" XML string
def prettify(elem):
Expand Down Expand Up @@ -350,8 +346,6 @@ def read_colls_from_db():
collectiontitle = archdesc.find('.//did/unittitle', ns).text
collectionid = archdesc.find('.//did/unitid', ns).text

fileout = Path(Path(__file__).resolve().parent).joinpath('../xml/caltecharchives.xml')

#build ListRecords segment
ListRecords = ET.SubElement(oaixml, 'ListRecords', {'metadataPrefix': 'oai_dc'})
#iterate over containers to collect inherited data and build records
Expand All @@ -365,6 +359,7 @@ def read_colls_from_db():
containerloop(c)

#write to disk
fileout = Path(Path(__file__).resolve().parent).joinpath('../xml/caltecharchives.xml')
with open(fileout, 'w') as f:
f.write(prettify(oaixml))

Expand Down

0 comments on commit 800cb90

Please sign in to comment.