//private string GetFile(PrintTitleInfo titleInfo) //{ // //string file = ""; // //file = _printDirectory + "\\"; // //return file + PrintIssue.GetStandardFilename(titleInfo.formatedTitle, titleInfo.special, titleInfo.date, titleInfo.dateType, titleInfo.number, titleInfo.specialText); // string file = PrintIssue.GetStandardFilename(titleInfo.formatedTitle, titleInfo.special, titleInfo.date, titleInfo.dateType, titleInfo.number, titleInfo.specialText); // file = zfile.ReplaceBadFilenameChars(file, "_"); // return _printDirectory + "\\" + file; //} //private string GetFile(PrintTitleRequest titleRequest) //{ // //string file = ""; // //file = _printDirectory + "\\"; // //return file + PrintIssue.GetStandardFilename(titleRequest.formatedTitle, titleRequest.special, titleRequest.date, titleRequest.dateType, titleRequest.number, titleRequest.specialText); // string file = PrintIssue.GetStandardFilename(titleRequest.FormatedTitle, titleRequest.Special, titleRequest.Date, titleRequest.DateType, titleRequest.Number, titleRequest.SpecialText); // file = zfile.ReplaceBadFilenameChars(file, "_"); // return _printDirectory + "\\" + file; //} //public static string GetFile(PrintTitleRequest titleRequest) public static string GetFile(PrintTitleInfo titleInfo) { string file = PrintIssue.GetStandardFilename(titleInfo.FormatedTitle, titleInfo.Special, titleInfo.Date, titleInfo.DateType, titleInfo.Number, titleInfo.SpecialText); file = zfile.ReplaceBadFilenameChars(file, "_"); return(file); }
private void GetTitleInfo(bool?splitTitle) { _titleInfo = _findPrintManager.PrintTitleManager.GetPrintTitleInfo(_sourceTitle, expectedDate: _expectedDate, splitTitle: splitTitle); _date = _titleInfo.Date; _dateType = _titleInfo.DateType; _number = _titleInfo.Number; _special = _titleInfo.Special; _specialText = _titleInfo.SpecialText; _remainText = _titleInfo.RemainText; }
//private PrintTitleInfo _GetPrintTitleInfo_v1(string title) //{ // PrintTitleInfo titleInfo = new PrintTitleInfo(); // titleInfo.originalTitle = title; // string titleStructure = title; // FindText findSpecial = _findSpecial.Find(titleStructure); // if (findSpecial.found) // { // titleInfo.special = true; // titleInfo.specialMatch = findSpecial.matchValues; // titleStructure = findSpecial.matchValues.Replace(" $$special$$ "); // } // FindNumber findNumber = _findNumber.Find(titleStructure); // if (findNumber.found) // { // titleInfo.number = findNumber.number; // titleInfo.numberMatch = findNumber.matchValues; // titleStructure = findNumber.matchValues.Replace(" $$number$$ "); // } // FindDate findDate = _findDateManager_v1.Find(titleStructure); // if (findDate.found) // { // titleInfo.date = findDate.date; // titleInfo.dateType = findDate.dateType; // titleInfo.dateMatch = findDate.matchValues; // titleStructure = findDate.matchValues.Replace(" $$date$$ "); // } // titleInfo.dateOtherMatchList = findDate.matchValuesList; // Match match = __rgSpecialLabel.Match(titleStructure); // if (match.Success) // { // titleInfo.specialText = match.Groups[1].Value.Trim(__trimChars); // titleInfo.specialText = GetFormatedText(titleInfo.specialText); // titleStructure = match.zReplace(titleStructure, ""); // } // int i = titleStructure.IndexOf("$$"); // if (i != -1) // { // titleInfo.title = titleStructure.Substring(0, i).Trim(__trimChars); // titleStructure = titleStructure.Substring(i); // } // else // titleInfo.title = titleStructure; // titleInfo.titleStructure = titleStructure; // titleInfo.formatedTitle = GetFormatedText(titleInfo.title); // titleInfo.name = GetName(titleInfo.formatedTitle); // titleInfo.remainText = __rgTitleStructureName.Replace(titleStructure, "").Trim(__trimChars); // titleInfo.file = GetFile(titleInfo); // return titleInfo; //} /// not used //private PrintTitleInfo _GetPrintTitleInfo_v2(string title) //{ // PrintTitleRequest titleRequest = new PrintTitleRequest(); // titleRequest.originalTitle = title; // PrintSplitedTitle splitedTitle = SplitTitle(title); // FindText findSpecial = _findSpecial.Find(splitedTitle.titlePart1); // if (findSpecial.found) // { // titleRequest.special = true; // splitedTitle.titlePart1 = findSpecial.matchValues.Replace(" $$special$$ "); // } // FindNumber findNumber = _findNumber.Find(splitedTitle.titlePart1); // if (findNumber.found) // { // titleRequest.number = findNumber.number; // splitedTitle.titlePart1 = findNumber.matchValues.Replace(" $$number$$ "); // } // FindDate findDate = _findDateManager_new.Find(splitedTitle.titlePart2); // if (findDate.found) // { // titleRequest.date = findDate.date; // titleRequest.dateType = findDate.dateType; // splitedTitle.titlePart2 = findDate.matchValues.Replace(" $$date$$ "); // } // Match match = __rgSpecialLabel.Match(splitedTitle.titlePart1); // if (match.Success) // { // titleRequest.specialText = match.Groups[1].Value.Trim(__trimChars); // titleRequest.specialText = GetFormatedText(titleRequest.specialText); // splitedTitle.titlePart1 = match.zReplace(splitedTitle.titlePart1, ""); // } // //Trace.WriteLine("titleRequest :"); // //Trace.WriteLine(titleRequest.zToJson()); // //Trace.WriteLine("splitedTitle :"); // //Trace.WriteLine(splitedTitle.zToJson()); // string concatenatedTitle = splitedTitle.titlePart1; // if (!string.IsNullOrEmpty(splitedTitle.realTitlePart2)) // concatenatedTitle += " - " + splitedTitle.realTitlePart2; // int i = concatenatedTitle.IndexOf("$$"); // if (i != -1) // { // titleRequest.title = concatenatedTitle.Substring(0, i).Trim(__trimChars); // concatenatedTitle = concatenatedTitle.Substring(i); // } // else // { // titleRequest.title = concatenatedTitle; // concatenatedTitle = null; // } // titleRequest.titleStructure = concatenatedTitle; // titleRequest.formatedTitle = GetFormatedText(titleRequest.title); // titleRequest.name = GetName(titleRequest.formatedTitle); // if (concatenatedTitle != null) // titleRequest.remainText = __rgTitleStructureName.Replace(concatenatedTitle, "").Trim(__trimChars); // titleRequest.file = GetFile(titleRequest); // PrintTitleInfo titleInfo = new PrintTitleInfo // { // originalTitle = titleRequest.originalTitle, // title = titleRequest.title, // formatedTitle = titleRequest.formatedTitle, // name = titleRequest.name, // special = titleRequest.special, // specialText = titleRequest.specialText, // number = titleRequest.number, // date = titleRequest.date, // dateType = titleRequest.dateType, // titleStructure = titleRequest.titleStructure, // remainText = titleRequest.remainText, // file = titleRequest.file // }; // return titleInfo; //} /// new split private PrintTitleInfo _GetPrintTitleInfo(string title, bool splitTitle, Date?expectedDate) { // pourquoi split : // "Le Parisien + Votre été du dimanche 24 août 2014" date = "été du dimanche 24 août 2014" // "Le Parisien + Votre été du dimanche 24 août 2014" date = "été du dimanche 24 août 2014" // "Le Parisien + Votre été (la France en fête) du dimanche 20 juillet 2014" date = "été" // "Le Monde + Eco&Entreprise + journal de 1994 du mardi 08 avril 2014" date = "de 1994" // "Le Monde de l'Image 84 - 2013" date not found // "Le Monde de L'Intelligence 29 - Février-Mars 2013" date not found // "Le Monde des Sciences 7 - Février-Mars 2013" date = "7 - Février-Mars 2013" PrintTitleRequest titleRequest = new PrintTitleRequest(); titleRequest.OriginalTitle = title; title = ReplaceCharacters(title); // new le 11/08/2015 //title = GetFormatedText(title); bool foundDate = false; if (splitTitle) { // split d'abord avec "du" puis avec "-" int i1 = title.LastIndexOf(" du ", StringComparison.InvariantCultureIgnoreCase); int i2 = title.LastIndexOf("- "); int i3 = Math.Max(i1, i2); if (i3 != -1) { string title1 = title.Substring(0, i3); string title2 = title.Substring(i3); FindDate findDate = _findDateManager.Find(title2, expectedDate); if (findDate.Found) { titleRequest.Date = findDate.Date; titleRequest.DateType = findDate.DateType; titleRequest.DateMatch = findDate.matchValues; title2 = findDate.matchValues.Replace(" $$date$$ "); title = title1 + title2; foundDate = true; } //titleRequest.DateOtherMatchList = findDate.matchValuesList; } if (!foundDate) { // puis split avec "-" i3 = Math.Min(i1, i2); i3 = title.IndexOf("- "); if (i3 != -1) { // attention i + 1 pour garder un espace en début de chaine //return new PrintSplitedTitle(title.Substring(0, i), title.Substring(i + 1)); string title1 = title.Substring(0, i3); string title2 = title.Substring(i3); FindDate findDate = _findDateManager.Find(title2, expectedDate); if (findDate.Found) { titleRequest.Date = findDate.Date; titleRequest.DateType = findDate.DateType; titleRequest.DateMatch = findDate.matchValues; title2 = findDate.matchValues.Replace(" $$date$$ "); title = title1 + title2; foundDate = true; } //titleRequest.DateOtherMatchList = findDate.matchValuesList; } } } //FindText findSpecial = _findSpecial.Find(title); FindText_v2 findSpecial = _findSpecial.Find(title); if (findSpecial.Success) { titleRequest.Special = true; //titleRequest.SpecialMatch = findSpecial.matchValues; //title = findSpecial.matchValues.Replace(" $$special$$ "); title = findSpecial.Replace(" $$special$$ "); } FindNumber findNumber = _findNumberManager.Find(title); if (findNumber.found) { titleRequest.Number = findNumber.number; titleRequest.NumberMatch = findNumber.matchValues; title = findNumber.matchValues.Replace(" $$number$$ "); } if (!foundDate) { FindDate findDate = _findDateManager.Find(title, expectedDate); //Trace.WriteLine("PrintTitleManager._GetPrintTitleInfo() : _findDateManager.Find(\"{0}\")", title); //Trace.WriteLine(findDate.zToJson()); if (findDate.Found) { titleRequest.Date = findDate.Date; titleRequest.DateType = findDate.DateType; titleRequest.DateMatch = findDate.matchValues; title = findDate.matchValues.Replace(" $$date$$ "); } //titleRequest.DateOtherMatchList = findDate.matchValuesList; } Match match = __rgSpecialLabel.Match(title); if (match.Success) { titleRequest.SpecialText = match.Groups[1].Value.Trim(__trimChars); titleRequest.SpecialText = GetFormatedText(titleRequest.SpecialText); title = match.zReplace(title, ""); } //Trace.WriteLine("titleRequest :"); //Trace.WriteLine(titleRequest.zToJson()); //Trace.WriteLine("splitedTitle :"); //Trace.WriteLine(splitedTitle.zToJson()); //string concatenatedTitle = splitedTitle.titlePart1; //if (!string.IsNullOrEmpty(splitedTitle.realTitlePart2)) // concatenatedTitle += " - " + splitedTitle.realTitlePart2; int i = title.IndexOf("$$"); if (i != -1) { titleRequest.Title = title.Substring(0, i).Trim(__trimChars); title = title.Substring(i); } else { titleRequest.Title = title; title = null; } titleRequest.TitleStructure = title; titleRequest.FormatedTitle = GetFormatedText(titleRequest.Title); titleRequest.Name = GetName(titleRequest.FormatedTitle); if (title != null) { titleRequest.RemainText = __rgTitleStructureName.Replace(title, "").Trim(__trimChars); } //titleRequest.File = GetFile(titleRequest); PrintTitleInfo titleInfo = new PrintTitleInfo { OriginalTitle = titleRequest.OriginalTitle, Title = titleRequest.Title, FormatedTitle = titleRequest.FormatedTitle, Name = titleRequest.Name, Special = titleRequest.Special, //SpecialMatch = titleRequest.SpecialMatch, SpecialText = titleRequest.SpecialText, Number = titleRequest.Number, NumberMatch = titleRequest.NumberMatch, Date = titleRequest.Date, DateType = titleRequest.DateType, DateMatch = titleRequest.DateMatch, //DateOtherMatchList = titleRequest.DateOtherMatchList, TitleStructure = titleRequest.TitleStructure, RemainText = titleRequest.RemainText, //File = titleRequest.File }; return(titleInfo); }
private void GetTitleInfo(bool? splitTitle) { _titleInfo = _findPrintManager.PrintTitleManager.GetPrintTitleInfo(_sourceTitle, expectedDate: _expectedDate, splitTitle: splitTitle); _date = _titleInfo.Date; _dateType = _titleInfo.DateType; _number = _titleInfo.Number; _special = _titleInfo.Special; _specialText = _titleInfo.SpecialText; _remainText = _titleInfo.RemainText; }
//private string GetFile(PrintTitleInfo titleInfo) //{ // //string file = ""; // //file = _printDirectory + "\\"; // //return file + PrintIssue.GetStandardFilename(titleInfo.formatedTitle, titleInfo.special, titleInfo.date, titleInfo.dateType, titleInfo.number, titleInfo.specialText); // string file = PrintIssue.GetStandardFilename(titleInfo.formatedTitle, titleInfo.special, titleInfo.date, titleInfo.dateType, titleInfo.number, titleInfo.specialText); // file = zfile.ReplaceBadFilenameChars(file, "_"); // return _printDirectory + "\\" + file; //} //private string GetFile(PrintTitleRequest titleRequest) //{ // //string file = ""; // //file = _printDirectory + "\\"; // //return file + PrintIssue.GetStandardFilename(titleRequest.formatedTitle, titleRequest.special, titleRequest.date, titleRequest.dateType, titleRequest.number, titleRequest.specialText); // string file = PrintIssue.GetStandardFilename(titleRequest.FormatedTitle, titleRequest.Special, titleRequest.Date, titleRequest.DateType, titleRequest.Number, titleRequest.SpecialText); // file = zfile.ReplaceBadFilenameChars(file, "_"); // return _printDirectory + "\\" + file; //} //public static string GetFile(PrintTitleRequest titleRequest) public static string GetFile(PrintTitleInfo titleInfo) { string file = PrintIssue.GetStandardFilename(titleInfo.FormatedTitle, titleInfo.Special, titleInfo.Date, titleInfo.DateType, titleInfo.Number, titleInfo.SpecialText); file = zfile.ReplaceBadFilenameChars(file, "_"); return file; }
//private PrintTitleInfo _GetPrintTitleInfo_v1(string title) //{ // PrintTitleInfo titleInfo = new PrintTitleInfo(); // titleInfo.originalTitle = title; // string titleStructure = title; // FindText findSpecial = _findSpecial.Find(titleStructure); // if (findSpecial.found) // { // titleInfo.special = true; // titleInfo.specialMatch = findSpecial.matchValues; // titleStructure = findSpecial.matchValues.Replace(" $$special$$ "); // } // FindNumber findNumber = _findNumber.Find(titleStructure); // if (findNumber.found) // { // titleInfo.number = findNumber.number; // titleInfo.numberMatch = findNumber.matchValues; // titleStructure = findNumber.matchValues.Replace(" $$number$$ "); // } // FindDate findDate = _findDateManager_v1.Find(titleStructure); // if (findDate.found) // { // titleInfo.date = findDate.date; // titleInfo.dateType = findDate.dateType; // titleInfo.dateMatch = findDate.matchValues; // titleStructure = findDate.matchValues.Replace(" $$date$$ "); // } // titleInfo.dateOtherMatchList = findDate.matchValuesList; // Match match = __rgSpecialLabel.Match(titleStructure); // if (match.Success) // { // titleInfo.specialText = match.Groups[1].Value.Trim(__trimChars); // titleInfo.specialText = GetFormatedText(titleInfo.specialText); // titleStructure = match.zReplace(titleStructure, ""); // } // int i = titleStructure.IndexOf("$$"); // if (i != -1) // { // titleInfo.title = titleStructure.Substring(0, i).Trim(__trimChars); // titleStructure = titleStructure.Substring(i); // } // else // titleInfo.title = titleStructure; // titleInfo.titleStructure = titleStructure; // titleInfo.formatedTitle = GetFormatedText(titleInfo.title); // titleInfo.name = GetName(titleInfo.formatedTitle); // titleInfo.remainText = __rgTitleStructureName.Replace(titleStructure, "").Trim(__trimChars); // titleInfo.file = GetFile(titleInfo); // return titleInfo; //} /// not used //private PrintTitleInfo _GetPrintTitleInfo_v2(string title) //{ // PrintTitleRequest titleRequest = new PrintTitleRequest(); // titleRequest.originalTitle = title; // PrintSplitedTitle splitedTitle = SplitTitle(title); // FindText findSpecial = _findSpecial.Find(splitedTitle.titlePart1); // if (findSpecial.found) // { // titleRequest.special = true; // splitedTitle.titlePart1 = findSpecial.matchValues.Replace(" $$special$$ "); // } // FindNumber findNumber = _findNumber.Find(splitedTitle.titlePart1); // if (findNumber.found) // { // titleRequest.number = findNumber.number; // splitedTitle.titlePart1 = findNumber.matchValues.Replace(" $$number$$ "); // } // FindDate findDate = _findDateManager_new.Find(splitedTitle.titlePart2); // if (findDate.found) // { // titleRequest.date = findDate.date; // titleRequest.dateType = findDate.dateType; // splitedTitle.titlePart2 = findDate.matchValues.Replace(" $$date$$ "); // } // Match match = __rgSpecialLabel.Match(splitedTitle.titlePart1); // if (match.Success) // { // titleRequest.specialText = match.Groups[1].Value.Trim(__trimChars); // titleRequest.specialText = GetFormatedText(titleRequest.specialText); // splitedTitle.titlePart1 = match.zReplace(splitedTitle.titlePart1, ""); // } // //Trace.WriteLine("titleRequest :"); // //Trace.WriteLine(titleRequest.zToJson()); // //Trace.WriteLine("splitedTitle :"); // //Trace.WriteLine(splitedTitle.zToJson()); // string concatenatedTitle = splitedTitle.titlePart1; // if (!string.IsNullOrEmpty(splitedTitle.realTitlePart2)) // concatenatedTitle += " - " + splitedTitle.realTitlePart2; // int i = concatenatedTitle.IndexOf("$$"); // if (i != -1) // { // titleRequest.title = concatenatedTitle.Substring(0, i).Trim(__trimChars); // concatenatedTitle = concatenatedTitle.Substring(i); // } // else // { // titleRequest.title = concatenatedTitle; // concatenatedTitle = null; // } // titleRequest.titleStructure = concatenatedTitle; // titleRequest.formatedTitle = GetFormatedText(titleRequest.title); // titleRequest.name = GetName(titleRequest.formatedTitle); // if (concatenatedTitle != null) // titleRequest.remainText = __rgTitleStructureName.Replace(concatenatedTitle, "").Trim(__trimChars); // titleRequest.file = GetFile(titleRequest); // PrintTitleInfo titleInfo = new PrintTitleInfo // { // originalTitle = titleRequest.originalTitle, // title = titleRequest.title, // formatedTitle = titleRequest.formatedTitle, // name = titleRequest.name, // special = titleRequest.special, // specialText = titleRequest.specialText, // number = titleRequest.number, // date = titleRequest.date, // dateType = titleRequest.dateType, // titleStructure = titleRequest.titleStructure, // remainText = titleRequest.remainText, // file = titleRequest.file // }; // return titleInfo; //} /// new split private PrintTitleInfo _GetPrintTitleInfo(string title, bool splitTitle, Date? expectedDate) { // pourquoi split : // "Le Parisien + Votre été du dimanche 24 août 2014" date = "été du dimanche 24 août 2014" // "Le Parisien + Votre été du dimanche 24 août 2014" date = "été du dimanche 24 août 2014" // "Le Parisien + Votre été (la France en fête) du dimanche 20 juillet 2014" date = "été" // "Le Monde + Eco&Entreprise + journal de 1994 du mardi 08 avril 2014" date = "de 1994" // "Le Monde de l'Image 84 - 2013" date not found // "Le Monde de L'Intelligence 29 - Février-Mars 2013" date not found // "Le Monde des Sciences 7 - Février-Mars 2013" date = "7 - Février-Mars 2013" PrintTitleRequest titleRequest = new PrintTitleRequest(); titleRequest.OriginalTitle = title; title = ReplaceCharacters(title); // new le 11/08/2015 //title = GetFormatedText(title); bool foundDate = false; if (splitTitle) { // split d'abord avec "du" puis avec "-" int i1 = title.LastIndexOf(" du ", StringComparison.InvariantCultureIgnoreCase); int i2 = title.LastIndexOf("- "); int i3 = Math.Max(i1, i2); if (i3 != -1) { string title1 = title.Substring(0, i3); string title2 = title.Substring(i3); FindDate findDate = _findDateManager.Find(title2, expectedDate); if (findDate.Found) { titleRequest.Date = findDate.Date; titleRequest.DateType = findDate.DateType; titleRequest.DateMatch = findDate.matchValues; title2 = findDate.matchValues.Replace(" $$date$$ "); title = title1 + title2; foundDate = true; } //titleRequest.DateOtherMatchList = findDate.matchValuesList; } if (!foundDate) { // puis split avec "-" i3 = Math.Min(i1, i2); i3 = title.IndexOf("- "); if (i3 != -1) { // attention i + 1 pour garder un espace en début de chaine //return new PrintSplitedTitle(title.Substring(0, i), title.Substring(i + 1)); string title1 = title.Substring(0, i3); string title2 = title.Substring(i3); FindDate findDate = _findDateManager.Find(title2, expectedDate); if (findDate.Found) { titleRequest.Date = findDate.Date; titleRequest.DateType = findDate.DateType; titleRequest.DateMatch = findDate.matchValues; title2 = findDate.matchValues.Replace(" $$date$$ "); title = title1 + title2; foundDate = true; } //titleRequest.DateOtherMatchList = findDate.matchValuesList; } } } FindText findSpecial = _findSpecial.Find(title); if (findSpecial.Found) { titleRequest.Special = true; titleRequest.SpecialMatch = findSpecial.matchValues; title = findSpecial.matchValues.Replace(" $$special$$ "); } FindNumber findNumber = _findNumberManager.Find(title); if (findNumber.found) { titleRequest.Number = findNumber.number; titleRequest.NumberMatch = findNumber.matchValues; title = findNumber.matchValues.Replace(" $$number$$ "); } if (!foundDate) { FindDate findDate = _findDateManager.Find(title, expectedDate); //Trace.WriteLine("PrintTitleManager._GetPrintTitleInfo() : _findDateManager.Find(\"{0}\")", title); //Trace.WriteLine(findDate.zToJson()); if (findDate.Found) { titleRequest.Date = findDate.Date; titleRequest.DateType = findDate.DateType; titleRequest.DateMatch = findDate.matchValues; title = findDate.matchValues.Replace(" $$date$$ "); } //titleRequest.DateOtherMatchList = findDate.matchValuesList; } Match match = __rgSpecialLabel.Match(title); if (match.Success) { titleRequest.SpecialText = match.Groups[1].Value.Trim(__trimChars); titleRequest.SpecialText = GetFormatedText(titleRequest.SpecialText); title = match.zReplace(title, ""); } //Trace.WriteLine("titleRequest :"); //Trace.WriteLine(titleRequest.zToJson()); //Trace.WriteLine("splitedTitle :"); //Trace.WriteLine(splitedTitle.zToJson()); //string concatenatedTitle = splitedTitle.titlePart1; //if (!string.IsNullOrEmpty(splitedTitle.realTitlePart2)) // concatenatedTitle += " - " + splitedTitle.realTitlePart2; int i = title.IndexOf("$$"); if (i != -1) { titleRequest.Title = title.Substring(0, i).Trim(__trimChars); title = title.Substring(i); } else { titleRequest.Title = title; title = null; } titleRequest.TitleStructure = title; titleRequest.FormatedTitle = GetFormatedText(titleRequest.Title); titleRequest.Name = GetName(titleRequest.FormatedTitle); if (title != null) titleRequest.RemainText = __rgTitleStructureName.Replace(title, "").Trim(__trimChars); //titleRequest.File = GetFile(titleRequest); PrintTitleInfo titleInfo = new PrintTitleInfo { OriginalTitle = titleRequest.OriginalTitle, Title = titleRequest.Title, FormatedTitle = titleRequest.FormatedTitle, Name = titleRequest.Name, Special = titleRequest.Special, SpecialMatch = titleRequest.SpecialMatch, SpecialText = titleRequest.SpecialText, Number = titleRequest.Number, NumberMatch = titleRequest.NumberMatch, Date = titleRequest.Date, DateType = titleRequest.DateType, DateMatch = titleRequest.DateMatch, //DateOtherMatchList = titleRequest.DateOtherMatchList, TitleStructure = titleRequest.TitleStructure, RemainText = titleRequest.RemainText, //File = titleRequest.File }; return titleInfo; }