Skip to content

Commit

Permalink
update solr_adapter to add GEO/earth science collection
Browse files Browse the repository at this point in the history
 	modified:   aip/classic/solr_adapter.py
  • Loading branch information
seasidesparrow committed Oct 13, 2023
1 parent a543bf5 commit ad28fb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aip/classic/solr_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ def _database(ADS_record):
'PHY': u'physics',
'AST': u'astronomy',
'GEN': u'general',
'GEO': u'earth science',
}
result = [translation[i['content'].upper()] for i in ADS_record['metadata']['properties'].get('databases', [])]
result = list(set(result))
Expand Down

0 comments on commit ad28fb6

Please sign in to comment.