本文整理汇总了C#中SobekCM.Library.Users.User_Object类的典型用法代码示例。如果您正苦于以下问题:C# User_Object类的具体用法?C# User_Object怎么用?C# User_Object使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
User_Object类属于SobekCM.Library.Users命名空间,在下文中一共展示了User_Object类的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="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);
}
示例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 = "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);
}
示例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 = "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);
}
示例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="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 = "Select the level of this degree";
}
// Is there an ETD object?
string valueToDisplay = string.Empty;
Thesis_Dissertation_Info etdInfo = Bib.Get_Metadata_Module(GlobalVar.THESIS_METADATA_MODULE_KEY) as Thesis_Dissertation_Info;
if (etdInfo != null)
{
switch (etdInfo.Degree_Level)
{
case Thesis_Dissertation_Info.Thesis_Degree_Level_Enum.Bachelors:
valueToDisplay = "Bachelors";
break;
case Thesis_Dissertation_Info.Thesis_Degree_Level_Enum.Doctorate:
valueToDisplay = "Doctorate";
break;
case Thesis_Dissertation_Info.Thesis_Degree_Level_Enum.Masters:
valueToDisplay = "Masters";
break;
case Thesis_Dissertation_Info.Thesis_Degree_Level_Enum.PostDoctorate:
valueToDisplay = "Post-Doctorate";
break;
}
}
render_helper(Output, valueToDisplay, Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}
示例6: Prepare_For_Save
/// <summary> Prepares the bib object for the save, by clearing any existing data in this element's related field(s) </summary>
/// <param name="Bib"> Existing digital resource object which may already have values for this element's data field(s) </param>
/// <param name="Current_User"> Current user, who's rights may impact the way an element is rendered </param>
/// <remarks> This clears any preexisting series title and other titles (not main title) </remarks>
public override void Prepare_For_Save(SobekCM_Item Bib, User_Object Current_User)
{
// Clear part numbers and part names ( collections ) from the series title
if ( Bib.Bib_Info.hasSeriesTitle )
Bib.Bib_Info.SeriesTitle.Clear();
Bib.Bib_Info.Clear_Other_Titles();
}
示例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="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);
}
示例9: Prepare_For_Save
/// <summary> Prepares the bib object for the save, by clearing any existing data in this element's related field(s) </summary>
/// <param name="Bib"> Existing digital resource object which may already have values for this element's data field(s) </param>
/// <param name="Current_User"> Current user, who's rights may impact the way an element is rendered </param>
/// <remarks> This currently does not to anything, as this element is not fully implemented </remarks>
public override void Prepare_For_Save(SobekCM_Item Bib, User_Object Current_User)
{
// Do nothing, since we will use more advanced logic.
// If the downloads are the same, we will not disturb the download tree
// If the downloads are different, any deep download tree will be cleared
// and the downloads will appear flattened
}
示例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="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 = "Description standard indicates the standard used when encoding the 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.Record.Description_Standard.Trim().Length == 0)
{
render_helper(Output, "(none)", Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL, true);
}
else
{
render_helper(Output, Bib.Bib_Info.Record.Description_Standard, 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="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 title of this material 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 (label_from_template_file.Length > 0)
Title = label_from_template_file;
render_helper(Output, Bib.Bib_Info.Main_Title.ToString(), 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)
{
Acronym = "Enter the discipline(s) 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.Degree_Disciplines_Count == 0))
{
render_helper(Output, String.Empty, Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}
else
{
if (etdInfo.Degree_Disciplines_Count == 1)
{
render_helper(Output, etdInfo.Degree_Disciplines[0], Skin_Code, Current_User, CurrentLanguage, Translator, Base_URL);
}
else
{
render_helper(Output, etdInfo.Degree_Disciplines, 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 = "Enter the date the material was received and any notes";
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 dateString = String.Empty;
if (Bib.Tracking.Material_Received_Date.HasValue)
dateString = Bib.Tracking.Material_Received_Date.Value.ToShortDateString();
render_helper(Output, dateString, Bib.Tracking.Material_Received_Notes, 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 = "Enter tickler(s) to find this material later within the context of a larger set or task.";
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.Behaviors.Ticklers, 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="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 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);
}