#but if the user entered a "-R" (do all) option, we need to
#make an empty start set
iftask_get_option("quick")=="no":
result_intermediate=[{},{},{}]
else:
# check indexing times of `journal' and `reportnumber`
# indexes, since if they are not up to date yet, then we
# should wait and not run citation indexing as of yet:
last_timestamp_bibrec=run_sql("SELECT DATE_FORMAT(MAX(modification_date), '%%Y-%%m-%%d %%H:%%i:%%s') FROM bibrec",(),1)[0][0]
last_timestamp_indexes=run_sql("SELECT DATE_FORMAT(MAX(last_updated), '%%Y-%%m-%%d %%H:%%i:%%s') FROM idxINDEX WHERE name IN (%s,%s)",('journal','reportnumber'),1)[0][0]
ifnotlast_timestamp_indexesor \
notlast_timestamp_bibrecor \
last_timestamp_bibrec>last_timestamp_indexes:
write_message("Not running citation indexer since journal/reportnumber indexes are not up to date yet.")