Skip to content

Commit

Permalink
handle type SoftwareSourceCode ( issue iodepo#131 )
Browse files Browse the repository at this point in the history
  • Loading branch information
jmckenna committed May 7, 2024
1 parent d364327 commit 3abe7fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexer/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def genericType_toAtts(orig, rid=None):
print('***changing type:Project to type:ResearchProject')
origType = 'ResearchProject'
#handle CreativeWork subsets as type:CreativeWork (see https://github.com/iodepo/odis-arch/issues/337 )
elif orig['@type'] == 'CreativeWork' or orig['@type'] == 'DigitalDocument' or orig['@type'] == 'Movie':
elif orig['@type'] == 'CreativeWork' or orig['@type'] == 'DigitalDocument' or orig['@type'] == 'Movie' or orig['@type'] == 'SoftwareSourceCode':
print('***changing type:' + orig['@type'] + ' to type:CreativeWork')
origType = 'CreativeWork'
else:
Expand Down

0 comments on commit 3abe7fa

Please sign in to comment.