Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
nosivads committed Jan 21, 2025
1 parent 2ee5228 commit cc8ddce
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions app/oai.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,22 @@ def inheritdata(c, n):
buildrecordxml(ListRecords, c, collectiontitle, inheriteddata)
return

#loop over c recursively
def containerloop(container):
global n
first = True
for c in container.findall('./c', ns):
if first:
first = False
n += 1
#print(n, c.attrib['id'], c.attrib['level'])
inheritdata(c, n)
containerloop(c)
if not first:
n -= 1
first = True
return

# MAIN

# read config file
Expand Down

0 comments on commit cc8ddce

Please sign in to comment.