def metadata(id, sleep_time=1):
    solr ="http://chinkapin.pti.indiana.edu:9994/solr/meta/select/?q=id:%s" % id
    solr += "&wt=json" ## retrieve JSON results
    # TODO: exception handling
    if sleep_time:
        sleep(sleep_time) ## JUST TO MAKE SURE WE ARE THROTTLED
    try:
        data = json.load(urlopen(solr))
        print id
        return data['response']['docs'][0]
    except (__HOLE__,IndexError, HTTPError):
        print "No result found for " + id 
        return dict()
dataset/ETHPy150Open inpho/topic-explorer/topicexplorer/lib/hathitrust.py/metadata