C# Class SobekCM.Library.MySobekViewer.Edit_Item_Metadata_MySobekViewer

Class allows an authenticated RequestSpecificValues.Current_User to edit a digital resource online, using various possible templates
This class extends the abstract_MySobekViewer class.

MySobek Viewers are used for registration and authentication with mySobek, as well as performing any task which requires authentication, such as online submittal, metadata editing, and system administrative tasks.

During a valid html request, the following steps occur:
  • Application state is built/verified by the Application_State_Builder
  • Request is analyzed by the QueryString_Analyzer and output as a Navigation_Object
  • Main writer is created for rendering the output, in his case the Html_MainWriter
  • The HTML writer will create the necessary subwriter. Since this action requires authentication, an instance of the MySobek_HtmlSubwriter class is created.
  • The mySobek subwriter creates an instance of this viewer to display the item for editing
  • This viewer uses the CompleteTemplate class to display the correct elements for editing
Inheritance: abstract_MySobekViewer
ファイルを表示 Open project: MarkVSullivan/SobekCM-Web-Application

Public Methods

Method Description
Add_Popup_HTML ( TextWriter Output, Custom_Tracer Tracer ) : void

Add the HTML to be added near the top of the page for those viewers that implement pop-up forms for data retrieval

This adds any popup divisions for form metadata elements

Edit_Item_Metadata_MySobekViewer ( SobekCM_Item DefaultMetadata, RequestCache RequestSpecificValues ) : System

Constructor for a new instance of the Edit_Item_Metadata_MySobekViewer class

Write_HTML ( TextWriter Output, Custom_Tracer Tracer ) : void

Add the HTML to be displayed in the main SobekCM viewer area (outside of any form)

Does nothing

Write_ItemNavForm_Opening ( TextWriter Output, Custom_Tracer Tracer ) : void

This is an opportunity to write HTML directly into the main form before any controls are placed in the main place holder

This text will appear within the ItemNavForm form tags

Write_Within_HTML_Head ( TextWriter Output, Custom_Tracer Tracer ) : bool

Write any additional values within the HTML Head of the final served page

Private Methods

Method Description
Complete_Item_Save ( ) : void
show_preview ( TextWriter Output, string Preview_Mode, Custom_Tracer Tracer ) : void

Method Details

Add_Popup_HTML() public method

Add the HTML to be added near the top of the page for those viewers that implement pop-up forms for data retrieval
This adds any popup divisions for form metadata elements
public Add_Popup_HTML ( TextWriter Output, Custom_Tracer Tracer ) : void
Output System.IO.TextWriter Textwriter to write the pop-up form HTML for this viewer
Tracer SobekCM.Tools.Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
return void

Edit_Item_Metadata_MySobekViewer() public method

Constructor for a new instance of the Edit_Item_Metadata_MySobekViewer class
public Edit_Item_Metadata_MySobekViewer ( SobekCM_Item DefaultMetadata, RequestCache RequestSpecificValues ) : System
DefaultMetadata SobekCM_Item Default metadata object, if that is how this is being used
RequestSpecificValues RequestCache All the necessary, non-global data specific to the current request
return System

Write_HTML() public method

Add the HTML to be displayed in the main SobekCM viewer area (outside of any form)
Does nothing
public Write_HTML ( TextWriter Output, Custom_Tracer Tracer ) : void
Output TextWriter Textwriter to write the HTML for this viewer
Tracer Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
return void

Write_ItemNavForm_Opening() public method

This is an opportunity to write HTML directly into the main form before any controls are placed in the main place holder
This text will appear within the ItemNavForm form tags
public Write_ItemNavForm_Opening ( TextWriter Output, Custom_Tracer Tracer ) : void
Output TextWriter Textwriter to write the pop-up form HTML for this viewer
Tracer Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
return void

Write_Within_HTML_Head() public method

Write any additional values within the HTML Head of the final served page
public Write_Within_HTML_Head ( TextWriter Output, Custom_Tracer Tracer ) : bool
Output TextWriter Output stream currently within the HTML head tags
Tracer Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
return bool