/// <summary>
        /// Convierte un CVN en un Record OAI-PMH completo
        /// </summary>
        /// <param name="pCVN">CVN</param>
        /// <param name="pMetadataPrefix">Prefijo de metadatos</param>
        /// <returns>Record OAI-PMH</returns>
        private Record ToRecord(CVN pCVN, string pMetadataPrefix)
        {
            if (pCVN == null)
            {
                return(null);
            }
            Record record = new Record()
            {
                Header = new RecordHeader()
                {
                    Identifier = pCVN.Id.ToString(),
                    SetSpecs   = new List <string>()
                    {
                        "cvn"
                    },
                    Datestamp = DateTime.UtcNow.AddDays(-100 + int.Parse(pCVN.Id))
                }
            };

            switch (pMetadataPrefix)
            {
            case "rdf":
                record.Metadata = new RecordMetadata()
                {
                    Content = System.Xml.Linq.XElement.Parse(pCVN.rdf)
                };
                break;
            }
            return(record);
        }
        /// <summary>
        /// Convierte un CVN en un Record OAI-PMH sólo con cabecera
        /// </summary>
        /// <param name="pCVN">CVN</param>
        /// <returns>Record OAI-PMH</returns>
        private Record ToIdentifiersRecord(CVN pCVN)
        {
            if (pCVN == null)
            {
                return(null);
            }
            Record record = new Record()
            {
                Header = new RecordHeader()
                {
                    Identifier = pCVN.Id.ToString(),
                    SetSpecs   = new List <string>()
                    {
                        "cvn"
                    },
                    Datestamp = DateTime.UtcNow.AddDays(-100 + int.Parse(pCVN.Id))
                }
            };

            return(record);
        }
        /// <summary>
        /// Obtiene un Record OAI-PMH
        /// </summary>
        /// <param name="identifier">Identificador del record</param>
        /// <param name="metadataPrefix">Prefijo del metadata</param>
        /// <returns></returns>
        public Record GetRecord(string identifier, string metadataPrefix)
        {
            CVN CVN = GetCurriculum(identifier, false, _configOAI_PMH_CVN.GetXML_CVN_Repository());

            return(ToRecord(CVN, metadataPrefix));
        }