Fixed logic for TabTitle that was not identifying Library Documents

This commit is contained in:
Rich 2012-06-04 14:59:53 +00:00
parent 7f5702698a
commit 3fc890ab52

View File

@ -1674,10 +1674,12 @@ namespace VEPROMS.CSLA.Library
get
{
if (MyContent.MyEntry == null)
if(DisplayNumber == string.Empty)
{
if (DisplayNumber == string.Empty)
return DisplayText.Replace("\u2011", "-").Split(" ,.;:-_".ToCharArray())[0] + "...";
return DisplayNumber.Replace("\u2011","-");
if (MyContent.Number != "")
return DisplayNumber.Replace("\u2011", "-");
}
if (MyContent.Number != "") // Add LIB to the Section Number
return ((MyContent.MyEntry.MyDocument.LibTitle ?? "") == "" ? "" : "\u1D38\u1D35\u1D2E ") + DisplayNumber;
if (MyContent.MyEntry.MyDocument.LibTitle != "")
{