def main(): bibupload = ChunkedBibUpload(mode='c', user=SCRIPT_NAME, notimechange=True) def cb_process_one(recid): tags_520 = get_fieldvalues(recid, '520__a') if len(tags_520) > len(set(tags_520)): print 'processing %s' % recid bibupload.add(create_our_record(recid)) loop(all_recids(), cb_process_one)
def main(): refextract = ChunkedRefextract(user=SCRIPT_NAME) def cb_process_one(recid): record = get_record(recid) if record.find_fields('999C5') or record.find_fields('999C6'): return if record_has_fulltext(recid): refextract.add(recid) loop(all_recids(), cb_process_one)
def main(): bibrank = ChunkedBibRank(methods='citation', user=SCRIPT_NAME) def cb_process_one(recid): print 'processing', recid try: rec = get_record(recid) except UnicodeDecodeError: pass else: if len(rec.find_fields('773__')) > 1: bibrank.add(recid) loop(all_recids(), cb_process_one)