本文整理汇总了C#中Web_Language_Enum类的典型用法代码示例。如果您正苦于以下问题:C# Web_Language_Enum类的具体用法?C# Web_Language_Enum怎么用?C# Web_Language_Enum使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Web_Language_Enum类属于命名空间,在下文中一共展示了Web_Language_Enum类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Render_Template_HTML
/// <summary> Renders the HTML for this element </summary>
/// <param name="Output"> Textwriter to write the HTML for this element </param>
/// <param name="Bib"> Object to populate this element from </param>
/// <param name="Skin_Code"> Code for the current skin </param>
/// <param name="isMozilla"> Flag indicates if the current browse is Mozilla Firefox (different css choices for some elements)</param>
/// <param name="popup_form_builder"> Builder for any related popup forms for this element </param>
/// <param name="Current_User"> Current user, who's rights may impact the way an element is rendered </param>
/// <param name="CurrentLanguage"> Current user-interface language </param>
/// <param name="Translator"> Language support object which handles simple translational duties </param>
/// <param name="Base_URL"> Base URL for the current request </param>
/// <remarks> This simple element does not append any popup form to the popup_form_builder</remarks>
public override void Render_Template_HTML(TextWriter Output, SobekCM_Item Bib, string Skin_Code, bool isMozilla, StringBuilder popup_form_builder, User_Object Current_User, Web_Language_Enum CurrentLanguage, Language_Support_Info Translator, string Base_URL )
{
// Check that an acronym exists
if (Acronym.Length == 0)
{
const string defaultAcronym = "Enter any spatial coverage information which relates to this material.";
switch (CurrentLanguage)
{
case Web_Language_Enum.English:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.Spanish:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.French:
Acronym = defaultAcronym;
break;
default:
Acronym = defaultAcronym;
break;
}
}
List<string> allValues = new List<string>();
if (Bib.Bib_Info.Subjects_Count > 0)
{
allValues.AddRange(from thisSubject in Bib.Bib_Info.Subjects where thisSubject.Class_Type == Subject_Info_Type.Hierarchical_Spatial select thisSubject.ToString());
}
render_helper(Output, allValues, Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}
示例2: Render_Template_HTML
/// <summary> Renders the HTML for this element </summary>
/// <param name="Output"> Textwriter to write the HTML for this element </param>
/// <param name="Bib"> Object to populate this element from </param>
/// <param name="Skin_Code"> Code for the current skin </param>
/// <param name="IsMozilla"> Flag indicates if the current browse is Mozilla Firefox (different css choices for some elements)</param>
/// <param name="PopupFormBuilder"> Builder for any related popup forms for this element </param>
/// <param name="Current_User"> Current user, who's rights may impact the way an element is rendered </param>
/// <param name="CurrentLanguage"> Current user-interface language </param>
/// <param name="Translator"> Language support object which handles simple translational duties </param>
/// <param name="Base_URL"> Base URL for the current request </param>
/// <remarks> This simple element does not append any popup form to the popup_form_builder</remarks>
public override void Render_Template_HTML(TextWriter Output, SobekCM_Item Bib, string Skin_Code, bool IsMozilla, StringBuilder PopupFormBuilder, User_Object Current_User, Web_Language_Enum CurrentLanguage, Language_Support_Info Translator, string Base_URL)
{
// Check that an acronym exists
if (Acronym.Length == 0)
{
Acronym = "Enter the name(s) of the other committee members for this thesis/dissertation";
}
// Is there an ETD object?
Thesis_Dissertation_Info etdInfo = Bib.Get_Metadata_Module(GlobalVar.THESIS_METADATA_MODULE_KEY) as Thesis_Dissertation_Info;
if ((etdInfo == null) || ( etdInfo.Committee_Members_Count == 0 ))
{
render_helper(Output, String.Empty, Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}
else
{
if (etdInfo.Committee_Members_Count == 1)
{
render_helper(Output, etdInfo.Committee_Members[0], Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}
else
{
render_helper(Output, etdInfo.Committee_Members, Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}
}
}
示例3: Render_Template_HTML
/// <summary> Renders the HTML for this element </summary>
/// <param name="Output"> Textwriter to write the HTML for this element </param>
/// <param name="Bib"> Object to populate this element from </param>
/// <param name="Skin_Code"> Code for the current skin </param>
/// <param name="isMozilla"> Flag indicates if the current browse is Mozilla Firefox (different css choices for some elements)</param>
/// <param name="popup_form_builder"> Builder for any related popup forms for this element </param>
/// <param name="Current_User"> Current user, who's rights may impact the way an element is rendered </param>
/// <param name="CurrentLanguage"> Current user-interface language </param>
/// <param name="Translator"> Language support object which handles simple translational duties </param>
/// <param name="Base_URL"> Base URL for the current request </param>
/// <remarks> This simple element does not append any popup form to the popup_form_builder</remarks>
public override void Render_Template_HTML(TextWriter Output, SobekCM_Item Bib, string Skin_Code, bool isMozilla, StringBuilder popup_form_builder, User_Object Current_User, Web_Language_Enum CurrentLanguage, Language_Support_Info Translator, string Base_URL )
{
// Check that an acronym exists
if (Acronym.Length == 0)
{
const string defaultAcronym = "Enter the name(s) of the publisher(s) of the larger body of work. If your work is currently unpublished, you may enter your name as the publisher or leave the field blank. If you are adding administrative material (newsletters, handbooks, etc.) on behalf of a department within the university, enter the name of your department as the publisher.";
switch (CurrentLanguage)
{
case Web_Language_Enum.English:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.Spanish:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.French:
Acronym = defaultAcronym;
break;
default:
Acronym = defaultAcronym;
break;
}
}
List<string> instanceValues = new List<string>();
if (Bib.Bib_Info.Publishers_Count > 0)
{
instanceValues.AddRange(Bib.Bib_Info.Publishers.Select(thisName => thisName.Name));
}
render_helper(Output, instanceValues, Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}
示例4: Render_Template_HTML
/// <summary> Renders the HTML for this element </summary>
/// <param name="Output"> Textwriter to write the HTML for this element </param>
/// <param name="Bib"> Object to populate this element from </param>
/// <param name="Skin_Code"> Code for the current skin </param>
/// <param name="isMozilla"> Flag indicates if the current browse is Mozilla Firefox (different css choices for some elements)</param>
/// <param name="popup_form_builder"> Builder for any related popup forms for this element </param>
/// <param name="Current_User"> Current user, who's rights may impact the way an element is rendered </param>
/// <param name="CurrentLanguage"> Current user-interface language </param>
/// <param name="Translator"> Language support object which handles simple translational duties </param>
/// <param name="Base_URL"> Base URL for the current request </param>
/// <remarks> This simple element does not append any popup form to the popup_form_builder</remarks>
public override void Render_Template_HTML(TextWriter Output, SobekCM_Item Bib, string Skin_Code, bool isMozilla, StringBuilder popup_form_builder, User_Object Current_User, Web_Language_Enum CurrentLanguage, Language_Support_Info Translator, string Base_URL )
{
// Check that an acronym exists
if (Acronym.Length == 0)
{
const string defaultAcronym = "If the physical material was originally donated by someone, enter their name and any donor information here.";
switch (CurrentLanguage)
{
case Web_Language_Enum.English:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.Spanish:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.French:
Acronym = defaultAcronym;
break;
default:
Acronym = defaultAcronym;
break;
}
}
if (( Bib.Bib_Info.hasDonor ) && ( Bib.Bib_Info.Donor.hasData))
{
render_helper(Output, Bib.Bib_Info.Donor.ToString(false), Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}
else
{
render_helper(Output, String.Empty, Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}
}
示例5: Render_Template_HTML
/// <summary> Renders the HTML for this element </summary>
/// <param name="Output"> Textwriter to write the HTML for this element </param>
/// <param name="Bib"> Object to populate this element from </param>
/// <param name="Skin_Code"> Code for the current skin </param>
/// <param name="isMozilla"> Flag indicates if the current browse is Mozilla Firefox (different css choices for some elements)</param>
/// <param name="popup_form_builder"> Builder for any related popup forms for this element </param>
/// <param name="Current_User"> Current user, who's rights may impact the way an element is rendered </param>
/// <param name="CurrentLanguage"> Current user-interface language </param>
/// <param name="Translator"> Language support object which handles simple translational duties </param>
/// <param name="Base_URL"> Base URL for the current request </param>
/// <remarks> This simple element does not append any popup form to the popup_form_builder</remarks>
public override void Render_Template_HTML(TextWriter Output, SobekCM_Item Bib, string Skin_Code, bool isMozilla, StringBuilder popup_form_builder, User_Object Current_User, Web_Language_Enum CurrentLanguage, Language_Support_Info Translator, string Base_URL )
{
// Check that an acronym exists
if (Acronym.Length == 0)
{
const string defaultAcronym = "Volume identifier for this material within the larger body of work.";
switch (CurrentLanguage)
{
case Web_Language_Enum.English:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.Spanish:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.French:
Acronym = defaultAcronym;
break;
default:
Acronym = defaultAcronym;
break;
}
}
render_helper(Output, Bib.VID, Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}
示例6: Render_Template_HTML
/// <summary> Renders the HTML for this element </summary>
/// <param name="Output"> Textwriter to write the HTML for this element </param>
/// <param name="Bib"> Object to populate this element from </param>
/// <param name="Skin_Code"> Code for the current skin </param>
/// <param name="IsMozilla"> Flag indicates if the current browse is Mozilla Firefox (different css choices for some elements)</param>
/// <param name="PopupFormBuilder"> Builder for any related popup forms for this element </param>
/// <param name="Current_User"> Current user, who's rights may impact the way an element is rendered </param>
/// <param name="CurrentLanguage"> Current user-interface language </param>
/// <param name="Translator"> Language support object which handles simple translational duties </param>
/// <param name="Base_URL"> Base URL for the current request </param>
/// <remarks> This simple element does not append any popup form to the popup_form_builder</remarks>
public override void Render_Template_HTML(TextWriter Output, SobekCM_Item Bib, string Skin_Code, bool IsMozilla, StringBuilder PopupFormBuilder, User_Object Current_User, Web_Language_Enum CurrentLanguage, Language_Support_Info Translator, string Base_URL )
{
// Check that an acronym exists
if (Acronym.Length == 0)
{
const string defaultAcronym = "Enter the period of time which is the subject of this material.";
switch (CurrentLanguage)
{
case Web_Language_Enum.English:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.Spanish:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.French:
Acronym = defaultAcronym;
break;
default:
Acronym = defaultAcronym;
break;
}
}
List<string> allValues = new List<string>();
if (Bib.Bib_Info.TemporalSubjects_Count > 0)
{
allValues.AddRange(Bib.Bib_Info.TemporalSubjects.Select(thisTemporal => thisTemporal.ToString()));
}
render_helper(Output, allValues, Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}
示例7: Render_Template_HTML
/// <summary> Renders the HTML for this element </summary>
/// <param name="Output"> Textwriter to write the HTML for this element </param>
/// <param name="Bib"> Object to populate this element from </param>
/// <param name="Skin_Code"> Code for the current skin </param>
/// <param name="IsMozilla"> Flag indicates if the current browse is Mozilla Firefox (different css choices for some elements)</param>
/// <param name="PopupFormBuilder"> Builder for any related popup forms for this element </param>
/// <param name="Current_User"> Current user, who's rights may impact the way an element is rendered </param>
/// <param name="CurrentLanguage"> Current user-interface language </param>
/// <param name="Translator"> Language support object which handles simple translational duties </param>
/// <param name="Base_URL"> Base URL for the current request </param>
/// <remarks> This simple element does not append any popup form to the popup_form_builder</remarks>
public override void Render_Template_HTML(TextWriter Output, SobekCM_Item Bib, string Skin_Code, bool IsMozilla, StringBuilder PopupFormBuilder, User_Object Current_User, Web_Language_Enum CurrentLanguage, Language_Support_Info Translator, string Base_URL )
{
// Check that an acronym exists
if (Acronym.Length == 0)
{
const string defaultAcronym = "Enter the language(s) in which the original material was written or performed.";
switch (CurrentLanguage)
{
case Web_Language_Enum.English:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.Spanish:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.French:
Acronym = defaultAcronym;
break;
default:
Acronym = defaultAcronym;
break;
}
}
List<string> languages = new List<string>();
if (Bib.Bib_Info.Languages_Count > 0)
{
languages.AddRange(from thisLanguage in Bib.Bib_Info.Languages where thisLanguage.Language_Text.Length > 0 select thisLanguage.Language_Text);
}
render_helper(Output, new ReadOnlyCollection<string>(languages), Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}
示例8: Render_Template_HTML
/// <summary> Renders the HTML for this element </summary>
/// <param name="Output"> Textwriter to write the HTML for this element </param>
/// <param name="Bib"> Object to populate this element from </param>
/// <param name="Skin_Code"> Code for the current skin </param>
/// <param name="IsMozilla"> Flag indicates if the current browse is Mozilla Firefox (different css choices for some elements)</param>
/// <param name="PopupFormBuilder"> Builder for any related popup forms for this element </param>
/// <param name="Current_User"> Current user, who's rights may impact the way an element is rendered </param>
/// <param name="CurrentLanguage"> Current user-interface language </param>
/// <param name="Translator"> Language support object which handles simple translational duties </param>
/// <param name="Base_URL"> Base URL for the current request </param>
/// <remarks> This simple element does not append any popup form to the popup_form_builder</remarks>
public override void Render_Template_HTML(TextWriter Output, SobekCM_Item Bib, string Skin_Code, bool IsMozilla, StringBuilder PopupFormBuilder, User_Object Current_User, Web_Language_Enum CurrentLanguage, Language_Support_Info Translator, string Base_URL )
{
// Check that an acronym exists
if (Acronym.Length == 0)
{
const string defaultAcronym = "Enter a FAST subject keyword to describe this item.";
switch (CurrentLanguage)
{
case Web_Language_Enum.English:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.Spanish:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.French:
Acronym = defaultAcronym;
break;
default:
Acronym = defaultAcronym;
break;
}
}
render_helper(Output, new List<string>(), new List<string>(), Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}
示例9: Render_Template_HTML
/// <summary> Renders the HTML for this element </summary>
/// <param name="Output"> Textwriter to write the HTML for this element </param>
/// <param name="Bib"> Object to populate this element from </param>
/// <param name="Skin_Code"> Code for the current skin </param>
/// <param name="IsMozilla"> Flag indicates if the current browse is Mozilla Firefox (different css choices for some elements)</param>
/// <param name="PopupFormBuilder"> Builder for any related popup forms for this element </param>
/// <param name="Current_User"> Current user, who's rights may impact the way an element is rendered </param>
/// <param name="CurrentLanguage"> Current user-interface language </param>
/// <param name="Translator"> Language support object which handles simple translational duties </param>
/// <param name="Base_URL"> Base URL for the current request </param>
/// <remarks> This simple element does not append any popup form to the popup_form_builder</remarks>
public override void Render_Template_HTML(TextWriter Output, SobekCM_Item Bib, string Skin_Code, bool IsMozilla, StringBuilder PopupFormBuilder, User_Object Current_User, Web_Language_Enum CurrentLanguage, Language_Support_Info Translator, string Base_URL )
{
// Check that an acronym exists
if (Acronym.Length == 0)
{
const string defaultAcronym = "If the original material has an edition listed, include it here.";
switch (CurrentLanguage)
{
case Web_Language_Enum.English:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.Spanish:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.French:
Acronym = defaultAcronym;
break;
default:
Acronym = defaultAcronym;
break;
}
}
render_helper(Output, Bib.Bib_Info.Origin_Info.Edition, Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}
示例10: Render_Template_HTML
/// <summary> Renders the HTML for this element </summary>
/// <param name="Output"> Textwriter to write the HTML for this element </param>
/// <param name="Bib"> Object to populate this element from </param>
/// <param name="Skin_Code"> Code for the current skin </param>
/// <param name="isMozilla"> Flag indicates if the current browse is Mozilla Firefox (different css choices for some elements)</param>
/// <param name="popup_form_builder"> Builder for any related popup forms for this element </param>
/// <param name="Current_User"> Current user, who's rights may impact the way an element is rendered </param>
/// <param name="CurrentLanguage"> Current user-interface language </param>
/// <param name="Translator"> Language support object which handles simple translational duties </param>
/// <param name="Base_URL"> Base URL for the current request </param>
/// <remarks> This simple element does not append any popup form to the popup_form_builder</remarks>
public override void Render_Template_HTML(TextWriter Output, SobekCM_Item Bib, string Skin_Code, bool isMozilla, StringBuilder popup_form_builder, User_Object Current_User, Web_Language_Enum CurrentLanguage, Language_Support_Info Translator, string Base_URL )
{
// Check that an acronym exists
if (Acronym.Length == 0)
{
const string defaultAcronym = "Select the type of request being processed.";
switch (CurrentLanguage)
{
case Web_Language_Enum.English:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.Spanish:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.French:
Acronym = defaultAcronym;
break;
default:
Acronym = defaultAcronym;
break;
}
}
// Just always shoe METADATA UPDATE
render_helper(Output, "METADATA UPDATE", Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}
示例11: Render_Template_HTML
/// <summary> Renders the HTML for this element </summary>
/// <param name="Output"> Textwriter to write the HTML for this element </param>
/// <param name="Bib"> Object to populate this element from </param>
/// <param name="Skin_Code"> Code for the current skin </param>
/// <param name="IsMozilla"> Flag indicates if the current browse is Mozilla Firefox (different css choices for some elements)</param>
/// <param name="PopupFormBuilder"> Builder for any related popup forms for this element </param>
/// <param name="Current_User"> Current user, who's rights may impact the way an element is rendered </param>
/// <param name="CurrentLanguage"> Current user-interface language </param>
/// <param name="Translator"> Language support object which handles simple translational duties </param>
/// <param name="Base_URL"> Base URL for the current request </param>
/// <remarks> This simple element does not append any popup form to the popup_form_builder</remarks>
public override void Render_Template_HTML(TextWriter Output, SobekCM_Item Bib, string Skin_Code, bool IsMozilla, StringBuilder PopupFormBuilder, User_Object Current_User, Web_Language_Enum CurrentLanguage, Language_Support_Info Translator, string Base_URL )
{
// Check that an acronym exists
if (Acronym.Length == 0)
{
const string defaultAcronym = "Select the frequency for this continuing resource type material.";
switch (CurrentLanguage)
{
case Web_Language_Enum.English:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.Spanish:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.French:
Acronym = defaultAcronym;
break;
default:
Acronym = defaultAcronym;
break;
}
}
List<string> frequencies = new List<string>();
foreach (Origin_Info_Frequency frequency in Bib.Bib_Info.Origin_Info.Frequencies)
{
if (!frequencies.Contains(frequency.Term.ToLower()))
frequencies.Add(frequency.Term.ToLower());
}
render_helper(Output, frequencies, Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}
示例12: Render_Template_HTML
/// <summary> Renders the HTML for this element </summary>
/// <param name="Output"> Textwriter to write the HTML for this element </param>
/// <param name="Bib"> Object to populate this element from </param>
/// <param name="Skin_Code"> Code for the current skin </param>
/// <param name="IsMozilla"> Flag indicates if the current browse is Mozilla Firefox (different css choices for some elements)</param>
/// <param name="PopupFormBuilder"> Builder for any related popup forms for this element </param>
/// <param name="Current_User"> Current user, who's rights may impact the way an element is rendered </param>
/// <param name="CurrentLanguage"> Current user-interface language </param>
/// <param name="Translator"> Language support object which handles simple translational duties </param>
/// <param name="Base_URL"> Base URL for the current request </param>
/// <remarks> This simple element does not append any popup form to the popup_form_builder</remarks>
public override void Render_Template_HTML(TextWriter Output, SobekCM_Item Bib, string Skin_Code, bool IsMozilla, StringBuilder PopupFormBuilder, User_Object Current_User, Web_Language_Enum CurrentLanguage, Language_Support_Info Translator, string Base_URL )
{
// Check that an acronym exists
if (Acronym.Length == 0)
{
const string defaultAcronym = "Enter information about the target audience for this material.";
switch (CurrentLanguage)
{
case Web_Language_Enum.English:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.Spanish:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.French:
Acronym = defaultAcronym;
break;
default:
Acronym = defaultAcronym;
break;
}
}
List<string> audiences = new List<string>();
if (Bib.Bib_Info.Target_Audiences_Count > 0)
{
audiences.AddRange(Bib.Bib_Info.Target_Audiences.Select(thisAudience => thisAudience.Audience));
}
render_helper(Output, new ReadOnlyCollection<string>(audiences), Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}
示例13: Render_Template_HTML
/// <summary> Renders the HTML for this element </summary>
/// <param name="Output"> Textwriter to write the HTML for this element </param>
/// <param name="Bib"> Object to populate this element from </param>
/// <param name="Skin_Code"> Code for the current skin </param>
/// <param name="isMozilla"> Flag indicates if the current browse is Mozilla Firefox (different css choices for some elements)</param>
/// <param name="popup_form_builder"> Builder for any related popup forms for this element </param>
/// <param name="Current_User"> Current user, who's rights may impact the way an element is rendered </param>
/// <param name="CurrentLanguage"> Current user-interface language </param>
/// <param name="Translator"> Language support object which handles simple translational duties </param>
/// <param name="Base_URL"> Base URL for the current request </param>
/// <remarks> This simple element does not append any popup form to the popup_form_builder</remarks>
public override void Render_Template_HTML(TextWriter Output, SobekCM_Item Bib, string Skin_Code, bool isMozilla, StringBuilder popup_form_builder, User_Object Current_User, Web_Language_Enum CurrentLanguage, Language_Support_Info Translator, string Base_URL )
{
// Check that an acronym exists
if (Acronym.Length == 0)
{
const string defaultAcronym = "Encoding level corresponds to the encoding level of any original catalog record.";
switch (CurrentLanguage)
{
case Web_Language_Enum.English:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.Spanish:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.French:
Acronym = defaultAcronym;
break;
default:
Acronym = defaultAcronym;
break;
}
}
if (Bib.Bib_Info.EncodingLevel.Trim().Length == 0)
{
render_helper(Output, "(none)", Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL, true );
}
else
{
render_helper(Output, Bib.Bib_Info.EncodingLevel, Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}
}
示例14: Render_Template_HTML
/// <summary> Renders the HTML for this element </summary>
/// <param name="Output"> Textwriter to write the HTML for this element </param>
/// <param name="Bib"> Object to populate this element from </param>
/// <param name="Skin_Code"> Code for the current skin </param>
/// <param name="isMozilla"> Flag indicates if the current browse is Mozilla Firefox (different css choices for some elements)</param>
/// <param name="popup_form_builder"> Builder for any related popup forms for this element </param>
/// <param name="Current_User"> Current user, who's rights may impact the way an element is rendered </param>
/// <param name="CurrentLanguage"> Current user-interface language </param>
/// <param name="Translator"> Language support object which handles simple translational duties </param>
/// <param name="Base_URL"> Base URL for the current request </param>
/// <remarks> This simple element does not append any popup form to the popup_form_builder</remarks>
public override void Render_Template_HTML(TextWriter Output, SobekCM_Item Bib, string Skin_Code, bool isMozilla, StringBuilder popup_form_builder, User_Object Current_User, Web_Language_Enum CurrentLanguage, Language_Support_Info Translator, string Base_URL )
{
// Check that an acronym exists
if (Acronym.Length == 0)
{
const string defaultAcronym = "Physical description of the original material";
switch (CurrentLanguage)
{
case Web_Language_Enum.English:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.Spanish:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.French:
Acronym = defaultAcronym;
break;
default:
Acronym = defaultAcronym;
break;
}
}
render_helper(Output, Bib.Bib_Info.Original_Description.Extent, Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}
示例15: Render_Template_HTML
/// <summary> Renders the HTML for this element </summary>
/// <param name="Output"> Textwriter to write the HTML for this element </param>
/// <param name="Bib"> Object to populate this element from </param>
/// <param name="Skin_Code"> Code for the current skin </param>
/// <param name="IsMozilla"> Flag indicates if the current browse is Mozilla Firefox (different css choices for some elements)</param>
/// <param name="PopupFormBuilder"> Builder for any related popup forms for this element </param>
/// <param name="Current_User"> Current user, who's rights may impact the way an element is rendered </param>
/// <param name="CurrentLanguage"> Current user-interface language </param>
/// <param name="Translator"> Language support object which handles simple translational duties </param>
/// <param name="Base_URL"> Base URL for the current request </param>
/// <remarks> This simple element does not append any popup form to the popup_form_builder</remarks>
public override void Render_Template_HTML(TextWriter Output, SobekCM_Item Bib, string Skin_Code, bool IsMozilla, StringBuilder PopupFormBuilder, User_Object Current_User, Web_Language_Enum CurrentLanguage, Language_Support_Info Translator, string Base_URL )
{
// Check that an acronym exists
if (Acronym.Length == 0)
{
const string defaultAcronym = "Enter the date this item was published or created.";
switch (CurrentLanguage)
{
case Web_Language_Enum.English:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.Spanish:
Acronym = defaultAcronym;
break;
case Web_Language_Enum.French:
Acronym = defaultAcronym;
break;
default:
Acronym = defaultAcronym;
break;
}
}
string date = Bib.Bib_Info.Origin_Info.Date_Issued;
if (date.Length == 0)
date = Bib.Bib_Info.Origin_Info.MARC_DateIssued;
if (label_from_template_file.Length > 0)
Title = label_from_template_file;
render_helper(Output, date, Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}