Add OAI metadata archiving function