Refactored OAI-PMH GetRecord response.

refs #3889

Refactored OAI-PMH GetRecord response logic.