handleGetRevisionAndDocTypeAction should search both xml_documents and xml_revisions table
handleGetRevisionAndDocTypeAction API will return both revision and doctype for a given docid. Currently, it only searchs the xml_documents. It may gives clients a wrong message in this case:
There is no record in xml_documents, but it did have records in xml_revision table.
Here is the solution:
1. Search xml_documents table first. If metacat finds a result, returns it back to client.
2. If couldn't find result in xml_documents, then search xml_revisions table.