From 800cb900af0cef6d085b31c99d3ea96973ad5cb2 Mon Sep 17 00:00:00 2001 From: Stephen Davison Date: Fri, 6 Dec 2024 14:29:45 -0800 Subject: [PATCH] Test --- app/ead2dc.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/ead2dc.py b/app/ead2dc.py index 1d8efdb..01a2e86 100644 --- a/app/ead2dc.py +++ b/app/ead2dc.py @@ -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): @@ -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 @@ -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))