"Returns the first database BIB ID for the OAI identifier 'identifier', if it exists."
sysno=None
ifidentifier:
query="SELECT DISTINCT(bb.id_bibrec) FROM bib%sx AS bx, bibrec_bib%sx AS bb WHERE bx.tag=%%s AND bb.id_bibxxx=bx.id AND bx.value=%%s"%(CFG_OAI_ID_FIELD[0:2],CFG_OAI_ID_FIELD[0:2])