private void print_full_citation(TextWriter Output)
        {
            Output.WriteLine("</center>");
            if (currentMode.Base_Skin == "ufdc")
            {
                Output.WriteLine("<img src=\"" + currentMode.Default_Images_URL + "ufdc_banner_700.jpg\" />");
                Output.WriteLine("<br />");
            }

            if (currentMode.Base_Skin == "dloc")
            {
                Output.WriteLine("<img src=\"" + currentMode.Default_Images_URL + "dloc_banner_700.jpg\" />");
                Output.WriteLine("<br />");
            }

            Output.WriteLine("<div class=\"SobekCitation\">");
            Citation_ItemViewer citationViewer = new Citation_ItemViewer(translations, codeManager, false)
            {
                CurrentItem = currentItem, CurrentMode = currentMode
            };

            Output.WriteLine(citationViewer.Standard_Citation_String(false, null));
            Output.WriteLine("</div>");
        }
        private void show_preview(TextWriter Output, string Preview_Mode, Custom_Tracer Tracer)
        {
            Tracer.Add_Trace("Edit_Item_Metadata_MySobekViewer.show_preview", String.Empty);

            Output.WriteLine("<script language=\"JavaScript\">");

            // Get the URL to use for forwarding
            string current_submode = currentMode.My_Sobek_SubMode;

            currentMode.My_Sobek_SubMode = "ZZZZZ";
            string redirect_url = currentMode.Redirect_URL();

            currentMode.My_Sobek_SubMode = current_submode;

            Output.WriteLine("  function preview1() {if (document.itemNavForm.pickme) location='" + redirect_url.Replace("ZZZZZ", "preview") + "#template'}");
            Output.WriteLine("  function preview2() {if (document.itemNavForm.pickme) location='" + redirect_url.Replace("ZZZZZ", "marc") + "#template'}");
            Output.WriteLine("  function preview3() {if (document.itemNavForm.pickme) location='" + redirect_url.Replace("ZZZZZ", "mets") + "#template'}");
            Output.WriteLine("</script>");

            Output.WriteLine("<center>");
            Output.WriteLine(Preview_Mode == "preview"
                                 ? "<input TYPE=\"radio\" NAME=\"pickme\" onclick=\"preview1()\" checked=\"checked\" />Standard View &nbsp; &nbsp; "
                                 : "<input TYPE=\"radio\" NAME=\"pickme\" onclick=\"preview1()\" />Standard View &nbsp; &nbsp; ");

            Output.WriteLine(Preview_Mode == "marc"
                                 ? "<input TYPE=\"radio\" NAME=\"pickme\" onclick=\"preview2()\" checked=\"checked\" />MARC View &nbsp; &nbsp; "
                                 : "<input TYPE=\"radio\" NAME=\"pickme\" onclick=\"preview2()\" />MARC View &nbsp; &nbsp; ");

            Output.WriteLine(Preview_Mode == "mets"
                                 ? "<input TYPE=\"radio\" NAME=\"pickme\" onclick=\"preview3()\" checked=\"checked\" />METS View"
                                 : "<input TYPE=\"radio\" NAME=\"pickme\" onclick=\"preview3()\" />METS View");

            Output.WriteLine("</center>");
            Output.WriteLine("<br />");

            switch (Preview_Mode)
            {
            case "marc":
                Output.WriteLine("<div class=\"SobekCitation\">");
                Citation_ItemViewer marcViewer = new Citation_ItemViewer(Translator, codeManager, false)
                {
                    CurrentItem = item, CurrentMode = currentMode
                };
                Output.WriteLine(marcViewer.MARC_String("735px", Tracer));
                break;

            case "mets":
                Output.WriteLine("<div class=\"SobekCitation_METS\" width=\"950px\" >");
                Output.WriteLine("<table width=\"950px\"><tr><td width=\"950px\">");
                StringBuilder mets_builder = new StringBuilder(2000);
                StringWriter  mets_output  = new StringWriter(mets_builder);

                SobekCM_Item           testItem   = Test_Bib_Package.Create(String.Empty);
                METS_File_ReaderWriter metsWriter = new METS_File_ReaderWriter();

                string Error_Message;
                metsWriter.Write_Metadata(mets_output, testItem, null, out Error_Message);
                string mets_string = mets_builder.ToString();
                string header      = mets_string.Substring(0, mets_string.IndexOf("<METS:mets"));
                string remainder   = mets_string.Substring(header.Length);
                Output.WriteLine(header.Replace("<?", "&AAA;span style=&QQQ;color:Blue;&QQQ;&ZZZ;&lt?").Replace("?>", "?&gt;&AAA;/span&ZZZ;").Replace("<!--", "&AAA;span style=&QQQ;color:Blue;&QQQ;&ZZZ;&lt!--&AAA;/span&ZZZ;&AAA;span style=&QQQ;color:Gray;&QQQ;&ZZZ;").Replace("-->", "&AAA;/span&ZZZ;&AAA;span style=&QQQ;color:Blue;&QQQ;&ZZZ;--&gt;&AAA;/span&ZZZ;").Replace("\r", "<br />").Replace("&AAA;", "<").Replace("&ZZZ;", ">").Replace("&QQQ;", "\""));
                Output.WriteLine(remainder.Replace("<?", "&AAA;span style=&QQQ;color:Blue;&QQQ;&ZZZ;&lt?").Replace("?>", "?&gt;&AAA;/span&ZZZ;").Replace("<!--", "&AAA;span style=&QQQ;color:Blue;&QQQ;&ZZZ;&lt!--&AAA;/span&ZZZ;&AAA;span style=&QQQ;color:Gray;&QQQ;&ZZZ;").Replace("-->", "&AAA;/span&ZZZ;&AAA;span style=&QQQ;color:Blue;&QQQ;&ZZZ;--&gt;&AAA;/span&ZZZ;").Replace("</", "&AAA;span style=&QQQ;color:Blue;&QQQ;&ZZZ;&lt;/&AAA;/span&ZZZ;&AAA;span style=&QQQ;color:Maroon;&QQQ;&ZZZ;").Replace("<", "&AAA;span style=&QQQ;color:Blue;&QQQ;&ZZZ;&lt;&AAA;/span&ZZZ;&AAA;span style=&QQQ;color:Maroon;&QQQ;&ZZZ;").Replace("=\"", "&AAA;/span&ZZZ;&AAA;span style=&QQQ;color:Blue;&QQQ;&ZZZ;=&quot;&AAA;/span&ZZZ;").Replace("\">", "&AAA;span style=&QQQ;color:Blue;&QQQ;&ZZZ;&quot;&gt;&AAA;/span&ZZZ;").Replace("\"", "&AAA;span style=&QQQ;color:Blue;&QQQ;&ZZZ;&quot;&AAA;/span&ZZZ;&AAA;span style=&QQQ;color:Maroon;&QQQ;&ZZZ;").Replace("/>", "&AAA;/span&ZZZ;&AAA;span style=&QQQ;color:Blue;&QQQ;&ZZZ;/&gt;&AAA;/span&ZZZ;").Replace(">", "&AAA;/span&ZZZ;&AAA;span style=&QQQ;color:Blue;&QQQ;&ZZZ;&gt;&AAA;/span&ZZZ;").Replace("\r", "<br />").Replace("&AAA;", "<").Replace("&ZZZ;", ">").Replace("&QQQ;", "\""));
                Output.WriteLine("</td></tr></table>");
                break;

            default:
                Output.WriteLine("<div class=\"SobekCitation\">");
                Citation_ItemViewer citationViewer = new Citation_ItemViewer(Translator, codeManager, false)
                {
                    CurrentItem = item, CurrentMode = currentMode
                };
                Output.WriteLine(citationViewer.Standard_Citation_String(false, Tracer));
                break;
            }
            Output.WriteLine("</div><br />");
        }