don't load chapters

pull/91/head
eric 2018-04-23 15:41:42 -04:00
parent 3058991a30
commit fa82411921
1 changed files with 3 additions and 0 deletions

View File

@ -421,6 +421,9 @@ def load_doab_oai(from_year=None, limit=100000):
for record in doab_client.listRecords(metadataPrefix='oai_dc', from_=from_):
if not record[1]:
continue
item_type = unlist(record[1].getMap().get('type', None))
if item_type != 'book':
continue
idents = record[1].getMap()['identifier']
if idents:
for ident in idents: