Index: lib/style/common/templates/metacatui/entryForm.js
===================================================================
--- lib/style/common/templates/metacatui/entryForm.js	(nonexistent)
+++ lib/style/common/templates/metacatui/entryForm.js	(revision 7867)
@@ -0,0 +1,1188 @@
+function getParams() {
+    var paramsArray = document.location.href.split('?')[1].split('&');
+    for (var i = 0; i < paramsArray.length; i++) {
+        var temp = paramsArray[i].split('=');
+        alert(unescape(temp[0]) + '=' + unescape(temp[1]));
+    }
+}
+
+function addParagraph() {
+    var newParaWidget = document.createElement("textarea");
+    newParaWidget.setAttribute("rows", "6");
+    newParaWidget.className="longwidth";
+    newParaWidget.setAttribute("name", "methodPara");
+
+    var TR = document.createElement("tr");
+    TR.className='sectbody';
+    var TD = createTD("5","left");
+    var emptyTD = createTD("","right");
+    TD.appendChild(newParaWidget);
+    TR.appendChild(emptyTD);
+    TR.appendChild(TD);
+    var addParaButton = document.getElementById("addparabutton1");
+    var parent = addParaButton.parentNode;
+    parent.insertBefore(TR, addParaButton);
+}
+
+function addMethod() {
+    var index = incrementCount('methodCount');
+    var methodButton = document.getElementById("addmethodbutton");
+    var parent = methodButton.parentNode;
+    
+    parent.insertBefore(createHRRow(), methodButton);
+    parent.insertBefore(addMethodTitle(), methodButton);
+    parent.insertBefore(addMethodDescription(index), methodButton);
+    parent.insertBefore(addMethodButton(index), methodButton);
+}
+
+function  addMethodButton(index) {
+    var TR = document.createElement("tr");
+    var buttonId = 'addparabutton' + index;
+    TR.className='sectbody';
+    TR.setAttribute("id", buttonId);
+    var labelTD = createTD("","right");
+    var TD = createTD("5","left");
+    var button = document.createElement("input");
+    button.setAttribute("type", "button"); 
+    button.setAttribute("value", "Add Paragraph to Method Description"); 
+    if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all) {
+        button.attachEvent("onclick", new Function("addParagraph("+ index + ", '" + buttonId + "')"));
+    } else {
+        button.setAttribute("onclick", "addParagraph("+ index +", '" + buttonId + "')"); 
+    }
+    TD.appendChild(button);
+    TR.appendChild(labelTD);
+    TR.appendChild(TD);
+    return TR;
+}
+
+function  addMethodTitle() {
+    var TR = document.createElement("tr");
+    TR.className='sectbody';
+    var labelTD = createTD("","right");
+    labelTD.appendChild(document.createTextNode("Method Title"));
+    var TD = createTD("5","left");
+    var textField = document.createElement("input");
+    textField.setAttribute("type", "text"); 
+    textField.setAttribute("name", "methodTitle"); 
+    textField.className="longwidth";
+    TD.appendChild(textField);
+    TR.appendChild(labelTD);
+    TR.appendChild(TD);
+    return TR;
+}
+
+function  addMethodDescription(index) {
+    var TR = document.createElement("tr");
+    TR.className='sectbody';
+    var labelTD = createTD("","right");
+    labelTD.setAttribute("vAlign","top");
+    labelTD.appendChild(document.createTextNode("Method Description"));
+    var TD = createTD("5","left");
+    var textArea = document.createElement("textarea");
+    textArea.setAttribute("name", "methodPara"+index);
+    textArea.setAttribute("rows", 6); 
+    textArea.className="longwidth";
+    TD.appendChild(textArea);
+    TR.appendChild(labelTD);
+    TR.appendChild(TD);
+    return TR;
+}
+
+function createTextField(name, size, value) {
+    var newField = document.createElement("input");
+    newField.setAttribute("type", "text"); 
+    newField.setAttribute("name", name); 
+    newField.setAttribute("size", size); 
+    newField.value = value; 
+    return newField;
+}
+
+function createTextRow(count, varName, labelText, value) {
+    var textField = createTextField(varName + count, "30", value);
+    var row = createRow(count, textField, labelText);
+    return row;
+}
+
+function createRow(count, elem, labelText) {
+    var textTD = createTD("5");
+    textTD.appendChild(elem);
+
+    var labelTD = createTD("","right");
+
+    var labelSpan = document.createElement("span");
+    labelSpan.className = 'label';
+
+    var label = document.createTextNode(labelText);
+    labelSpan.appendChild(label);
+    labelTD.appendChild(labelSpan);
+
+    var TR = document.createElement("tr");
+    TR.className='sectbody';
+    TR.appendChild(labelTD);
+    TR.appendChild(textTD);
+
+    return TR;
+}
+
+function createHRRow() {
+    var hrCell = createTD("6");
+    var hr = document.createElement("hr");
+    hr.setAttribute("width", "85%");
+    hrCell.appendChild(hr);
+
+    var hrTR = document.createElement("tr");
+    hrTR.className = 'sectbody';
+    hrTR.appendChild(hrCell);
+
+    return hrTR;
+}
+
+function createHiddenInput(name, value) {
+    var elem = document.createElement("input");
+    elem.setAttribute("type", "hidden");
+    elem.setAttribute("name", name);
+    elem.setAttribute("value", value);
+    return elem
+}
+
+function sortInputTags() {
+    sortTagWithAttributeName("aoFirstName", "addAssociatedParty");
+    sortTagWithAttributeName("aoLastName", "addAssociatedParty");
+    sortTagWithAttributeName("aoRole", "addAssociatedParty", "select");
+    
+    sortTagWithAttributeName("taxonName", "addTaxon");
+    sortTagWithAttributeName("taxonRank", "addTaxon");
+    
+    sortTagWithAttributeName("keyword", "addKeyword");
+    sortTagWithAttributeName("keywordType", "addKeyword");
+    sortTagWithAttributeName("keywordTh", "addKeyword");
+}
+
+
+function sortTagWithAttributeName(tag, afterTag, parentTag) {
+    var elem = document.getElementById(afterTag);
+   
+    elem = elem.nextSibling.nextSibling;
+    while (elem.nodeName == "TR") {
+    var nodes = elem.getElementsByTagName("input");
+        for(var i = 0; i < nodes.length; i++) {
+            var node = nodes.item(i); 
+            if (node.getAttribute("name")==tag) {
+                    var parent = node.parentNode;
+                    var clone = node.cloneNode(true);
+                    parent.removeChild(node);
+                    parent.appendChild(clone);
+            }
+        }
+        if (parentTag != null) {
+            var nodes = elem.getElementsByTagName(parentTag);
+            for(var i = 0; i < nodes.length; i++) {
+                var node = nodes.item(i); 
+                if (node.getAttribute("name")==tag) {
+                        var parent = node.parentNode;
+                        var clone = node.cloneNode(true);
+                        clone.value = node.value;
+                        parent.removeChild(node);
+                        parent.appendChild(clone);
+                }
+            }
+        }
+        elem = elem.nextSibling;
+    }
+}
+
+function incrementCount(_count) {
+    var countField = document.getElementById(_count);
+    var count = countField.getAttribute("value");
+    count++;
+    countField.setAttribute("value", count);
+    return count;
+}
+
+function decrementCount(_count) {
+    var countField = document.getElementById(_count);
+    var count = countField.getAttribute("value");
+    count--;
+    countField.setAttribute("value", count);
+    return count;
+}
+
+function setCount(_count, val) {
+    var countField = document.getElementById(_count);
+    var count = countField.getAttribute("value");
+    countField.setAttribute("value", val);
+    return count;
+}
+
+function createImageLink(imgSrc, imgAlt, imgOnClick, cursor) {
+    var link = document.createElement("a");
+    var img = document.createElement("img");
+    img.setAttribute("src", imgSrc);
+    img.setAttribute("alt", imgAlt);
+    if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all) {
+        link.style.setAttribute("cursor", cursor);
+        img.attachEvent("onclick", new Function(imgOnClick));
+    } else {
+        link.setAttribute("style", "cursor:"+cursor);
+        img.setAttribute("onClick", imgOnClick);
+    }
+    img.setAttribute("border", "0");
+    link.appendChild(img);        
+    return link;
+}
+
+
+function createTD(colSpan, align, cursor) {
+    var td = document.createElement("td");
+    if (colSpan != "")
+        td.setAttribute("colSpan", colSpan);
+    td.setAttribute("align", align);
+    if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all) {
+        td.style.setAttribute("cursor", cursor);
+    } else {
+        td.setAttribute("style", "cursor:"+cursor);
+    }
+    return td;
+}
+
+
+function cleanTextNodes(startTagId, endTagId) {
+    var startTag = document.getElementById(startTagId);
+
+    var bro = startTag.nextSibling;       
+
+    while(bro) {
+        if (bro.nodeName == "#text") {
+            var temp = bro.nextSibling;
+            bro.parentNode.removeChild(bro);
+            bro = temp;
+        } else {
+            var id = bro.getAttribute("id");
+            if (id == endTagId) {
+              return;
+            }
+            bro = bro.nextSibling;
+        }
+    }
+
+}
+
+function delRow(evt) {
+    evt = (evt) ? evt : ((window.event) ? window.event : null);
+    if (evt) {
+        // equalize W3C/IE models to get event target reference
+        var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
+        if (elem) {
+            try {
+                var table = elem.parentNode.parentNode.parentNode.parentNode;
+                var row = elem.parentNode.parentNode.parentNode;
+
+                table.removeChild(row);
+            }
+            catch(e) {
+                var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
+                alert("Error:\n" + msg);
+                return;
+            }
+        }
+    }
+}
+
+function moveUpRow(evt) {
+    evt = (evt) ? evt : ((window.event) ? window.event : null);
+    if (evt) {
+        // equalize W3C/IE models to get event target reference
+        var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
+        if (elem) {
+            try {
+                var table = elem.parentNode.parentNode.parentNode.parentNode;
+                var row = elem.parentNode.parentNode.parentNode;
+                
+                var bro = row.previousSibling;
+                if (bro != null && bro.previousSibling.nodeName =="TR") {
+                    clone = row.cloneNode(true);
+                    table.insertBefore(clone, bro);
+                    table.removeChild(row);
+                }
+            }
+            catch(e) {
+                var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
+                alert("Error:\n" + msg);
+                return;
+            }
+        }
+    }
+}
+
+function moveDownRow(evt, lastTR) {
+    evt = (evt) ? evt : ((window.event) ? window.event : null);
+    if (evt) {
+        // equalize W3C/IE models to get event target reference
+        var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
+        if (elem) {
+            try {
+                var table = elem.parentNode.parentNode.parentNode.parentNode;
+                var row = elem.parentNode.parentNode.parentNode;
+                
+                var _test = row.nextSibling;
+                if (_test.getAttribute("id") == lastTR) {
+                    return;
+                }
+                var bro = row.nextSibling.nextSibling;
+                if (bro != null && bro.nodeName =="TR") {
+                    clone = row.cloneNode(true);
+                    table.insertBefore(clone, bro);
+                    table.removeChild(row);
+                }
+            }
+            catch(e) {
+                var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
+                alert("Error:\n" + msg);
+                return;
+            }
+        }
+    }
+}
+
+function addAssociatedParty() {
+    var AOLN   = document.getElementById("AONameLast");
+    var AOFN   = document.getElementById("AONameFirst");
+    var AORole = document.getElementById("AORole");
+
+    if (AOLN.value != "") {
+        var aoCount = incrementCount("aoCount");
+        
+        try {
+            var aoRow = createAORow(aoCount, AOLN.value, AOFN.value, AORole.options[AORole.selectedIndex].text);
+        } catch(e) {
+            var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
+            alert("Error:\n" + msg);
+            return;
+        }
+
+        var aoRowMarker = document.getElementById("addaorow");
+        var parent = aoRowMarker.parentNode;
+        
+        var aoHR = document.getElementById("aoHRRow");
+        if (aoHR == null) {
+            var aoHRRow = createHRRow();
+            aoHRRow.setAttribute("id", "aoHRRow");
+            parent.insertBefore(aoHRRow, aoRowMarker);
+        }
+        
+        parent.insertBefore(aoRow, aoRowMarker);
+    
+        AOFN.value = "";
+        AOLN.value = "";
+        AORole.selectedIndex = 0;
+    } else {
+        alert("Enter the last name of the associated party");
+    }
+}
+
+function createAORow(aoCount, AOLN, AOFN, AORole){    
+    var TR = document.createElement("tr");
+    TR.className='sectbody';
+    var labelTD = createTD("5","left", "pointer");
+    
+    if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all) {
+        labelTD.attachEvent("onclick", new Function("aoEditRow(event, 0, \"" + AOFN  + "\",\""
+                         + AOLN  + "\",\"" + AORole + "\")"));
+    } else {
+        labelTD.setAttribute("onClick","aoEditRow(event, 0, \"" + AOFN  + "\",\""
+                         + AOLN  + "\",\"" + AORole + "\")");
+    }
+
+    var text   = AOFN + " " + AOLN + " (Role: " + AORole + ")";
+    var label = document.createTextNode(text);
+
+    labelTD.appendChild(label);
+    labelTD.appendChild(createHiddenInput("aoFirstName", AOFN));
+    labelTD.appendChild(createHiddenInput("aoLastName", AOLN));
+    labelTD.appendChild(createHiddenInput("aoRole", AORole));
+    
+    var imgTD = createTD("","right");
+    imgTD.className = 'rightCol';
+        
+    imgTD.appendChild(createImageLink(contextUrl + "/style/images/previous.gif",
+                                      "Move Up","moveUpRow(event)","pointer"));
+    imgTD.appendChild(document.createTextNode(" "));
+    imgTD.appendChild(createImageLink(contextUrl + "/style/images/next.gif",
+                                      "Move Down", "moveDownRow(event, \"addaorow\")",
+                                      "pointer"));
+    imgTD.appendChild(document.createTextNode(" "));
+    imgTD.appendChild(createImageLink(contextUrl + "/style/images/delete.gif",
+                                      "Delete", "delRow(event)",
+                                      "pointer"));
+
+    TR.appendChild(imgTD);
+    TR.appendChild(labelTD);
+    
+    return TR;
+}
+
+function aoEditRow(evt, num,  AOFN ,  AOLN ,  AORole) {
+    evt = (evt) ? evt : ((window.event) ? window.event : null);
+    if (evt) {
+        // equalize W3C/IE models to get event target reference
+        var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
+        if (elem && elem.nodeName == "TD") {
+            try {
+                var table = elem.parentNode;
+                if (num == 0) {
+                    table.removeChild(elem);
+                    var TD = createTD("5","left", "pointer");
+                    if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all) {
+                        TD.attachEvent("onclick", new Function("aoEditRow(event, 1, \"" + AOFN  + "\",\""
+                                                    + AOLN  + "\",\"" + AORole + "\")"));
+                    } else {
+                        TD.setAttribute("onClick","aoEditRow(event, 1, \"" + AOFN  + "\",\""
+                                             + AOLN  + "\",\"" + AORole + "\")");
+                    }                   
+                    TD.appendChild(createTextField("aoFirstName", 15, AOFN));
+                    TD.appendChild(document.createTextNode(" "));
+                    TD.appendChild(createTextField("aoLastName", 15, AOLN));
+                    TD.appendChild(document.createTextNode(" Role: "));
+                    TD.appendChild(createAORoleTypeSelect("aoRole", AORole));
+                    table.appendChild(TD);
+                } else {
+                    var child = elem.childNodes;
+                    AOFN = child.item(0).value;
+                    AOLN = child.item(2).value;
+                    var _AORole = child.item(4);
+                    AORole = _AORole.options[_AORole.selectedIndex].text;
+                    table.removeChild(elem);
+
+                    var TD = createTD("5","left", "pointer");
+                    if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all) {
+                        TD.attachEvent("onclick", new Function("aoEditRow(event, 0, \"" + AOFN  + "\",\""
+                                                    + AOLN  + "\",\"" + AORole + "\")"));
+                    } else {
+                        TD.setAttribute("onClick","aoEditRow(event, 0, \"" + AOFN  + "\",\""
+                                             + AOLN  + "\",\"" + AORole + "\")");
+                    }
+                    var text   = AOFN + " " + AOLN + " (Role: " + AORole + ")";
+                    var label = document.createTextNode(text);
+                    TD.appendChild(label);
+                    TD.appendChild(createHiddenInput("aoFirstName", AOFN));
+                    TD.appendChild(createHiddenInput("aoLastName", AOLN));
+                    TD.appendChild(createHiddenInput("aoRole", AORole));
+                    table.appendChild(TD);
+                }
+            } catch(e) {
+                var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
+                alert("Error:\n" + msg);
+                return;
+            }
+        }
+    }
+}
+
+function createAORoleTypeSelect(name, value) {
+    var newField = document.createElement("select");
+    newField.setAttribute("name", name);
+    var option1 = document.createElement("option");
+    var text1 = document.createTextNode("Co-owner");
+    option1.appendChild(text1);
+    newField.appendChild(option1);
+    var option2 = document.createElement("option");
+    var text2 = document.createTextNode("Custodian/Steward");
+    option2.appendChild(text2);
+    newField.appendChild(option2);
+    var option3 = document.createElement("option");
+    var text3 = document.createTextNode("Metadata Provider");
+    option3.appendChild(text3);
+    newField.appendChild(option3)
+    var option4 = document.createElement("option");
+    var text4 = document.createTextNode("User");
+    option4.appendChild(text4);
+    newField.appendChild(option4);
+        
+    if (value == "Co-owner") {
+        newField.selectedIndex = 0;
+    } else if (value == "Custodian/Steward") {
+        newField.selectedIndex = 1;
+    } else if (value == "Metadata Provider") {
+        newField.selectedIndex = 2;
+    } else if (value == "User") {
+        newField.selectedIndex = 3;
+    }
+
+    return newField;
+}
+
+function addTaxon() {   
+    var taxonRank   = document.getElementById("taxonRank");
+    var taxonName   = document.getElementById("taxonName");
+
+    if (taxonRank.value !="" && taxonName.value != "") {
+        var taxonCount = incrementCount("taxaCount");
+        var row = createTaxonRow(taxonCount, taxonRank.value, taxonName.value);
+        var taxonRowMarker = document.getElementById("addtaxarow");
+        var parent = taxonRowMarker.parentNode;
+        
+        var taxonHR = document.getElementById("taxonHRRow");
+        if (taxonHR == null) {
+            var taxonHRRow = createHRRow();
+            taxonHRRow.setAttribute("id", "taxonHRRow");
+            parent.insertBefore(taxonHRRow, taxonRowMarker);
+        }
+        
+        parent.insertBefore(row, taxonRowMarker);
+
+        taxonRank.value = "";
+        taxonName.value = "";
+    } else {
+        alert("Enter complete taxonomic information");
+    }
+}
+
+function createTaxonRow(taxonCount, taxonRank, taxonName){    
+    var TR = document.createElement("tr");
+    TR.className='sectbody';
+
+    var labelTD = createTD("5","left", "pointer");
+    if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all) {
+        labelTD.attachEvent("onclick",new Function("taxonEditRow(event, 0, \"" + taxonName
+                         + "\",\"" + taxonRank  + "\")"));
+    } else {
+        labelTD.setAttribute("onClick","taxonEditRow(event, 0, \"" + taxonName
+                         + "\",\"" + taxonRank  + "\")");
+    }
+
+    var text = "Rank: " + taxonRank + ", Name: " + taxonName;
+    var label = document.createTextNode(text);
+
+    labelTD.appendChild(label);
+    labelTD.appendChild(createHiddenInput("taxonName", taxonName));
+    labelTD.appendChild(createHiddenInput("taxonRank", taxonRank));
+    
+    var imgTD = createTD("","right");
+    imgTD.className = 'rightCol';
+
+    imgTD.appendChild(createImageLink(contextUrl + "/style/images/previous.gif",
+                                      "Move Up", "moveUpRow(event)",
+                                      "pointer"));
+    imgTD.appendChild(document.createTextNode(" "));
+    imgTD.appendChild(createImageLink(contextUrl + "/style/images/next.gif",
+                                      "Move Down", "moveDownRow(event, 'addtaxarow')",
+                                      "pointer"));
+    imgTD.appendChild(document.createTextNode(" "));
+    imgTD.appendChild(createImageLink(contextUrl + "/style/images/delete.gif",
+                                      "Delete", "delRow(event)",
+                                      "pointer"));
+
+    TR.appendChild(imgTD);
+    TR.appendChild(labelTD);
+    
+    return TR;
+}
+
+function taxonEditRow(evt, num,  taxonName ,  taxonRank) {
+    evt = (evt) ? evt : ((window.event) ? window.event : null);
+    if (evt) {
+        // equalize W3C/IE models to get event target reference
+        var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
+        if (elem && elem.nodeName == "TD") {
+            try {
+                var table = elem.parentNode;
+                if (num == 0) {
+                    table.removeChild(elem);
+                    var TD = createTD("5","left", "pointer");
+                    if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all) {
+                        TD.attachEvent("onclick",new Function("taxonEditRow(event, 1, \"" + taxonName
+                                       + "\",\"" + taxonRank  + "\")"));
+                    } else {
+                        TD.setAttribute("onClick","taxonEditRow(event, 1, \"" + taxonName
+                                        + "\",\"" + taxonRank  + "\")");
+                    }
+          
+                    TD.appendChild(document.createTextNode("Rank: "));
+                    TD.appendChild(createTextField("taxonName", 15, taxonName));
+                    TD.appendChild(document.createTextNode(" Name: "));
+                    TD.appendChild(createTextField("taxonRank", 15, taxonRank));
+                    table.appendChild(TD);
+                } else {
+                    var child = elem.childNodes;
+                    taxonName = child.item(1).value;
+                    taxonRank = child.item(3).value;
+                    table.removeChild(elem);
+
+                    var TD = createTD("5","left", "pointer");
+                    if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all) {
+                        TD.attachEvent("onclick",new Function("taxonEditRow(event, 0, \"" + taxonName
+                                       + "\",\"" + taxonRank  + "\")"));
+                    } else {
+                        TD.setAttribute("onClick","taxonEditRow(event, 0, \"" + taxonName
+                                        + "\",\"" + taxonRank  + "\")");
+                    }                        
+                    var text = "Rank: " + taxonName + ", Name: " + taxonRank;
+                    var label = document.createTextNode(text);
+                    TD.appendChild(label);
+                    TD.appendChild(createHiddenInput("taxonName", taxonName));
+                    TD.appendChild(createHiddenInput("taxonRank", taxonRank));
+                    table.appendChild(TD);
+                }
+            } catch(e) {
+                var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
+                alert("Error:\n" + msg);
+                return;
+            }
+        }
+    }
+}
+
+function addKeyword() {
+    var keyword   = document.getElementById("keyword");
+    var keywordType   = document.getElementById("keywordType");
+    var keywordTh = document.getElementById("keywordTh");
+
+    if (keyword.value !="") {
+        var keyCount = incrementCount("keyCount");
+        var keyRow = createKeywordRow(keyCount, keyword.value, 
+                                      keywordType.options[keywordType.selectedIndex].text, 
+                                      keywordTh.options[keywordTh.selectedIndex].text);
+        var keyRowMarker = document.getElementById("addkeyrow");
+        var parent = keyRowMarker.parentNode;
+        
+        var keyHR = document.getElementById("keywordHRRow");
+        if (keyHR == null) {
+            var keyHRRow = createHRRow();
+            keyHRRow.setAttribute("id", "keywordHRRow");
+            parent.insertBefore(keyHRRow, keyRowMarker);
+        }
+        
+        parent.insertBefore(keyRow, keyRowMarker);
+    
+        keyword.value = "";
+        keywordType.selectedIndex = 0;
+        keywordTh.selectedIndex = 0;
+    } else {
+        alert("Enter keyword");
+    }
+}
+
+function createKeywordRow(keyCount, keyword, keywordType, keywordTh){    
+    var TR = document.createElement("tr");
+    TR.className='sectbody';
+
+    var labelTD = createTD("5","left", "pointer");
+    
+    if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all) {
+        labelTD.attachEvent("onclick", new Function("keywordEditRow(event, 0, \"" + keyword
+            + "\",\"" + keywordType + "\",\"" + keywordTh  + "\")"));
+    } else {
+        labelTD.setAttribute("onClick","keywordEditRow(event, 0, \"" + keyword
+            + "\",\"" + keywordType + "\",\"" + keywordTh  + "\")");
+    }
+              
+    var text   = keyword + " (Type: " + keywordType + ", Thesaurus: " + keywordTh + ")";
+    var label = document.createTextNode(text);
+
+    labelTD.appendChild(label);
+    labelTD.appendChild(createHiddenInput("keyword", keyword));
+    labelTD.appendChild(createHiddenInput("keywordType", keywordType));
+    labelTD.appendChild(createHiddenInput("keywordTh", keywordTh));
+    
+    var imgTD = createTD("","right");
+    imgTD.className = 'rightCol';
+
+    imgTD.appendChild(createImageLink(contextUrl + "/style/images/previous.gif",
+                                      "Move Up", "moveUpRow(event)",
+                                      "pointer"));
+    imgTD.appendChild(document.createTextNode(" "));
+    imgTD.appendChild(createImageLink(contextUrl + "/style/images/next.gif",
+                                      "Move Down", "moveDownRow(event, 'addkeyrow')",
+                                      "pointer"));
+    imgTD.appendChild(document.createTextNode(" "));
+    imgTD.appendChild(createImageLink(contextUrl + "/style/images/delete.gif",
+                                      "Delete", "delRow(event)",
+                                      "pointer"));
+
+    TR.appendChild(imgTD);
+    TR.appendChild(labelTD);
+    
+    return TR;
+}
+
+function keywordEditRow(evt, num,  keyword,  keywordType, keywordTh) {
+    evt = (evt) ? evt : ((window.event) ? window.event : null);
+    if (evt) {
+        // equalize W3C/IE models to get event target reference
+        var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
+        if (elem && elem.nodeName == "TD") {
+            try {
+                var table = elem.parentNode;
+                if (num == 0) {
+                    table.removeChild(elem);
+                    var TD = createTD("5","left", "pointer");
+                    if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all) {
+                        TD.attachEvent("onclick", new Function("keywordEditRow(event, 1, \"" + keyword
+                        + "\",\"" + keywordType + "\",\"" + keywordTh  + "\")"));
+                    } else {
+                        TD.setAttribute("onClick","keywordEditRow(event, 1, \"" + keyword
+                        + "\",\"" + keywordType + "\",\"" + keywordTh  + "\")");
+                    }
+                
+                    TD.appendChild(createTextField("keyword", 15, keyword));
+                    TD.appendChild(document.createTextNode(" Type: "));
+                    TD.appendChild(createKeyTypeSelect("keywordType", keywordType));
+                    TD.appendChild(document.createTextNode(" Thesaurus: "));
+                    TD.appendChild(createKeyThSelect("keywordTh", keywordTh));
+                    table.appendChild(TD);
+                } else {
+                    var child = elem.childNodes;
+                    keyword = child.item(0).value;
+                    var _keywordType = child.item(2);
+                    keywordType = _keywordType.options[_keywordType.selectedIndex].text;
+                    var _keywordTh = child.item(4);
+                    keywordTh = _keywordTh.options[_keywordTh.selectedIndex].text;
+                    table.removeChild(elem);
+
+                    var TD = createTD("5","left", "pointer");
+                    if (navigator.userAgent.toLowerCase().indexOf('msie')!= -1 && document.all) {
+                        TD.attachEvent("onclick", new Function("keywordEditRow(event, 0, \"" + keyword
+                        + "\",\"" + keywordType + "\",\"" + keywordTh  + "\")"));
+                    } else {
+                        TD.setAttribute("onClick","keywordEditRow(event, 0, \"" + keyword
+                        + "\",\"" + keywordType + "\",\"" + keywordTh  + "\")");
+                    }
+                
+                    var text   = keyword + " (Type: " + keywordType + ", Thesaurus: " + keywordTh + ")";
+                    var label = document.createTextNode(text);
+                    TD.appendChild(label);
+                    TD.appendChild(createHiddenInput("keyword", keyword));
+                    TD.appendChild(createHiddenInput("keywordType", keywordType));
+                    TD.appendChild(createHiddenInput("keywordTh", keywordTh));
+                    table.appendChild(TD);
+                }
+            } catch(e) {
+                var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
+                alert("Error:\n" + msg);
+                return;
+            }
+        }
+    }
+}
+
+function createKeywordThesaurusRow(name) {        
+    var keyRowTemplate = document.getElementById("keyThRow");
+    var newField =  keyRowTemplate.cloneNode(true);
+    var nodes = newField.getElementsByTagName("input");
+    nodes.item(0).setAttribute("name", name);
+    nodes.item(1).setAttribute("name", name);
+    return newField;
+}
+
+function createKeyThSelect(name, value) {
+    var newField = document.createElement("select");
+    newField.setAttribute("name", name);
+    var option1 = document.createElement("option");
+    var text1 = document.createTextNode("None");
+    option1.appendChild(text1);
+    newField.appendChild(option1);
+    var option2 = document.createElement("option");
+    var text2 = document.createTextNode("GCMD");
+    option2.appendChild(text2);
+    newField.appendChild(option2);
+
+    if (value == "None") {
+        newField.selectedIndex = 0;
+    } else if (value == "GCMD") {
+        newField.selectedIndex = 1;
+    }
+    return newField;
+}
+
+function createKeyTypeSelect(name, value) {
+    var newField = document.createElement("select");
+    newField.setAttribute("name", name);
+    var option1 = document.createElement("option");
+    var text1 = document.createTextNode("None");
+    option1.appendChild(text1);
+    newField.appendChild(option1);
+    var option2 = document.createElement("option");
+    var text2 = document.createTextNode("Theme");
+    option2.appendChild(text2);
+    newField.appendChild(option2);
+    var option3 = document.createElement("option");
+    var text3 = document.createTextNode("Place");
+    option3.appendChild(text3);
+    newField.appendChild(option3)
+    var option4 = document.createElement("option");
+    var text4 = document.createTextNode("Stratum");
+    option4.appendChild(text4);
+    newField.appendChild(option4);
+    var option5 = document.createElement("option");
+    var text5 = document.createTextNode("Temporal");
+    option5.appendChild(text5);
+    newField.appendChild(option5);
+    var option6 = document.createElement("option");
+    var text6 = document.createTextNode("Taxonomic");
+    option6.appendChild(text6);
+    newField.appendChild(option6);        
+    if (value == "None") {
+        newField.selectedIndex = 0;
+    } else if (value == "Theme") {
+        newField.selectedIndex = 1;
+    } else if (value == "Place") {
+        newField.selectedIndex = 2;
+    } else if (value == "Stratum") {
+        newField.selectedIndex = 3;
+    }else if (value == "Temporal") {
+        newField.selectedIndex = 4;
+    } else if (value == "Taxonomic") {
+        newField.selectedIndex = 5;
+    }
+    return newField;
+}
+
+var basicInfoBit = 1;
+var submitterBit = 1;
+var dsoBit = 1;
+var apBit = 1;
+var abstractBit = 1;
+var keywordBit = 1;
+var temporalBit = 1;
+var spatialBit = 1;
+var taxonomicBit = 1;
+var methodBit = 1;
+var dscBit = 1;
+var distBit = 1;
+var uploadBit = 1;
+
+function swap(evt, _node, nodeBit) {
+    evt = (evt) ? evt : ((window.event) ? window.event : null);
+    if (evt) {
+        var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
+        
+        // hack so that this works on safari...
+        if (elem.nodeName != 'A') {
+            elem = elem.parentNode;
+        }
+        elem.removeChild(elem.firstChild);
+        var node = document.getElementById(_node);
+        if (nodeBit) {
+            elem.appendChild(document.createTextNode("Show"));
+            node.className="hide";
+            return 0;
+        } else {
+            elem.appendChild(document.createTextNode("Hide"));
+            node.className="tables";
+            return 1;
+        }
+    }        
+}
+
+function handleOther(enable, node) {
+    var textBox = document.getElementById(node);
+    if (enable) {
+        textBox.removeAttribute("disabled");   
+    } else {
+        textBox.value="";
+        textBox.disabled = "true";   
+    }
+}
+
+function copyContact() {
+    var checkBox = document.getElementById("copyCheckBox");
+    if (checkBox.checked == true)
+    {
+        var cnf = document.getElementById("contactNameFirst");
+        var onf = document.getElementById("origNameFirst");
+        cnf.value = onf.value;
+        cnf.disabled = "true";
+
+        var cnl = document.getElementById("contactNameLast");
+        var onl = document.getElementById("origNameLast");
+        cnl.value = onl.value;
+        cnl.disabled = "true";
+
+        var cno = document.getElementById("contactNameOrg");
+        var ono = document.getElementById("origNameOrg");
+        cno.value = ono.value;
+        cno.disabled = "true";
+
+        var ce = document.getElementById("contactEmail");
+        var oe = document.getElementById("origEmail");
+        ce.value = oe.value;
+        ce.disabled = "true";
+
+        var cp = document.getElementById("contactPhone");
+        var op = document.getElementById("origPhone");
+        cp.value = op.value;
+        cp.disabled = "true";
+
+        var cf = document.getElementById("contactFAX");
+        var of = document.getElementById("origFAX");
+        cf.value = of.value;
+        cf.disabled = "true";
+
+        var cd = document.getElementById("contactDelivery");
+        var od = document.getElementById("origDelivery");
+        cd.value = od.value;
+        cd.disabled = "true";
+
+        var cc = document.getElementById("contactCity");
+        var oc = document.getElementById("origCity");
+        cc.value = oc.value;
+        cc.disabled = "true";
+
+        var cs = document.getElementById("contactState");
+        var os = document.getElementById("origState");
+        cs.options[os.selectedIndex].selected = true;
+        cs.disabled = "true";           
+
+        var cso = document.getElementById("contactStateOther");
+        var oso = document.getElementById("origStateOther");
+        cso.value = oso.value;
+        cso.disabled = "true";
+
+        var cz = document.getElementById("contactZip");
+        var oz = document.getElementById("origZip");
+        cz.value = oz.value;
+        cz.disabled = "true";
+
+        var cC = document.getElementById("contactCountry");
+        var oC = document.getElementById("origCountry");
+        cC.value = oC.value;
+        cC.disabled = "true";
+    } else {
+        var cnf = document.getElementById("contactNameFirst");
+        cnf.value = "";
+        cnf.removeAttribute("disabled");
+
+        var cnl = document.getElementById("contactNameLast");
+        cnl.value = "";
+        cnl.removeAttribute("disabled");
+
+        var cno = document.getElementById("contactNameOrg");
+        cno.value = "";
+        cno.removeAttribute("disabled");
+
+        var ce = document.getElementById("contactEmail");
+        ce.value = "";
+        ce.removeAttribute("disabled");
+
+        var cp = document.getElementById("contactPhone");
+        cp.value = "";
+        cp.removeAttribute("disabled");
+
+        var cf = document.getElementById("contactFAX");
+        cf.value = "";
+        cf.removeAttribute("disabled");
+
+        var cd = document.getElementById("contactDelivery");
+        cd.value = "";
+        cd.removeAttribute("disabled");
+
+        var cc = document.getElementById("contactCity");
+        cc.value = "";
+        cc.removeAttribute("disabled");
+
+        var cs = document.getElementById("contactState");
+              cs.options[0].selected = true;
+        cs.removeAttribute("disabled");
+
+        var cso = document.getElementById("contactStateOther");
+        cso.value = "";
+        cso.removeAttribute("disabled");
+
+        var cz = document.getElementById("contactZip");
+        cz.value = "";
+        cz.removeAttribute("disabled");
+
+        var cC = document.getElementById("contactCountry");
+        cC.value = "";
+        cC.removeAttribute("disabled");
+    }
+}
+
+// include source for Multiple file uploader:
+// http://the-stickman.com/web-development/javascript/
+
+function MultiSelector(list_target, max) {
+
+    this.list_target = list_target;
+    this.count = 0;
+    this.id = 0;
+    var ucount =  document.getElementById("upCount");
+    var fcount =  document.getElementById("fileCount");
+    if (fcount.value > 0) {
+        this.id = fcount.value;
+    } else {
+        // upCount contains pre-existing uploads, check this for editing existing packages
+        if (ucount != null && ucount.value > 0) {
+            this.id = ucount.value;
+        }
+    }
+
+    if (max) {
+        this.max = max;
+    } else {
+      this.max = -1;
+    };
+
+    /**
+     * Add a new file input element
+     */
+    this.addElement = function( element ) {
+
+        // Make sure it's a file input element
+        if (element.tagName == 'INPUT' && element.type == 'file' ) {
+            // Element name -- what number am I?
+            element.name = 'file_' + this.id++;
+
+            // Add reference to this object
+            element.multi_selector = this;
+
+            // What to do when a file is selected
+            element.onchange = function() {
+                // Increment file counter
+                var fileCount = incrementCount("fileCount");
+                // If pre-existing uploads exist, make sure the fileCount is synced
+                if (ucount != null && ucount.value > 0) {
+                    fileCount += ucount.value;
+                    setCount("fileCount", fileCount);
+                }
+
+                // Clean up file text
+                var comment_element = document.getElementById( 'file_comment' );
+                if (comment_element) {
+                    comment_element.parentNode.removeChild(comment_element);
+                }
+
+                // New file input
+                var new_element = document.createElement( 'input' );
+                new_element.type = 'file';
+
+                // Add new element
+                this.parentNode.insertBefore( new_element, this );
+
+                // Apply 'update' to element
+                this.multi_selector.addElement( new_element );
+
+                // Update list
+                this.multi_selector.addListRow( this );
+
+                // Hide this: we can't use display:none because Safari doesn't like it
+                this.style.position = 'absolute';
+                this.style.left = '-1000px';
+            };
+
+            // If we've reached maximum number, disable input element
+            if (this.max != -1 && this.count >= this.max ) {
+                element.disabled = true;
+            };
+            
+            // File element counter
+            this.count++;
+
+            // Most recent element
+            this.current_element = element;
+
+        } else {
+            // This can only be applied to file input elements!
+            alert( 'Error: not a file input element' );
+        };
+    };
+
+    /**
+     * Add a new row to the list of files
+     */
+    this.addListRow = function( element ) {
+        // Row div
+        var new_row = document.createElement( 'div' );
+
+        // Delete button
+        var new_row_button = document.createElement( 'input' );
+        new_row_button.type = 'button';
+        new_row_button.value = 'Delete';
+
+        // Permissions check boxes
+        var radio_value_a = 'public';
+        var radio_value_b = 'private';
+        var new_radio_a = document.createElement('input');
+        var new_radio_b = document.createElement('input');
+        new_radio_a.type = new_radio_b.type = 'radio';
+        // get the file upload name, use the number to keep track of the file we're setting permissions on
+        new_radio_a.name = new_radio_b.name = 'uploadperm_' + element.name.split("_")[1];
+        new_radio_a.value = radio_value_a;
+        new_radio_b.value = radio_value_b;
+        new_radio_a.checked = false;
+        new_radio_b.checked = true; // when adding new files, default is private
+         
+        // References
+        new_row.element = element;
+
+        // Delete function
+        new_row_button.onclick= function() {
+            // Remove element from form
+            this.parentNode.element.parentNode.removeChild( this.parentNode.element );
+
+            // Remove this row from the list
+            this.parentNode.parentNode.removeChild( this.parentNode );
+            // Decrement counter
+            this.parentNode.element.multi_selector.count--;
+
+            // Re-enable input element (if it's disabled)
+            this.parentNode.element.multi_selector.current_element.disabled = false;
+
+            // Appease Safari
+            //    without it Safari wants to reload the browser window
+            //    which nixes your already queued uploads
+            return false;
+        };
+       
+        // filename may include path, show only file name itself
+        var name_pattern = element.value.replace(/.*[\/\\](.*)/, "$1");
+
+        // Set row value
+        new_row.appendChild( document.createTextNode(name_pattern + " ") );
+        
+        // Add in radio buttons and their text
+        new_row.appendChild( new_radio_a );
+        new_row.appendChild( document.createTextNode(capitalize(radio_value_a) + " ") );
+        new_row.appendChild( new_radio_b );
+        new_row.appendChild( document.createTextNode(capitalize(radio_value_b) + " ") );
+
+        // Add button
+        new_row.appendChild( new_row_button );
+
+        // Add it to the list
+        this.list_target.appendChild( new_row );
+    };
+
+};
+
+// Append files to be deleted to an HTML array
+function deleteFile(evt, file) {
+    evt = (evt) ? evt : ((window.event) ? window.event : null);
+    if (evt) {
+        // equalize W3C/IE models to get event target reference
+        var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
+        var element = document.getElementById("file_element");
+        if (elem) {
+            try {
+                // Add a new hidden form element to delete exisiting files
+                var delete_existing = document.createElement( 'input' );
+                delete_existing.type = "hidden";
+                delete_existing.name = "deletefile"; // HTML array
+                delete_existing.value = file.name;
+                element.parentNode.appendChild( delete_existing );
+
+                // Remove this row from the list
+                elem.parentNode.parentNode.removeChild( elem.parentNode );
+            } catch(e) {
+                var msg = (typeof e == "string") ? e : ((e.message) ? e.message : "Unknown Error");
+                alert("Error:\n" + msg);
+                return;
+            }
+        }
+    }
+}
+
+function capitalize(word) {
+    return word.charAt(0).toUpperCase() + word.substr(1).toLowerCase();
+}

Property changes on: lib/style/common/templates/metacatui/entryForm.js
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: lib/style/common/templates/metacatui/entryForm.tmpl
===================================================================
--- lib/style/common/templates/metacatui/entryForm.tmpl	(nonexistent)
+++ lib/style/common/templates/metacatui/entryForm.tmpl	(revision 7867)
@@ -0,0 +1,1148 @@
+[% INCLUDE $templates.header %]
+
+  <script language="JavaScript">
+	    var contextUrl = '[% contextUrl %]';
+	</script>
+  <script language="JavaScript" type="text/javascript" src="[% styleCommonPath %]/templates/entryForm.js">
+  </script>
+
+      [% IF form != 're_entry' %]  
+      
+      
+      <table class="intro" cellpadding="3" cellspacing="0">
+      
+      <tr><td align="left"><span class="emphasis">[% config.type %] Form</span></td></tr>
+      <tr><td align="left"><span class="regtext">Use this form to submit a new data set description for
+         inclusion in the [% config.type | lower %].</span>
+     [%IF cfg =='esa' %]<span class="redbold">This metadata registry is ONLY for entries associated with articles for ESA publications.</span>
+         <span class="regtext">  For those wishing to make public metadata entries not associated with 
+          ESA, <a href="http://knb.ecoinformatics.org">The Knowledge Network for Biocomplexity</a> runs a
+          metadata registry available to the greater scientific community.
+        </span>
+     [% END %]
+     </td></tr>
+      <tr><td></td></tr>
+      <tr><td align="left"><span class="regtext">Please have a look at the 
+      <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide" target="guide">
+        <span class="boldlink">Guide for Completing the Data [% config.type %] Form</span></a> 
+        before you start filling in this form. Also, use your browser's 
+        Reload/Refresh function to make sure you see the latest version of this 
+        page.</span></td></tr>
+      <tr><td></td></tr>
+    
+    [%IF cfg =='esa' %]
+    <tr><td align="left"><span class="regtext">After you submit, watch for e-mail 
+      sent by the ESA moderator regarding whether your data set description needs revision, has been denied or has been accepted.</span>
+    </td></tr>
+        <tr><td></td></tr>
+    [% END %]
+    
+      <tr><td align="left"><span class="regtext">If you have any questions, comments or problems 
+      regarding this form, please contact [% email.admin %] at 
+      <a href="mailto:[% email.recipient %]"><span class="boldlink">[% email.recipient %]</span></a></span>.      
+      </td></tr><tr><td></td></tr>
+      [% ELSE %]
+      
+      
+      <table class="intro" cellpadding="3" cellspacing="0">
+      <tr><td align="left"><span class="regtext">Use this page to edit the data set description that you submitted earlier to the [% config.type | lower %].
+      [%IF docid !=''%]
+      <br>The ID of this data set is: <span class="boldlink"><a href="[% metacatUrl %]?action=read&qformat=[% cfg %]&docid=[% docid %]">[% docid %]</a>
+      </span>
+      [%END%]
+      </span></td></tr>
+      <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide" target="guide">
+        <span class="boldlink">Guide for Completing the Data [% config.type %] Form</span></a> 
+        for help with filling in this form.</span></td</tr>
+      <tr><td></td></tr>
+      <tr><td align="left"><span class="regtext">If you have any questions, comments or problems 
+      regarding this form, please contact [% email.admin %] at 
+      <a href="mailto:[% email.recipient %]"><span class="boldling">[% email.recipient %]</span></a>.</span>
+      </td></tr><tr><td></td></tr>
+      [% END %]
+      
+      
+      <tr><td align="left"><span class="label">*Denotes a required field.</span></td></tr>
+      <tr><td></td></tr>
+      
+      <tr><td></td></tr>
+      
+      </table>
+
+
+<form action="[% cgiPrefix %]/register-dataset.cgi" enctype="multipart/form-data" method="post">
+  <input type="hidden" name="cfg" value="[% cfg %]">
+  <input type="hidden" name="docid" value="[% docid %]">
+  <input type="hidden" name="stage" value="insert">
+  
+        <table class="tables" cellpadding="5" cellspacing="0">
+        <tr class="sectheader">
+          <td colspan="5" align="left">
+            <span class="label">NAME OF SUBMITTER</span> 
+            <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#Submitter" target="guide" class="smalltext">(What's this?)</a>
+          </td>
+          <td class="rightCol"><span><a onClick="submitterBit=swap(event, 'submitterTable', submitterBit)" style="cursor:pointer">Hide</a></span></td>
+        </tr>
+  </table>
+        
+        <table class="tables" cellpadding="5" cellspacing="0" id="submitterTable">
+        <tr class="sectbody" id="firstName"><td class="rightCol"><span class="label">*First Name</span><td colspan="5"><input type="TEXT" name="providerGivenName" class="shortwidth" value="[%providerGivenName%]">
+        </td></tr>
+  <tr class="sectbody" id="lastName"><td class="rightCol"><span class="label">*Last Name</span><td colspan="5"><input type="TEXT" name="providerSurName" class="shortwidth" value="[%providerSurName%]">
+        </td></tr>
+  </table>
+  
+  
+        <table class="tables" cellpadding="5" cellspacing="0">
+        <tr class="sectheader">
+          <td colspan="5" align="left">
+            <span class="label">BASIC INFORMATION</span>
+            <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#BasicInformation" target="guide" class="smalltext">(What's this?)</a>
+          </td>
+          <td class="rightCol"><span><a onClick="basicInfoBit=swap(event, 'basicInfoTable', basicInfoBit)" style="cursor:pointer">Hide</a></span></td>
+        </tr>
+  </table>
+        
+        <table class="tables" cellpadding="5" cellspacing="0" id="basicInfoTable">
+  <tr class="sectbody" id="title"><td class="rightCol"><span class="label">*Data Set Title</span></td><td colspan="5"><input type="TEXT" name="title" value="[%title%]" class="longwidth">
+        </td></tr>
+    
+  [% IF show.siteList == 'true' %]
+        <tr class="sectbody" id="sitelist"><td class="rightCol"><span class="label">*[% config.site | ucfirst %] Name</span></td>
+    <td colspan="5"><select name="site" class="longwidth">
+      [% IF form == 're_entry' %]
+        <option selected>[%site%]</option>
+      [% ELSE %]
+          <option>Select your [% config.site %] here.</option>
+      [% END %]
+            [% FOREACH site = siteList %]
+              <option>[% site %]</option>
+            [% END %]
+          </select></td></tr>
+[% END %]
+        
+  [% IF show.wgList == 'true' %]
+        <tr class="sectbody"><td class="rightCol"><span class="label">*NCEAS Project(s):</span></td>
+            <td colspan="5"><select name="wg" multiple="multiple" size="5" class="longwidth">
+            [% FOREACH project = projects %]
+              [% SET pname = $project.3 %]
+              [% IF pname.length > 50 %]
+                [% SET sname = $project.4 %]
+              [% END %]
+              [% SET label = "NCEAS ${project.0}: ${project.1}: $project.4" %]
+              [% SET value = "NCEAS ${project.0}: ${project.1}: $project.3" %]
+              [% SET sel = '' %]
+              [% FOREACH group = wg %]
+                  [% IF group == value %]
+                      [% SET sel = 'selected="selected"' %]
+                  [% END %]
+              [% END %]
+              <option value="[% value %]" [% sel %]>[% label %]</option>
+            [% END %]
+          </select></td></tr>
+[% END %]
+[% IF show.organization == 'true' %]
+        <tr class="sectbody"><td class="rightCol"><span class="label">*Organization Name</span></td>
+            <td colspan="5"><input type="TEXT" name="site" class="longwidth" value="[%site%]"></td></tr>
+[% END %]
+    </table>
+       
+    <table class="tables" cellpadding="5" cellspacing="0">
+        <tr class="sectheader">
+          <td colspan="5" align="left">
+            <span class="label">PRINCIPAL DATA SET OWNER</span>
+            <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetOriginator" 
+  target="guide" class="smalltext">(What's this?)</a>
+          </td>
+          <td class="rightCol"><span><a onClick="dsoBit=swap(event, 'dsoTable', dsoBit)" style="cursor:pointer">Hide</a></span></td>
+        </tr>
+    </table>
+
+    <table class="tables" cellpadding="5" cellspacing="0" id="dsoTable">    
+    <tr class="sectbody"><td class="rightCol"><span class="label">*First Name</span></td>
+        <td colspan="5"><input type="TEXT" name="origNamefirst0" class="shortwidth" id="origNameFirst" value="[%origNamefirst0%]"></td></tr>
+    <tr class="sectbody"><td class="rightCol"><span class="label">*Last Name</span></td>
+        <td colspan="5"><input type="TEXT" name="origNamelast0" class="shortwidth" id="origNameLast" value="[%origNamelast0%]"></td></tr>
+    <tr class="sectbody"><td class="rightCol"><span class="label">Organization Name</span></td>
+        <td colspan="5"><input type="TEXT" name="origNameOrg" class="longwidth" id="origNameOrg" value="[%origNameOrg%]"></td></tr>
+    <tr class="sectbody"><td class="rightCol"><span class="label">E-Mail</span></td>
+         <td colspan="5"><input type="TEXT" name="origEmail" class="shortwidth" id="origEmail" value="[%origEmail%]"></td></tr>
+    <tr class="sectbody"><td class="rightCol"><span class="label">Phone</span></td>
+        <td colspan="5"><input type="TEXT" name="origPhone" class="shortwidth" id="origPhone" value="[%origPhone%]"></td></tr>
+    <tr class="sectbody"><td class="rightCol"><span class="label">FAX</span></td>
+        <td colspan="5"><input type="TEXT" name="origFAX" class="shortwidth" id="origFAX" value="[%origFAX%]"></td></tr>
+  
+   <tr class="sectbody"><td valign="top" align="right"><span class="label">Street<br>Information</td> 
+        <td colspan="5"><textarea id="origDelivery" name="origDelivery" class="longwidth">[%origDelivery%]</textarea><br><span class="smalltext">(number, street, unit, etc.; comma-separated)</span>
+        </td></tr>
+    
+    <tr class="sectbody"><td class="rightCol"><span class="label">City</span></td>
+        <td colspan="5"><input type="TEXT" name="origCity" id="origCity" value="[%origCity%]" class="shortwidth"></td></tr>
+    <tr class="sectbody"><td class="rightCol"><span class="label">U.S. State or Territory</span></td>
+        <td colspan="5"><select name="origState" id="origState" class="shortwidth">
+      [% IF form == 're_entry' %]
+                <option selected>[%origState%]</option>
+      [% ELSE %]
+    <option>Select state or territory here.</option>
+      [% END %]
+            <option>Alabama</option>
+            <option>Alaska</option>
+            <option>American Samoa</option>
+            <option>Arizona</option>
+            <option>Arkansas</option>
+            <option>California</option>
+            <option>Colorado</option>
+            <option>Connecticut</option>
+            <option>Delaware</option>
+            <option>District of Columbia</option>
+            <option>Florida</option>
+            <option>Georgia</option>
+            <option>Guam</option>
+            <option>Hawaii</option>
+            <option>Idaho</option>
+            <option>Illinois</option>
+            <option>Indiana</option>
+            <option>Iowa</option>
+            <option>Kansas</option>
+            <option>Kentucky</option>
+            <option>Louisiana</option>
+            <option>Maine</option>
+            <option>Maryland</option>
+            <option>Massachusetts</option>
+            <option>Michigan</option>
+            <option>Minnesota</option>
+            <option>Mississippi</option>
+            <option>Missouri</option>
+            <option>Montana</option>
+            <option>Nebraska</option>
+            <option>Nevada</option>
+            <option>New Hampshire</option>
+            <option>New Jersey</option>
+            <option>New Mexico</option>
+            <option>New York</option>
+            <option>North Carolina</option>
+            <option>North Dakota</option>
+            <option>Northern Mariana Islands</option>
+            <option>Ohio</option>
+            <option>Oklahoma</option>
+            <option>Oregon</option>
+            <option>Pennsylvania</option>
+            <option>Puerto Rico</option>
+            <option>Rhode Island</option>
+            <option>South Carolina</option>
+            <option>South Dakota</option>
+            <option>Tennessee</option>
+            <option>Texas</option>
+            <option>Utah</option>
+            <option>Vermont</option>
+            <option>Virgin Islands</option>
+            <option>Virginia</option>
+            <option>Washington</option>
+            <option>West Virginia</option>
+            <option>Wisconsin</option>
+            <option>Wyoming</option>
+      </select></td></tr>
+   
+    <tr class="sectbody"><td class="rightCol"><span class="label">Other State/Province</span></td>
+          <td colspan="5"><input type="TEXT" name="origStateOther" class="shortwidth" id="origStateOther" value="[%origStateOther%]"></td></tr>
+    <tr class="sectbody"><td class="rightCol"><span class="label">Postal Code</span></td>
+        <td colspan="5"><input type="TEXT" name="origZIP" id="origZip" value="[%origZIP%]" class="shortwidth"></td></tr>
+    <tr class="sectbody"><td class="rightCol"><span class="label">Country</span></td>
+        <td colspan="5"><input type="TEXT" name="origCountry" class="shortwidth" id="origCountry" value="[%origCountry%]"></td></tr>
+    </table>
+   
+    <table class="tables" cellpadding="5" cellspacing="0">
+      <tr class="sectheader">
+      <td colspan="5" align="left">
+        <span class="label">ASSOCIATED PARTIES</span>
+        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#AdditionalOriginators" target="guide" class="smalltext">(What's this?)</a>
+      </td>
+      <td class="rightCol"><span><a onClick="apBit=swap(event, 'apTable', apBit)" style="cursor:pointer">Hide</a></span></td>
+    </tr>
+    </table>
+
+    <table class="tables" cellpadding="5" cellspacing="0" id="apTable">    
+    <tr class="sectbody"><td class="rightCol"><span class="label">First Name</span></td>
+        <td colspan="5">
+        <input name="aoFirstName" id="AONameFirst" class="shortwidth"></td></tr>
+            
+    <tr class="sectbody"><td class="rightCol"><span class="label">Last Name</span></td>
+        <td colspan="5">
+        <input name="aoLastName" id="AONameLast" class="shortwidth"></td></tr>
+                   
+    <tr class="sectbody"><td class="rightCol"><span class="label">Role</span></td>
+        <td colspan="5"> 
+        <select id="AORole" name="aoRole" class="shortwidth">
+            <option>Co-owner</option>
+            <option>Custodian/Steward</option>
+            <option>Metadata Provider</option>
+      <option>User</option>
+        </select>
+        </td>
+    </tr>
+  
+   <tr id="addAssociatedParty" class="sectbody"> 
+            <td></td>
+            <td colspan="5"> <input type="button" value="Add Associated Party" id="addaobutton1"
+                    onClick="addAssociatedParty()"></td></tr>
+       
+    [% numAO = 0 %]
+    [% IF aoCount %]
+        [% numAO = aoCount %]
+        <tr class="sectbody" id="aoHRRow">
+            <td colSpan="6">
+                <hr width = "85%"/>
+            </td>
+        </tr>
+    [% END %]
+    [% cnt = 1 %]
+    [% WHILE cnt < numAO%]
+            
+        <tr class="sectbody">
+            [% SET aofn = "origNamefirst${cnt}" %]
+            [% SET aoln = "origNamelast${cnt}" %]
+            [% SET aorole = "origRole${cnt}" %]
+     
+            <td class="rightCol">
+                <a style="cursor:pointer">
+                    <img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveUpRow(event)"
+                    src="[% contextUrl %]/style/images/previous.gif"
+                    alt="Move Up" border="0"/>
+                </a>
+                <a style="cursor:pointer">
+                    <img onClick="cleanTextNodes('aoHRRow', 'addaorow');moveDownRow(event, 'addaorow')"
+                    src="[% contextUrl %]/style/images/next.gif"
+                    alt="Move Down" border="0"/>
+                </a>
+                <a style="cursor:pointer">
+                    <img src="[% contextUrl %]/style/images/delete.gif"
+                    onClick="delRow(event)" alt="Delete" border="0"/>
+                </a>
+            </td>
+            <td colspan="5" align ="left" style="cursor:pointer"
+                onClick="aoEditRow(event, 0, '[%$aofn%]', '[%$aoln%]' , '[%$aorole%]')">
+                [%$aofn%] [%$aoln%] (Role: [%$aorole%])
+                <input name="aoFirstName" type="hidden" value="[%$aofn%]"/>
+                <input name="aoLastName" type="hidden" value="[%$aoln%]"/>
+                <input name="aoRole" type="hidden" value="[%$aorole%]"/>
+            </td>
+        </tr>
+        [% cnt = cnt + 1 %]
+    [% END %]
+    <input type="hidden" name="aoCount" value="[%numAO%]" id="aoCount">
+    <tr class="sectbody" id="addaorow"><td colspan=6 /></tr>
+    </table>
+   
+    <table class="tables" cellpadding="5" cellspacing="0">          
+      <tr class="sectheader">
+        <td colspan="5" align="left">
+          <span class="label">DATA SET ABSTRACT</span>
+          <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetAbstract" target="guide" class="smalltext">(What's this?)</a>
+        </td>
+        <td class="rightCol"><span><a onClick="abstractBit=swap(event, 'abstractTable', abstractBit)" style="cursor:pointer">Hide</a></span></td>
+  </tr>  
+    </table>
+   
+    <table class="tables" cellpadding="5" cellspacing="0" id="abstractTable">  
+    <tr class="sectbody"><td class="rightCol" valign="top"><span class="label">*Data Set Abstract</span><br><span class="regtext">(max. 350 words)</span></td>
+        <td colspan="5"><textarea rows="6" cols="60" name="abstract">[%abstract%]</textarea></td></tr>
+    </table>
+  [% IF modules.keyword == 'true' %]
+    <table class="tables" cellpadding="5" cellspacing="0">
+      <tr class="sectheader">
+        <td colspan="5" align="left">
+          <span class="label">KEYWORD INFORMATION</span>
+          <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#KeywordInformation" target="guide" class="smalltext">(What's this?)</a>
+        </td>
+        <td class="rightCol"><span><a onClick="keywordBit=swap(event, 'keywordTable', keywordBit)" style="cursor:pointer">Hide</a></span></td>
+        </tr>
+    </table>
+   
+    <table class="tables" cellpadding="5" cellspacing="0" id="keywordTable">     
+     <tr class="sectbody"><td><td colspan="5" align="left"><span class="regtext">For samples, see <a href=
+"http://gcmd.nasa.gov/Resources/valids/gcmd_parameters.html" target="nasa"><span class=
+"boldlink">NASA Global Change Master Directory (GCMD)</a>.</span>
+     
+      <tr class="sectbody">
+        <td class="rightCol"><span class="label">Keyword</span></td>
+      <td colspan="5">
+            <input name="keyword" id="keyword" class="shortwidth"></td></tr>
+
+
+     <tr class="sectbody"><td class="rightCol"><span class="label">Keyword Type</span></td>
+     <td colspan="5">
+            <select name="keywordType" id="keywordType" class="shortwidth">
+      <option>None</option>
+            <option>Theme</option>
+            <option>Place</option>
+            <option>Stratum</option>
+            <option>Temporal</option>
+            <option>Taxonomic</option>
+            </select>
+        </td></tr>
+      
+        <tr id="keyThRow" class="sectbody"><td class="rightCol"><span class="label">Keyword Thesaurus</span></td>
+          <td colspan="5">
+            
+            <select name="keywordTh" id="keywordTh" class="shortwidth">
+          <option>None</option>
+             <option>GCMD</option>
+            </select>
+      
+      </td></tr>
+            
+    <tr id="addKeyword" class="sectbody">
+          <td></td>
+          <td colspan="5" align="left">
+                   <input type="button" value="Add Keyword" onClick="addKeyword()"></td></tr>
+        
+        
+ [% numKey = 0 %]
+ [% IF keyCount %]
+   [% numKey = keyCount %]
+        [% numAO = aoCount %]
+        <tr class="sectbody" id="keywordHRRow">
+            <td colSpan="6">
+                <hr width = "85%"/>
+            </td>
+        </tr>
+ [% END %]
+ <input type="hidden" name="keyCount" value="[%numKey%]" 
+            id="keyCount">
+   
+      [% cnt = 1 %]
+        [% WHILE cnt < numKey %]
+        
+           <tr class="sectbody">
+            <td class="rightCol">
+                <a style="cursor:pointer">
+                    <img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveUpRow(event)"
+                    src="[% contextUrl %]/style/images/previous.gif"
+                    alt="Move Up" border="0"/>
+                </a>
+                <a style="cursor:pointer">
+                    <img onClick="cleanTextNodes('keywordHRRow', 'addkeyrow');moveDownRow(event, 'addkeyrow')"
+                    src="[% contextUrl %]/style/images/next.gif"
+                    alt="Move Down" border="0"/>
+                </a>
+                <a style="cursor:pointer">
+                    <img src="[% contextUrl %]/style/images/delete.gif"
+                    onClick="delRow(event)" alt="Delete" border="0"/>
+                </a>
+            </td>
+            [% SET keyword = "keyword${cnt}" %]
+            [% SET keywordType = "kwType${cnt}" %]
+            [% SET keywordTh = "kwTh${cnt}" %]
+            <td colspan="5" align ="left" style="cursor:pointer"
+                onClick="keywordEditRow(event, 0, '[%$keyword%]', '[%$keywordType%]' , '[%$keywordTh%]')">
+                [%$keyword%] (Type: [%$keywordType%], Thesaurus: [%$keywordTh%])
+                <input name="keyword" type="hidden" value="[%$keyword%]"/>
+                <input name="keywordType" type="hidden" value="[%$keywordType%]"/>
+                <input name="keywordTh" type="hidden" value="[%$keywordTh%]"/>
+            </td>
+        </tr>
+        [% cnt = cnt + 1 %]
+       [% END %]
+        <tr class="sectbody" id="addkeyrow"><td colspan=6 /></tr>
+       </table>
+  [% END %]
+  
+  [% IF modules.temporal == 'true' %]
+   
+  <table class="tables" cellpadding="5" cellspacing="0">   
+    <tr class="sectheader">
+      <td colspan="5" align="left">
+        <span class="label">TEMPORAL COVERAGE OF DATA</span>
+        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TemporalCoverageOfData" target="guide" class="smalltext">(What's this?)</a>
+      </td>
+      <td class="rightCol"><span><a onClick="temporalBit=swap(event, 'temporalTable', temporalBit)" style="cursor:pointer">Hide</a></span></td>
+   </tr>
+   </table>
+   
+   <table class="tables" cellpadding="5" cellspacing="0" id="temporalTable">  
+   <tr class="sectbody">
+      <td/>
+      <td align="left"><span class="label">Start Date</span></td>
+      <td/>
+      <td align="left"><span class="label">Stop Date</span></td>
+      <td colspan="2"></td>
+      </tr>
+     
+      <tr class="sectbody"> 
+        <td class="rightCol"> 
+          [% IF required.temporal == 'true' %]
+            <span class="label">*Year (yyyy)</span>
+          [% ELSE %]
+    <span class="label">Year (yyyy)</span>
+    [% END %]</td>
+    <td align="left" style="width:15%"><input type="TEXT" name="beginningYear" value="[%beginningYear%]" size="8" maxlength="4"></td>
+          <td class="rightCol"><span class="label">Year (yyyy)</span></td>
+    <td align="left"><input type="TEXT" name="endingYear" value="[%endingYear%]" size="8" maxlength="4"></td>
+          <td colspan="3"></td>
+      </tr>
+          
+    
+  <tr class="sectbody">
+    <td class="rightCol">
+    <span class="label">Month</span>
+          </td>
+    <td align="left"><select name="beginningMonth">
+      [% IF form == 're_entry' && beginningMonth != ""%]
+        <option selected>[%beginningMonth%]</option>
+      [% END %]
+            <option>MM</option>            <option>01</option>            <option>02</option>            <option>03</option>
+            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
+            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
+            <option>12</option>
+          </select></td>
+      
+         <td class="rightCol"><span class="label">Month</span></td>
+   <td align="left"> <select name="endingMonth">
+      [% IF form == 're_entry' && endingMonth != ""%]
+        <option selected>[%endingMonth%]</option>
+      [% END %]
+            <option>MM</option>            <option>01</option>            <option>02</option>            <option>03</option>
+            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
+            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
+            <option>12</option>
+          </select></td>  <td colspan="2"></td></tr>
+       
+   <tr class="sectbody">
+    <td class="rightCol"> 
+            <span class="label">Day</span>
+    </td>
+    
+    <td align="left"><select name="beginningDay">
+      [% IF form == 're_entry' && beginningDay != ""%]
+        <option selected>[%beginningDay%]</option>
+      [% END %]
+            <option>DD</option>            <option>01</option>            <option>02</option>            <option>03</option>
+            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
+            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
+            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
+            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
+            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
+            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
+            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
+          </select></td>
+      
+          <td class="rightCol"><span class="label">Day</span></td>
+    <td align="left"><select name="endingDay">
+      [% IF form == 're_entry' && endingDay != ""%]
+        <option selected>[%endingDay%]</option>
+      [% END %]
+            <option>DD</option>            <option>01</option>            <option>02</option>            <option>03</option>
+            <option>04</option>            <option>05</option>            <option>06</option>            <option>07</option>
+            <option>08</option>            <option>09</option>            <option>10</option>            <option>11</option>
+            <option>12</option>            <option>13</option>            <option>14</option>            <option>15</option>
+            <option>16</option>            <option>17</option>            <option>18</option>            <option>19</option>
+            <option>20</option>            <option>21</option>            <option>22</option>            <option>23</option>
+            <option>24</option>            <option>25</option>            <option>26</option>            <option>27</option>
+            <option>28</option>            <option>29</option>            <option>30</option>            <option>31</option>
+          </select></td>
+          <td colspan="2"></td></tr>
+  <tr class="sectbody"> 
+      <td></td><td align="left" colspan="5"> 
+       <span class="label">Note: </span><span class="regtext">Leave "Stop Date" blank if your data set is open-ended.</span>
+     </td></tr>
+     </table>
+  [% END %]  
+  
+[% IF modules.spatial == 'true' %]
+
+  <table class="tables" cellpadding="5" cellspacing="0">  
+
+    <tr class="sectheader">
+      <td colspan="5" align="left">
+        <span class="label">SPATIAL COVERAGE OF DATA</span>
+        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#SpatialCoverageOfData" target="guide" class="smalltext">(What's this?)</a>
+      </td>
+      <td class="rightCol"><span><a onClick="spatialBit=swap(event, 'spatialTable', spatialBit)" style="cursor:pointer">Hide</a></span></td>
+    </tr>
+  </table>
+   
+   <table class="tables" cellpadding="5" cellspacing="0" id="spatialTable">  
+   
+    <tr class="sectbody">
+       [% IF required.spatial == 'true' %]
+          <td align="right" valign="top"><span class="label">*Geographic Description</span></td>
+    [% ELSE %]
+          <td align="right" valign="top"><span class="label">Geographic Description</span></td>
+    [% END %]    
+          <td align="left" colspan="5"><textarea rows="3" cols="60" name="geogdesc">[% geogdesc %]</textarea></td></tr>
+    <tr class="sectbody"><td><td colspan="4"><span class="regtext">General description of the geographic area in which the data were collected. 
+    It can be a simple place name (e.g., Santa Barbara) or a fuller description.</span></td><td>
+    </td></tr>
+    <tr class="sectbody"><td class="topbottom" align="center" colspan="6"><span class="label">COORDINATES</span></td></tr>
+        
+     
+  [% IF show.siteList == 'true' %]
+    <tr class="sectbody"><td align="left" valign="top" colspan="6">
+        <input class="label" type="CHECKBOX" name="useSiteCoord" [%useSiteCoord%]>
+        <span class="regtext">Use [% config.site %] coordinates. (This indicates that the data were
+        collected at the [% config.site %]. If you check this box, you don't need
+        to fill in the lat./long. fields below).</span>
+        </td>
+    </tr>
+  [% END %]
+    
+    <tr class="sectbody">
+      <td width="190"></td><td width="100" align="left"><span class="label">Degrees</span></td>
+      <td width="110" align="left"><span class="label">Minutes</span></td>
+      <td width="70" align="left"><span class="label">Seconds</span></td>
+      <td width="200"></td><td width="90"</td>
+   </tr>
+      
+   <tr class="sectbody">
+     <td class="rightCol">
+      [% IF required.spatial == 'true' %]
+        <span class="label">*Latitude</span>
+      [% ELSE %]
+        <span class="label">Latitude</span>
+      [% END %]</td> 
+     <td> 
+          <input type="TEXT" name="latDeg1" value="[%latDeg1%]" size="3" maxlength="3"></td>
+      <td> <input type="TEXT" name="latMin1" value="[%latMin1%]" size="2" maxlength="2"></td>
+      <td>  <input type="TEXT" name="latSec1" value="[%latSec1%]" size="2" maxlength="2"></td>
+      
+      <td Align="left" colspan="2"> 
+      [% IF form == 're_entry' && hemisphLat1 == "N"%]
+        <input type="radio"  name="hemisphLat1" value="N" CHECKED><span class="regtext">North&nbsp;&nbsp;</span>
+      [%ELSE%]
+        <input type="radio"  name="hemisphLat1" value="N"><span class="regtext">North&nbsp;&nbsp;</span>
+      [%END%]
+      [% IF form == 're_entry' && hemisphLat1 == "S"%]
+        <input type="radio"  name="hemisphLat1" value="S" CHECKED><span class="regtext">South&nbsp;&nbsp;</span>
+      [%ELSE%]
+        <input type="radio"  name="hemisphLat1" value="S"><span class="regtext">South&nbsp;&nbsp;</span>
+      [%END%]
+      </td>
+    </tr>
+
+    <tr class="sectbody">
+      <td class="rightCol"> 
+      [% IF required.spatial == 'true' %]
+        <span class="label">*Longitude</span>
+      [% ELSE %]
+        <span class="label">Longitude</span>
+      [% END %]</td>
+     
+      <td> <input type="TEXT" name="longDeg1" value="[%longDeg1%]" size="3" maxlength="3"></td>
+      <td> <input type="TEXT" name="longMin1" value="[%longMin1%]" size="2" maxlength="2"></td>
+      <td> <input type="TEXT" name="longSec1" value="[%longSec1%]" size="2" maxlength="2"></td>
+      
+      
+      <td align="left" colspan="2"> 
+    [% IF form == 're_entry' && hemisphLong1 == "W"%]        
+      <input type="radio"  name="hemisphLong1" value="W" CHECKED><span class="regtext">West&nbsp;&nbsp;</span>
+    [%ELSE%]
+      <input type="radio"  name="hemisphLong1" value="W"><span class="regtext">West&nbsp;&nbsp;</span>
+    [%END%]
+    [% IF form == 're_entry' && hemisphLong1 == "E"%]
+      <input type="radio"  name="hemisphLong1" value="E" CHECKED><span class="regtext">East&nbsp;&nbsp;</span>
+    [%ELSE%]
+      <input type="radio"  name="hemisphLong1" value="E"><span class="regtext">East&nbsp;&nbsp;</span>
+    [%END%]
+      </td>
+    </tr>
+      
+      
+    <tr class="sectbody"><td><td colspan="4" align="left"><span class="regtext">If only this first lat/long pair is entered, this indicates a point location. If both lat/long pairs are entered, then this first pair represents the northwest corner of a bounding box.</span>
+      </td><td></td></tr>
+      
+    <tr class="sectbody"> 
+      <td class="rightCol"><span class="label">Latitude</span></td>
+  <td ><input type="TEXT" name="latDeg2" value="[%latDeg2%]" size="3" maxlength="3"></td>
+      <td><input type="TEXT" name="latMin2" value="[%latMin2%]" size="2" maxlength="2"></td>
+      <td><input type="TEXT" name="latSec2" value="[%latSec2%]" size="2" maxlength="2"></td>
+        
+      <td align="left" colspan="2"> 
+      [% IF form == 're_entry' && hemisphLat2 == "N"%]
+        <input type="radio"  name="hemisphLat2" value="N" CHECKED><span class="regtext">North&nbsp;&nbsp;</span>
+      [%ELSE%]
+        <input type="radio"  name="hemisphLat2" value="N"><span class="regtext">North&nbsp;&nbsp;</span>
+      [%END%]
+      [% IF form == 're_entry' && hemisphLat2 == "S"%]
+        <input type="radio"  name="hemisphLat2" value="S" CHECKED><span class="regtext">South&nbsp;&nbsp;</span>
+      [%ELSE%]
+        <input type="radio"  name="hemisphLat2" value="S"><span class="regtext">South&nbsp;&nbsp;</span>
+      [%END%]
+      </td>
+    </tr>
+    
+    <tr class="sectbody"><td class="rightCol"><span class="label">Longitude</span></td>
+       <td> <input type="TEXT" name="longDeg2" value="[%longDeg2%]" size="3" maxlength="3"></td>
+       <td> <input type="TEXT" name="longMin2" value="[%longMin2%]" size="2" maxlength="2"></td>
+       <td> <input type="TEXT" name="longSec2" value="[%longSec2%]" size="2" maxlength="2"></td>
+       <td align="left" colspan="2">
+       
+      [% IF form == 're_entry' && hemisphLong2 == "W"%]
+        <input type="radio"  name="hemisphLong2" value="W" CHECKED><span class="regtext">West&nbsp;&nbsp;</span>
+      [%ELSE%]
+        <input type="radio"  name="hemisphLong2" value="W"><span class="regtext">West&nbsp;&nbsp;</span>
+      [%END%]
+      [% IF form == 're_entry' && hemisphLong2 == "E"%]
+        <input type="radio"  name="hemisphLong2" value="E" CHECKED><span class="regtext">East&nbsp;&nbsp;</span>
+      [%ELSE%]
+        <input type="radio"  name="hemisphLong2" value="E"><span class="regtext">East&nbsp;&nbsp;</span>
+      [%END%]
+      </td>
+    </tr>
+    <tr class="sectbody"><td></td>
+       <td align="left" colspan="4"><span class="regtext">
+        If entered, this lat/long pair represents the southeast corner of a bounding box.</span>
+      </td><td></td>
+    </tr>
+  </table>    
+   [% END %]
+
+   [% IF modules.taxonomic == 'true' %]
+   
+  <table class="tables" cellpadding="5" cellspacing="0">  
+
+    <tr class="sectheader">
+      <td colspan="5" align="left">
+        <span class="label">TAXONOMIC COVERAGE OF DATA</span>
+        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#TaxonomicCoverage" target="guide" class="smalltext">(What's this?)</a>
+      </td>
+      <td class="rightCol"><span><a onClick="taxonomicBit=swap(event, 'taxonomicTable', taxonomicBit)" style="cursor:pointer">Hide</a></span></td>
+    </tr>
+  </table>
+   
+    <table class="tables" cellpadding="5" cellspacing="0" id="taxonomicTable">  
+        <tr class="sectbody"><td></td>
+        <td colspan="5" align="left"><span class="regtext">See the <a href=
+        "http://darwin.zoology.gla.ac.uk/~rpage/MyToL/www/index.php" target="_blank">Glasgow Taxonomic Name Server</a> or the <a href=
+        "http://www.itis.gov/" target="_blank">Integrated Taxonomic Information System</a> for correct spelling of taxonomic names.</td></tr>
+  
+        <tr class="sectbody"> 
+            <td class="rightCol"><span class="label">Taxonomic Rank</span></td>
+            <td align="left" colspan="5">
+                <input name="taxonRank" id="taxonRank" class="shortwidth">&nbsp;&nbsp;<span class="label"><span class="regtext">(e.g., Species)</span>
+            </td>
+        </tr>
+
+        <tr class="sectbody"> 
+            <td class="rightCol"><span class="label">Taxonomic Name</span></td>
+            <td align="left" colspan="5">
+                <input name="taxonName" id="taxonName" class="shortwidth">&nbsp;&nbsp;<span class="label"><span class="regtext">(e.g., <i>Ursus arctos</i>)</span>
+            </td>
+        </tr>
+
+        <tr id="addTaxon" class="sectbody"> 
+            <td></td>
+            <td colspan="5" align="left"> <input type="button" value="Add Taxon"
+                    onClick="addTaxon()">
+            </td>
+        </tr>
+
+        [% numTaxa = 0 %]
+        [% IF taxaCount %]
+            [% numTaxa = taxaCount %]
+            <tr class="sectbody" id="taxonHRRow">
+                <td colSpan="6">
+                    <hr width = "85%"/>
+                </td>
+            </tr>
+        [% END %]
+        <input type="hidden" name="taxaCount" value="[%numTaxa%]" id="taxaCount">
+    
+        [% cnt = 1 %]
+        [% WHILE cnt <= numTaxa%]        
+            <tr class="sectbody">
+                <td class="rightCol">
+                    <a style="cursor:pointer">
+                        <img onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveUpRow(event)"
+                        src="[% contextUrl %]/style/images/previous.gif"
+                        alt="Move Up" border="0"/>
+                    </a>
+                    <a style="cursor:pointer">
+                        <img onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveDownRow(event, 'addtaxarow')"
+                        src="[% contextUrl %]/style/images/next.gif"
+                        alt="Move Down" border="0"/>
+                    </a>
+                    <a style="cursor:pointer">
+                        <img src="[% contextUrl %]/style/images/delete.gif"
+                        onClick="delRow(event)" alt="Delete" border="0"/>
+                    </a>
+                </td>
+                [% SET rank = "taxonRankName${cnt}" %]
+                [% SET name = "taxonRankValue${cnt}" %]
+                <td colspan="5" align ="left" style="cursor:pointer"
+                    onClick="taxonEditRow(event, 0, '[%$rank%]', '[%$name%]')">
+                    Rank: [%$rank%], Name: [%$name%]
+                    <input name="taxonName" type="hidden" value="[%$name%]"/>
+                    <input name="taxonRank" type="hidden" value="[%$rank%]"/>
+            </tr>
+            [% cnt = cnt + 1 %]
+        [% END %]
+
+     <tr class="sectbody" id="addtaxarow"> 
+        <td class="bordertop" valign="top" align="right" ><span class="label">Taxonomic Reference</span></td>
+        <td class="bordertop" align="left" colspan="5"><textarea rows="3" cols="30" name="taxaAuth">[% taxaAuth %]</textarea></td>
+        </tr>
+     <tr class="sectbody">
+     <td></td>
+     <td colspan="5"><span class="regtext">List the source(s) used for identifying and naming taxa (e.g., name of a <br>field guide, key, or
+     nomenclature revision).</span></td>
+     </tr>   
+   </table>
+    [% END %]  
+
+  [% IF modules.method == 'true' %]
+  <table class="tables" cellpadding="5" cellspacing="0">  
+    <tr class="sectheader">
+      <td colspan="5" align="left">
+        <span class="label">DATA COLLECTION METHODS</span>
+        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#Methods" target="guide" class="smalltext">(What's this?)</a>
+      </td>
+      <td class="rightCol"><span><a onClick="methodBit=swap(event, 'methodTable', methodBit)" style="cursor:pointer">Hide</a></span></td>
+    </tr>
+  </table>
+ 
+   <table class="tables" cellpadding="5" cellspacing="0" id="methodTable">  
+
+    <tr class="sectbody"> 
+      <td class="rightCol"><span class="label">Method Title</span></td>
+      <td colspan="5" align="left"><input type="text" name="methodTitle" value="[%methodTitle%]" class="longwidth"></td></tr>
+
+       <tr class="sectbody"><td valign="top" class="rightCol"><span class="label">Method Description</span>      
+        <td colspan="5" align="left">
+        [% IF !methodPara %]
+          <textarea rows="6" cols="60" name="methodPara"></textarea>
+        [% END %]
+        [% FOREACH para = methodPara %]
+           <textarea rows="6" cols="60" name="methodPara">[% para %]</textarea>
+        [% END %]
+        </td></tr>
+        
+    <tr class="sectbody" id="addparabutton1">
+    <td ></td>
+    <td colspan="5" align="left">
+          <input type="button" value="Add Paragraph to Method Description" 
+                 onClick="addParagraph()"></td></tr>
+   
+     
+    <tr class="sectbody">
+      <td valign="top" align="right" class="bordertop">
+       <span class="label">Extent of Study Description</span>
+       </td>
+        <td colspan="5" align="left" class="bordertop"><textarea rows="6" cols="60" name="studyExtentDescription">[% studyExtentDescription %]</textarea></td>
+    </tr>
+  
+   <tr class="sectbody">
+    <td>
+    </td>
+    <td colspan="5"><span class="regtext">
+        Describe the temporal, spatial and taxonomic extent of the study,<br>
+        supplementing the information on coverage provided above.  <br>
+        For example, if the temporal coverage of the data is 1990-2000, you<br>
+        might provide details about any years that were missed or the months<br>
+        in which sampling occurred.</span>
+    </td>
+    </tr>
+          
+    <tr class="sectbody"><td class="bordertop" valign="top" align="right"><span class="label">Sampling Description</span></td>
+        <td colspan="5" align="left" class="bordertop" ><textarea rows="6" cols="60" name="samplingDescription">[% samplingDescription %]</textarea></td></tr>
+  
+   <tr class="sectbody"><td><td colspan="5"><span class="regtext">
+        Describe the sampling design of the study.  For example, you might <br> 
+        describe the way in which treatments were assigned to sampling units.</span></td></tr>
+      
+    </table>     
+   [% END %]
+
+  <table class="tables" cellpadding="5" cellspacing="0">    
+    <tr class="sectheader">
+      <td colspan="5" align="left">
+        <span class="label">DATA SET CONTACT</span>
+        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetContactAddress" target="guide" class="smalltext">(What's this?)</a>
+      </td>
+      <td class="rightCol"><span><a onClick="dscBit=swap(event, 'dscTable', dscBit)" style="cursor:pointer">Hide</a></span></td>
+    </tr>
+  </table>
+
+   <table class="tables" cellpadding="5" cellspacing="0" id="dscTable">  
+  <tr class="sectbody"><td valign="top" align="left" colspan="6">
+        <input type="CHECKBOX" name="useOrigAddress" onClick="copyContact()" id="copyCheckBox" [%useOrigAddress%]>
+        <span class="regtext">Use the same name and address as the <span class="label">PRINCIPAL DATA SET OWNER</span> above.</span></td></tr> 
+   <tr class="sectbody">
+      <td class="rightCol"><span class="label">*First Name</span></td>
+      <td colspan="5"><input type="TEXT" name="origNamefirstContact" id="contactNameFirst" value="[%origNamefirstContact%]" class="shortwidth"></td></tr>
+    <tr class="sectbody">
+      <td class="rightCol"><span class="label">*Last Name</span>
+      <td colspan="5"><input type="TEXT" name="origNamelastContact" id="contactNameLast" value="[%origNamelastContact%]" class="shortwidth"></td></tr>
+    <tr class="sectbody">
+      <td class="rightCol"><span class="label">Organization Name</span>
+      <td colspan="5"><input type="TEXT" name="origNameOrgContact" id="contactNameOrg" value="[%origNameOrgContact%]" class="longwidth"></td></tr>
+    <tr class="sectbody">      
+      [% IF required.contactEmailAddress == 'true' %]
+        <td class="rightCol"><span class="label">*E-Mail</span>
+      [% ELSE %]
+        <td class="rightCol"><span class="label">E-Mail</span>
+      [% END %]
+      <td colspan="5"><input type="TEXT" name="origEmailContact" id="contactEmail" value="[%origEmailContact%]" class="shortwidth"></td></tr>
+    <tr class="sectbody">
+      <td class="rightCol"><span class="label">Phone</span>
+      <td colspan="5"><input type="TEXT" name="origPhoneContact" id="contactPhone" value="[%origPhoneContact%]" class="shortwidth"></td></tr>
+    <tr class="sectbody"> 
+      <td class="rightCol"><span class="label">FAX</span>
+      <td colspan="5"><input type="TEXT" name="origFAXContact" id="contactFAX" value="[%origFAXContact%]" class="shortwidth"></td></tr>
+    <tr class="sectbody"><td valign="top" align="right"><span class="label">Street<br>Information</td>
+      <td colspan="5"><textarea rows="3" cols="30" name="origDeliveryContact" id="contactDelivery">[%origDeliveryContact%]</textarea><br><span class="smalltext">(number, street, unit, etc.; comma-separated)</span></td></tr>
+    <tr class="sectbody">    
+      <td class="rightCol"><span class="label">City</span>
+      <td colspan="5"><input type="TEXT" name="origCityContact" id="contactCity" value="[%origCityContact%]" class="shortwidth"></td></tr>
+    <tr class="sectbody">
+      <td class="rightCol"><span class="label">U.S. State or Territory</span>
+      <td colspan="5"><select id="contactState" name="origStateContact" class="shortwidth">
+      [% IF form == 're_entry' %]  
+              <option>[%origStateContact%]</option>
+      [% ELSE %]
+                <option>Select state or territory here.</option>
+            [% END %]
+          <option>Alabama</option>
+            <option>Alaska</option>
+            <option>American Samoa</option>
+            <option>Arizona</option>
+            <option>Arkansas</option>
+            <option>California</option>
+            <option>Colorado</option>
+            <option>Connecticut</option>
+            <option>Delaware</option>
+            <option>District of Columbia</option>
+            <option>Florida</option>
+            <option>Georgia</option>
+            <option>Guam</option>
+            <option>Hawaii</option>
+            <option>Idaho</option>
+            <option>Illinois</option>
+            <option>Indiana</option>
+            <option>Iowa</option>
+            <option>Kansas</option>
+            <option>Kentucky</option>
+            <option>Louisiana</option>
+            <option>Maine</option>
+            <option>Maryland</option>
+            <option>Massachusetts</option>
+            <option>Michigan</option>
+            <option>Minnesota</option>
+            <option>Mississippi</option>
+            <option>Missouri</option>
+            <option>Montana</option>
+            <option>Nebraska</option>
+            <option>Nevada</option>
+            <option>New Hampshire</option>
+            <option>New Jersey</option>
+            <option>New Mexico</option>
+            <option>New York</option>
+            <option>North Carolina</option>
+            <option>North Dakota</option>
+            <option>Northern Mariana Islands</option>
+            <option>Ohio</option>
+            <option>Oklahoma</option>
+            <option>Oregon</option>
+            <option>Pennsylvania</option>
+            <option>Puerto Rico</option>
+            <option>Rhode Island</option>
+            <option>South Carolina</option>
+            <option>South Dakota</option>
+            <option>Tennessee</option>
+            <option>Texas</option>
+            <option>Utah</option>
+            <option>Vermont</option>
+            <option>Virgin Islands</option>
+            <option>Virginia</option>
+            <option>Washington</option>
+            <option>West Virginia</option>
+            <option>Wisconsin</option>
+            <option>Wyoming</option>
+          </select></td></tr>
+     <tr class="sectbody">
+        <td class="rightCol"><span class="label">Other State/Province</span>
+  <td colspan="5"><input type="TEXT" name="origStateOtherContact" id="contactStateOther" value="[%origStateOtherContact%]" class="shortwidth"></td></tr>
+     <tr class="sectbody">     
+        <td class="rightCol"><span class="label">Postal Code</span>
+  <td colspan="5"><input type="TEXT" name="origZIPContact" class="shortwidth" id="contactZip" value="[%origZIPContact%]"></td></tr>
+     <tr class="sectbody">
+        <td class="rightCol"><span class="label">Country</span>
+        <td colspan="5"><input type="TEXT" name="origCountryContact" id="contactCountry" value="[%origCountryContact%]" class="shortwidth"></td></tr>
+     </table>
+   
+  <table class="tables" cellpadding="5" cellspacing="0">  
+    <tr class="sectheader">
+      <td colspan="5" align="left">
+        <span class="label">DISTRIBUTION INFORMATION</span>
+        <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DistributionIinformation" target="guide" class="smalltext">(What's this?)</a>
+      </td>
+      <td class="rightCol"><span><a onClick="distBit=swap(event, 'distTable', distBit)" style="cursor:pointer">Hide</a></span></td>
+    </tr>
+  </table>
+
+   <table class="tables" cellpadding="5" cellspacing="0" id="distTable">  
+  <tr class="sectbody"><td class="rightCol"><span class="label">Data Set Identifier</span></td>
+  <td colspan="5"><input type="TEXT" name="identifier" value="[%identifier%]" class="longwidth"></td></tr>
+  <tr class="sectbody"><td valign="top" align="right"><span class="label">Note:</span></td>
+     <td colspan="4" align="left"><span class="regtext">
+     If available, please enter a name or number that uniquely identifies and<br>
+     describes concisely the data set. Alternatively, provide other pertinent<br>
+     information that can identify and locate the data set within your site's<br>
+     data management system.</span></td><td></td></tr>
+  
+    <tr class="sectbody">
+        <td class="rightCol"><span class="label">*Data Medium</span></td>
+  
+        <td colspan="5" align="left">
+        [% IF form == 're_entry' && (dataMedium == "digital " || dataMedium == "digital")  %]  
+            <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="digital" CHECKED>
+            <span class="regtext">Digital&nbsp;&nbsp;</span></input>
+        [%ELSE%]
+            <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="digital">
+            <span class="regtext">Digital&nbsp;&nbsp;</span></input>
+        [% END %]
+        [% IF form == 're_entry' && (dataMedium == "hardcopy " || dataMedium == "hardcopy") %]  
+           <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="hardcopy" CHECKED>
+           <span class="regtext">Hardcopy&nbsp;&nbsp;</span></input>
+        [%ELSE%]
+           <input type="radio"  name="dataMedium" onClick="handleOther(0, 'otherDM')" value="hardcopy">
+           <span class="regtext">Hardcopy&nbsp;&nbsp;</span></input>
+        [% END %]
+        [% IF form == 're_entry' && dataMedium == "other" %]
+           <input type="radio" name="dataMedium" value="other" onClick="handleOther(1, 'otherDM')" CHECKED>
+           <span class="regtext">Other&nbsp;</span></input>
+        [%ELSE%]
+           <input type="radio"  name="dataMedium" onClick="handleOther(1, 'otherDM')" value="other">
+           <span class="regtext">Other&nbsp;</span></input>
+        [% END %]
+
+  <input type="TEXT" name="dataMediumOther" value="[%dataMediumOther%]" id="otherDM" class="shortwidth"></input>
+        </td>
+    </tr>  
+  
+  <tr class="sectbody"><td class="rightCol"><span class="label">*Usage Rights</span></td>
+      <td colspan="5" align="left">
+      
+          [% IF form == 're_entry' && useConstraints == "no restrictions" %]      
+      <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions" CHECKED>
+      <span class="regtext">No restrictions&nbsp;&nbsp;</span>
+          [%ELSE%]
+            <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="no restrictions">
+            <span class="regtext">No restrictions&nbsp;&nbsp;</span>
+          [%END%]
+          [% IF form == 're_entry' && useConstraints == "Obtain permission from data set owner(s)" %]      
+        <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)" CHECKED>
+        <span class="regtext">Obtain permission from data set owner(s)&nbsp;&nbsp;</span>
+          [%ELSE%]
+            <input type="radio"  name="useConstraints" onClick="handleOther(0, 'otherUC')" value="Obtain permission from data set owner(s)">
+            <span class="regtext">Obtain permission from data set owner(s)&nbsp;&nbsp;</span>
+          [%END%]
+          </td></tr>
+    
+
+   
+   <tr class="sectbody"><td></td><td colspan="5" align="left">
+ 
+    [% IF form == 're_entry' && useConstraints == "other" %]      
+      <input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other" CHECKED>
+      <span class="regtext">Other&nbsp;</span>
+    [%ELSE%]
+      <input type="radio"  name="useConstraints" onClick="handleOther(1, 'otherUC')" value="other">
+      <span class="regtext">Other&nbsp;</span>
+    [%END%]
+   <input type="TEXT" name="useConstraintsOther" id="otherUC" value="[%useConstraintsOther%]" size="49"></td</tr>
+   
+   
+   <tr class="sectbody"><td class="rightCol"><span class="label">URL</span></td>
+   <td colspan="5" align="left"><input type="TEXT" name="url" value="[%url%]" class="longwidth"></td></tr>
+   
+   <tr class="sectbody"><td valign="top" align="right"><span class="label">Additional Information</span>
+   <td colspan="5" align="left"><textarea rows="6" cols="60" name="addComments">[%addComments%]</textarea></td></tr>
+   
+   </table>
+   
+  [% IF modules.upload == 'true' %]
+
+  <!-- Associated Data -->
+  <table class="tables" cellpadding="5" cellspacing="0">
+  <tr class="sectheader">
+    <td colspan="5" align="left">
+      <span class="label">UPLOAD DATA</span>
+      <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#XXX" target="guide" class="smalltext">(What's this?)</a>
+    </td>
+    <td class="rightCol"><span><a onClick="uploadBit=swap(event, 'uploadTable', uploadBit)" style="cursor:pointer">Hide</a></span></td>
+  </tr>
+   </table>
+  <table class="tables" cellpadding="5" cellspacing="0" id="uploadTable">
+  <tr class="sectbody">
+    <td class="rightCol"><span class="label">Upload Data File:</span></td>
+    <td colspan="5">
+        <input type="file" id="file_element" name="file_1" class="longwidth">
+
+        [% IF form == 're_entry' && upCount %]
+           [% cnt = 0 %]
+           [% WHILE cnt < upCount %]
+                [% SET fileSum = "upload_${cnt}" %]
+                [% SET fileName = "uploadname_${cnt}" %]
+                [% SET fileType = "uploadtype_${cnt}" %] 
+                [% SET filePerm = "uploadperm_${cnt}" %]
+                [% IF fileSum %]
+                    <input type="hidden" name="[%fileSum%]" value="[% $fileSum %]"> 
+                    <input type="hidden" name="[%fileName%]" value="[% $fileName %]"> 
+                    <input type="hidden" name="[%fileType%]" value="[% $fileType %]"> 
+                [% END %]
+                [% cnt = cnt + 1 %]
+            [% END %]
+        <input type="hidden" id="upCount" name="upCount" value="[%upCount%]">
+        [% END %]
+
+        <input type="hidden" id="fileCount" name="fileCount" value="[%fileCount%]"></td>
+  </tr>
+  <tr class="sectbody">
+    <td class="rightCol" valign="top"><span class="label">Attached Files:</span></td>
+    <td colspan="5" class="regtext">
+    [% IF !upCount %]
+        <div id="file_comment">
+            (<i>None currently attached</i>)
+        </div>
+    [% END %]
+    <div id="files_list">[% IF form == 're_entry' && upCount %]
+    [% cnt = 0 %]
+
+    [% WHILE cnt < upCount %]
+        [% SET fileName = "uploadname_${cnt}" %]
+        [% SET filePerm = "uploadperm_${cnt}" %]
+        [% IF $filePerm == 'public' %]
+          [% SET perm_a = "checked" %]
+          [% SET perm_b = "" %]
+        [% ELSE %]
+          [% SET perm_a = "" %]
+          [% SET perm_b = "checked" %]
+        [% END %]
+        [% IF fileName %]<div>
+          [% $fileName %]
+          <input type="radio" name="[% filePerm %]" value="public" [% perm_a %]> Public
+          <input type="radio" name="[% filePerm %]" value="private" [% perm_b %]> Private
+
+          <input type="button" value="Delete" onclick="deleteFile(event, [%fileName%]);"/></div>[% END %]
+
+        [% cnt = cnt + 1 %]
+    [% END %]
+    [% END %]</div></td>
+  </tr>
+  </table>
+  
+  <script language="JavaScript" type="text/JavaScript">
+    var multi_selector = new MultiSelector( document.getElementById( 'files_list' ), 10);
+    multi_selector.addElement( document.getElementById( 'file_element' ) );
+  </script>
+  [% END %]
+   <table class="tables" cellpadding="5" cellspacing="0">    
+   <tr class="sectheader"><td colspan="6" align="left"></td></tr>
+   <tr class="sectheader"><td colspan="6" align="center" class="borderbottom"><input type="SUBMIT" onClick="sortInputTags()" value="Submit Data Set Description" name="SUBMIT">
+              
+    </table>
+    <p></p>
+   
+</form>
+
+[% INCLUDE $templates.footer %]

Property changes on: lib/style/common/templates/metacatui/entryForm.tmpl
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: lib/style/common/templates/metacatui/genericHeader.tmpl
===================================================================
--- lib/style/common/templates/metacatui/genericHeader.tmpl	(nonexistent)
+++ lib/style/common/templates/metacatui/genericHeader.tmpl	(revision 7867)
@@ -0,0 +1,39 @@
+  <!--
+    '$RCSfile$'
+    Copyright: 2001 Regents of the University of California and the
+               National Center for Ecological Analysis and Synthesis
+     '$Author: walbridge $'
+       '$Date: 2008-09-26 10:47:01 -0700 (Fri, 26 Sep 2008) $'
+   '$Revision: 4396 $'
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+     
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+  -->
+<!--____________________________max_width_____________________________________-->
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+  <title>[% config.abbrev %] Data [% config.type %]</title>
+  <link rel="stylesheet" type="text/css" 
+        href="[% styleSkinsPath %]/[% cfg %]/[% cfg %].css">
+  <script language="JavaScript" type="text/JavaScript"
+          src="[% styleSkinsPath %]/[% cfg %]/[% cfg %].js"></script>
+  <script language="JavaScript" type="text/JavaScript"
+          src="[% styleCommonPath %]/branding.js"></script>
+</head>
+<body>
+      <script language="JavaScript" type="text/javascript">
+          insertTemplateOpening("[% contextUrl %]");
+      </script>

Property changes on: lib/style/common/templates/metacatui/genericHeader.tmpl
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: lib/style/common/templates/metacatui/confirmData.tmpl
===================================================================
--- lib/style/common/templates/metacatui/confirmData.tmpl	(nonexistent)
+++ lib/style/common/templates/metacatui/confirmData.tmpl	(revision 7867)
@@ -0,0 +1,641 @@
+<!--
+  *  '$RCSfile$'
+  *    Copyright: 2000 Regents of the University of California and the
+  *               National Center for Ecological Analysis and Synthesis
+  *  For Details: http://www.nceas.ucsb.edu/
+  *
+  *   '$Author: daigle $'
+  *     '$Date: 2010-04-14 11:31:03 -0700 (Wed, 14 Apr 2010) $'
+  * 
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 2 of the License, or
+  * (at your option) any later version.
+  *
+  * This program is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  * GNU General Public License for more details.
+  *
+  * You should have received a copy of the GNU General Public License
+  * along with this program; if not, write to the Free Software
+  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+-->
+
+[% INCLUDE $templates.header %]
+
+<table class="intro" cellpadding="3" cellspacing="0" style="margin-bottom: 20px">
+<tr><td align="left"><p class="sectionnames">REVIEW YOUR ENTRY</p></td></tr>
+<tr><td align="left"><span class="regtext">
+Please review the information that you've entered.  To make changes, click on the edit button <a href="#buttons">at the bottom of the page</a>.<span></td></tr>
+</table>
+
+<table class="intro" cellpadding="3" cellspacing="0">
+<tr><td align="left">
+<a name="BasicInformation"></a>
+<p><span class="sectionnames">BASIC INFORMATION</span>
+</p>
+<p><span class="label">First Name:</span>        [%providerGivenName%]
+</p>
+<p><span class="label">Last Name:</span>         [%providerSurName%]
+</p>
+<p><span class="label">Data Set Title:</span>     [%title%]
+</p>
+
+
+
+[% IF cfg == 'nceas' %]
+    [% FOREACH group = wg %]
+      <p><span class="label">NCEAS Project:</span>  [%group%] </p>
+    [% END %]
+    
+[% ELSE %]
+    [% IF cfg == 'esa' %]
+      <p><span class="label">Organization Name:</span>  [%site%]</p>
+    [% ELSE %]
+      <p><span class="label">[% config.site | ucfirst %] Name:</span>  [%site%]</p>
+    [% END %]
+[% END %]
+
+<hr class="rule">
+<a name="DataSetOriginator"></a>
+<p><span class="sectionnames">PRINCIPAL DATA SET OWNER</span>
+
+<p><span class="label">First Name:</span>        [%origNamefirst0%]
+</p>
+
+<p><span class="label">Last Name:</span>         [%origNamelast0%]
+</p>
+
+<p><span class="label">Organization Name:</span> [%origNameOrg%]
+</p>
+
+<p><span class="label">E-Mail:</span>            [%origEmail%]
+</p>
+
+<p><span class="label">Phone:</span>             [%origPhone%]
+</p>
+
+<p><span class="label">FAX:</span>               [%origFAX%]
+</p>
+
+<p><span class="label">Street Information:</span> 
+                                                    [%origDelivery%]
+</p>
+
+<p><span class="label">City:</span>              [%origCity%]
+</p>
+
+<p><span class="label">State:</span>             [%origState%]
+</p>
+
+<p><span class="label">Other State/Province:</span>       [%origStateOther%]
+</p>
+
+<p><span class="label">Postal Code:</span>               [%origZIP%]
+</p>
+
+<p><span class="label">Country:</span>               [%origCountry%]
+</p>
+
+<hr class="rule">
+<a name="AdditionalOriginators"></a>
+<p><span class="sectionnames">ASSOCIATED PARTIES</span> 
+
+    [% numAO = 0 %]
+    [% IF aoCount > 0 %]
+        [% numAO = aoCount %]
+    [% END %]
+
+<table cellspacing="0" border="0" cellpadding="9" width="760">
+    <tr> 
+      <td width="21%" valign="TOP"> 
+        <span class="label">First Name</span>
+      </td>
+      <td width="21%" valign="TOP"> 
+        <span class="label">Last Name</span>
+      </td>
+      <td width="58%" valign="TOP"> 
+        <span class="label">Role</span>
+      </td>
+    </tr>
+    [% cnt = 1 %]
+    [% WHILE cnt <= numAO %]
+     [% SET origNamefirst = "origNamefirst${cnt}" %]
+     [% SET origNamelast = "origNamelast${cnt}" %]
+     [% SET origRole = "origRole${cnt}" %]
+     <tr> 
+      <td width="21%" valign="TOP"> 
+        [% $origNamefirst %]
+      </td>
+      <td width="21%" valign="TOP"> 
+        [% $origNamelast %]
+      </td>
+      <td width="58%" valign="TOP"> 
+	[% $origRole %]
+      </td>
+     </tr>
+     [% cnt = cnt + 1 %]
+     [% END %]    
+</table>
+
+<hr class="rule">
+<a name="DataSetAbstract"></a>
+<p><span class="sectionnames">DATA SET ABSTRACT</span><br>  [%abstract%]
+</p>
+ [% IF modules.keyword == 'true' %]
+<hr class="rule">
+<a name="KeywordInformation"></a>
+<p><span class="sectionnames">KEYWORD INFORMATION</span> 
+
+    [% numKey = 0 %]
+    [% IF keyCount > 1 %]
+        [% numKey = keyCount %]
+    [% END %]
+
+<table cellspacing="0" border="0" cellpadding="9" width="760">
+    <tr> 
+      <td width="21%" align="left" valign="TOP"> 
+        <span class="label">Keyword</span>
+      </td>
+      <td width="21%" align="left" valign="TOP"> 
+        <span class="label">Keyword Type</span>
+      </td>
+      <td width="58%" align="left" valign="TOP"> 
+        <span class="label">Keyword Thesaurus</span>
+      </td>
+    </tr>
+    [% cnt = 1 %]
+    [% WHILE cnt <= numKey %]
+     [% SET key = "keyword${cnt}" %]
+     [% SET keyType = "kwType${cnt}" %]
+     [% SET keyTh = "kwTh${cnt}" %]
+     <tr> 
+      <td width="21%" align="left" valign="TOP"> 
+        [% $key %]
+      </td>
+      <td width="21%" align="left" valign="TOP"> 
+        [% $keyType %]
+      </td>
+      <td width="58%" align="left" valign="TOP"> 
+	[% $keyTh %]
+      </td>
+     </tr>
+     [% cnt = cnt + 1 %]
+     [% END %]
+</table>
+[% END %]
+  
+[% IF modules.temporal == 'true' %]
+<hr class="rule">
+<a name="TemporalCoverageOfData"></a>
+<p><span class="sectionnames">TEMPORAL COVERAGE OF DATA</span> 
+
+<p><span class="label">Start Date:</span> [%beginningYear%]&nbsp;[%beginningMonth%]&nbsp;[%beginningDay%]
+</p>
+
+<p><span class="label">Stop Date:</span>    [%endingYear%]&nbsp;[%endingMonth%]&nbsp;[%endingDay%]
+</p>
+[% END %]
+
+[% IF modules.spatial == 'true' %]
+<hr class="rule">
+<a name="SpatialCoverageOfData"></a>
+<p><span class="sectionnames">SPATIAL COVERAGE OF DATA</span> 
+
+
+<table cellspacing="0" border="0" cellpadding="9" width="760">
+    <tr>
+      <td valign="TOP" colspan="4"> 
+        <p><span class="label">Geographic Description:</span> [%geogdesc%]</p>
+      </td>
+    </tr>
+    <tr> 
+      <td valign="TOP" colspan="4"> 
+        <p><span class="label">Coordinates (in Degrees, Minutes and Seconds):</span></p>
+      </td>
+    </tr>
+    
+    <tr> 
+      <td valign="TOP" colspan="4"> 
+        <p><span class="label">The first lat/long pair:</span></p>
+      </td>
+    </tr>
+    <tr> 
+      <td width="18%" valign="TOP"> 
+        <p><span class="label">&nbsp;Latitude</span></p>
+      </td>
+      <td width="20%" valign="TOP"> 
+        <p><span class="label">&nbsp;North/South</span></p>
+      </td>
+      <td width="20%" valign="TOP"> 
+        <p><span class="label">&nbsp;Longitude</span></p>
+      </td>
+      <td width="42%" valign="TOP"> 
+        <p><span class="label">&nbsp;West/East</span></p>
+      </td>
+    </tr>
+    <tr> 
+      <td width="18%" valign="TOP"> 
+        <p><font size="-1">
+	[%latDeg1%]&nbsp;[%latMin1%]'&nbsp;[%latSec1%]&quot; 
+        </font></p>
+      </td>
+      <td width="20%" valign="TOP"> 
+        <p> <font size="-1">
+          [%hemisphLat1%]
+	</font></p>
+      </td>
+      <td width="20%" valign="TOP"> 
+        <p><font size="-1"> 
+	  [%longDeg1%]&nbsp;[%longMin1%]'&nbsp;[%longSec1%]&quot; 
+        </font></p>
+      </td>
+      <td width="42%" valign="TOP"> 
+        <p> <font size="-1">
+          [%hemisphLong1%]
+        </font></p>
+      </td>
+    </tr>
+    [% IF latDeg2 %]
+    <tr> 
+      <td valign="TOP" colspan="4"> 
+        <p><span class="label">The second lat/long pair:</span></p>
+      </td>
+    </tr>
+    <tr> 
+      <td width="18%" valign="TOP"> 
+        <p><span class="label">Latitude</span></p>
+      </td>
+      <td width="20%" valign="TOP"> 
+        <p><sapn class="label">&nbsp;North/South</span></p>
+      </td>
+      <td width="20%" valign="TOP"> 
+        <p><span class="label">Longitude</span></p>
+      </td>
+      <td width="42%" valign="TOP"> 
+        <p><sapn class="label">West/East</span></p>
+      </td>
+    </tr>
+    <tr>
+      <td width="18%" valign="TOP"> 
+        <p><font size="-1">
+	[%latDeg2%]&nbsp;[%latMin2%]'&nbsp;[%latSec2%]&quot;
+        </font></p>
+      </td>
+      <td width="20%" valign="TOP"> 
+        <p> <font size="-1">
+          [%hemisphLat2%]
+	</font></p>
+      </td>
+      <td width="20%" valign="TOP"> 
+        <p><font size="-1"> 
+	  [%longDeg2%]&nbsp;[%longMin2%]'&nbsp;[%longSec2%]&quot; 
+        </font></p>
+      </td>
+      <td width="42%" valign="TOP">
+        <p> <font size="-1">
+          [%hemisphLong2%]
+        </font></p>
+      </td>
+    </tr>
+    [% END %]
+  </table>
+[% END %]
+
+[% IF modules.taxonomic == 'true' %]
+    [% numTaxa = 0 %]
+    [% IF taxaCount > 0 %]
+        [% numTaxa = taxaCount %]
+    [% END %]
+    <hr class="rule">
+    <a name="Taxonomic Coverage"></a>
+    <p><span class="sectionnames">TAXONOMIC COVERAGE OF DATA</span></p>
+    [% cnt = 1 %]
+    [% WHILE cnt <= numTaxa %]
+        [% SET trn = "taxonRankName${cnt}" %]
+        [% SET trv = "taxonRankValue${cnt}" %]
+        <p><span class="label">Taxon:</span>  [% $trn %]: [% $trv %]</p>
+        [% cnt = cnt + 1 %]
+     [% END %]
+     <p><span class="label">Taxonomic Reference:</span>  [% taxaAuth %]</p>
+[% END %]
+
+[% IF modules.method == 'true' %]
+    <hr class="rule">
+    <a name="Methods"></a>
+    <p><span class="sectionnames">DATA COLLECTION METHODS</span></p>
+    <p><span class="label">Method Title:</span> [%methodTitle%]</p>
+    [% FOREACH para = methodPara %]
+        <p><span class="label">Paragraph:</span> [%para%] </p>
+    [% END %]
+    <p><span class="label">Extent of Study Description:</span> [%studyExtentDescription%]</p>
+    <p><span class="label">Sampling Description:</span> [%samplingDescription%]</p>
+[% END %]
+
+[% IF modules.upload == 'true' && upCount %]
+   <hr class="rule">
+	 <a name="Upload Data"></a>
+	  <p><span class="sectionnames">UPLOAD DATA</span></p>
+    
+    [% cnt = 0 %]
+    [% WHILE cnt < upCount %]
+        [% SET fileName = "uploadname_${cnt}" %]
+        [% SET filePerm = "uploadperm_${cnt}" %]
+        [% cnt = cnt + 1 %]
+
+        <p>
+					<span class="label">File #[% cnt %]:</span> [% $fileName %], [% $filePerm %] access
+					[% dCount = 0 %]
+					[% IF delCount > 0 %]
+						 [% dCount = delCount %]
+					[% END %]
+					[% cntd = 0 %]
+					[% WHILE cntd < dCount %]
+							[% SET delfile = "deletefile_${cntd}" %]
+							[% IF $delfile == fileName %]
+								<span class="redbold">to be removed</b>	
+							[% END %]
+							[% cntd = cntd + 1 %]
+  				[% END %]   
+				</p>
+    [% END %]
+[% END %]
+<hr class="rule">
+<a name="DataSetContactAddress"></a>
+<p><span class="sectionnames">DATA SET CONTACT</span> 
+
+<p><span class="label">First Name:</span>        [%origNamefirstContact%]
+</p>
+
+<p><span class="label">Last Name:</span>         [%origNamelastContact%]
+</p>
+
+<p><span class="label">Organization Name:</span> [%origNameOrgContact%]
+</p>
+
+<p><span class="label">E-Mail:</span>            [%origEmailContact%]
+</p>
+
+<p><span class="label">Phone:</span>             [%origPhoneContact%]
+</p>
+
+<p><span class="label">FAX:</span>               [%origFAXContact%]
+</p>
+
+<p><span class="label">Street Information:</span> 
+                                                    [%origDeliveryContact%]
+</p>
+
+<p><span class="label">City:</span>              [%origCityContact%]
+</p>
+
+<p><span class="label">State:</span>             [%origStateContact%]
+</p>
+
+<p><span class="label">Other State/Province:</span>       [%origStateOtherContact%]
+</p>
+
+<p><span class="label">Postal Code:</span>               [%origZIPContact%]
+</p>
+
+<p><span class="label">Country:</span>           [%origCountryContact%]
+</p>
+
+
+<hr class="rule">
+<a name="DistributionIinformation"></a>
+<p><span class="sectionnames">DISTRIBUTION INFORMATION</span> 
+
+<a name=Site-specificCode></a>
+<p><span class="label">Data Set Identifier:</span> [%identifier%]
+</p>
+
+<p><span class="label">Data Medium:</span>       [%dataMedium%]&nbsp;&nbsp;&nbsp;&nbsp;<span class="label">Other Data Medium</span>: [%dataMediumOther%]
+</p>
+
+
+<p><span class="label">Usage Constraints:</span>   [%useConstraints%]&nbsp;&nbsp;&nbsp;&nbsp;<span class="label">Other Usage Constraints:</span>  [%useConstraintsOther%]
+</p>
+
+
+<p><span class="label">URL</span>:               [%url%]
+</p>
+<p><span class="label">Additional Information:</span>  [%addComments%]
+</p>
+<hr class="rule">
+
+<form action="[% cgiPrefix %]/register-dataset.cgi" method="post">
+  <input type="hidden" name="cfg" value="[% cfg %]">
+  <input type="hidden" name="docid" value="[% docid %]">
+  <input type="hidden" name="stage" value="confirmed">
+  <input type="hidden" name="providerGivenName" value="[%providerGivenName%]">
+  <input type="hidden" name="providerSurName" value="[%providerSurName%]">
+  <input type="hidden" name="site" value="[%site%]">
+  [% IF cfg == 'nceas' %]
+      [% FOREACH group = wg %]
+          <input type="hidden" name="wg" value="[%group%]">
+      [% END %]
+  [% END %]
+  <input type="hidden" name="identifier" value="[%identifier%]">
+  <input type="hidden" name="title" value="[%title%]">
+  <input type="hidden" name="origNamefirst0" value="[%origNamefirst0%]">
+  <input type="hidden" name="origNamelast0" value="[%origNamelast0%]">
+  <input type="hidden" name="origNameOrg" value="[%origNameOrg%]">
+  <input type="hidden" name="origRole0" value="[%origRole0%]">
+  <input type="hidden" name="origDelivery" value="[%origDelivery%]">
+  <input type="hidden" name="origCity" value="[%origCity%]"> 
+  <input type="hidden" name="origState" value="[%origState%]">
+  <input type="hidden" name="origStateOther" value="[%origStateOther%]">
+  <input type="hidden" name="origZIP" value="[%origZIP%]">
+  <input type="hidden" name="origCountry" value="[%origCountry%]">
+  <input type="hidden" name="origPhone" value="[%origPhone%]">
+  <input type="hidden" name="origFAX" value="[%origFAX%]">
+  <input type="hidden" name="origEmail" value="[%origEmail%]">
+  <input type="hidden" name="useOrigAddress" value="[%useOrigAddress%]">
+  <input type="hidden" name="origNamefirstContact" value="[%origNamefirstContact%]">
+  <input type="hidden" name="origNamelastContact" value="[%origNamelastContact%]">
+  <input type="hidden" name="origNameOrgContact" value="[%origNameOrgContact%]">
+  <input type="hidden" name="origDeliveryContact" value="[%origDeliveryContact%]">
+  <input type="hidden" name="origCityContact" value="[%origCityContact%]"> 
+  <input type="hidden" name="origStateContact" value="[%origStateContact%]">
+  <input type="hidden" name="origStateOtherContact" value="[%origStateOtherContact%]">
+  <input type="hidden" name="origZIPContact" value="[%origZIPContact%]">
+  <input type="hidden" name="origCountryContact" value="[%origCountryContact%]">
+  <input type="hidden" name="origPhoneContact" value="[%origPhoneContact%]">
+  <input type="hidden" name="origFAXContact" value="[%origFAXContact%]">
+  <input type="hidden" name="origEmailContact" value="[%origEmailContact%]">
+  <input type="hidden" name="aoCount" value="[%aoCount%]">
+  [% cnt = 1 %]
+  [% WHILE cnt <= numAO %]
+      [% SET origNamefirst = "origNamefirst${cnt}" %]
+      [% SET origNamelast = "origNamelast${cnt}" %]
+      [% SET origRole = "origRole${cnt}" %]
+      <input type="hidden" name="[% origNamefirst %]" value="[% $origNamefirst %]">
+      <input type="hidden" name="[% origNamelast %]" value="[% $origNamelast %]">
+      <input type="hidden" name="[% origRole %]" value="[% $origRole %]">
+      [% cnt = cnt + 1 %]
+  [% END %]
+  <input type="hidden" name="abstract" value="[%abstract%]">
+  <input type="hidden" name="keyCount" value="[%keyCount%]">
+  [% cnt = 1 %]
+  [% WHILE cnt <= numKey %]
+      [% SET kyd = "keyword${cnt}" %]
+      [% SET keyType = "kwType${cnt}" %]
+      [% SET keyTh = "kwTh${cnt}" %]
+      <input type="hidden" name="[% kyd %]" value="[% $kyd %]">
+      <input type="hidden" name="[% keyType %]" value="[% $keyType %]">
+      <input type="hidden" name="[% keyTh %]" value="[% $keyTh %]">
+      [% cnt = cnt + 1 %]
+  [% END %]
+  <input type="hidden" name="addComments" value="[%addComments%]">
+  <input type="hidden" name="useConstraints" value="[%useConstraints%]">
+  <input type="hidden" name="useConstraintsOther" value="[%useConstraintsOther%]">
+  <input type="hidden" name="url" value="[%url%]">
+  <input type="hidden" name="dataMedium" value="[%dataMedium%]">
+  <input type="hidden" name="dataMediumOther" value="[%dataMediumOther%]">
+  <input type="hidden" name="beginningYear" value="[%beginningYear%]">
+  <input type="hidden" name="beginningMonth" value="[%beginningMonth%]">
+  <input type="hidden" name="beginningDay" value="[%beginningDay%]">
+  <input type="hidden" name="endingYear" value="[%endingYear%]">
+  <input type="hidden" name="endingMonth" value="[%endingMonth%]">
+  <input type="hidden" name="endingDay" value="[%endingDay%]">
+  <input type="hidden" name="geogdesc" value="[%geogdesc%]">
+  <input type="hidden" name="useSiteCoord" value="[%useSiteCoord%]">
+  <input type="hidden" name="latDeg1" value="[% latDeg1 %]">
+  <input type="hidden" name="latMin1" value="[%latMin1%]">
+  <input type="hidden" name="latSec1" value="[%latSec1%]">
+  <input type="hidden" name="hemisphLat1" value="[%hemisphLat1%]">	
+  <input type="hidden" name="longDeg1" value="[% longDeg1 %]">
+  <input type="hidden" name="longMin1" value="[%longMin1%]">
+  <input type="hidden" name="longSec1" value="[%longSec1%]">
+  <input type="hidden" name="hemisphLong1" value="[%hemisphLong1%]">
+  <input type="hidden" name="latDeg2" value="[%latDeg2%]">
+  <input type="hidden" name="latMin2" value="[%latMin2%]">
+  <input type="hidden" name="latSec2" value="[%latSec2%]">
+  <input type="hidden" name="hemisphLat2" value="[%hemisphLat2%]">	
+  <input type="hidden" name="longDeg2" value="[%longDeg2%]">
+  <input type="hidden" name="longMin2" value="[%longMin2%]">
+  <input type="hidden" name="longSec2" value="[%longSec2%]">
+  <input type="hidden" name="hemisphLong2" value="[%hemisphLong2%]">
+  <input type="hidden" name="taxaCount" value="[%taxaCount%]">
+  <input type="hidden" name="userLoggedIn" value="[%userLoggedIn%]">
+  [% cnt = 1 %]
+  [% WHILE cnt <= numTaxa %]
+      [% SET trn = "taxonRankName${cnt}" %]
+      [% SET trv = "taxonRankValue${cnt}" %]
+      <input type="hidden" name="[% trn %]" value="[% $trn %]">
+      <input type="hidden" name="[% trv %]" value="[% $trv %]">
+      [% cnt = cnt + 1 %]
+  [% END %]
+  <input type="hidden" name="taxaAuth" value="[%taxaAuth%]">
+
+  <input type="hidden" name="methodTitle" value="[%methodTitle%]">
+  [% FOREACH para = methodPara %]
+      <input type="hidden" name="methodPara" value="[%para%]">
+  [% END %]
+  <input type="hidden" name="studyExtentDescription" value="[%studyExtentDescription%]">
+  <input type="hidden" name="samplingDescription" value="[%samplingDescription%]">
+  <input type="hidden" name="upCount" value="[%upCount%]">
+  <input type="hidden" name="delCount" value="[% delCount %]">
+  [% dCount = 0 %]
+  [% IF delCount > 0 %]
+     [% dCount = delCount %]
+  [% END %]
+  [% cnt = 0 %]
+  [% WHILE cnt < dCount %]
+ 		  [% SET delfile = "deletefile_${cnt}" %]
+      <input type="hidden" name="[% delfile %]" value="[% $delfile %]">
+			<input type="hidden" name="deletefile" value="[% $delfile %]">
+			[% cnt = cnt + 1 %]
+	[% END %]		
+
+  [% fCount = 0 %]
+  [% IF upCount > 0 %]
+      [% fCount = upCount %]
+  [% END %]
+
+  [% cnt = 0 %]
+  [% WHILE cnt < fCount %]
+      [% SET fileSum = "upload_${cnt}" %]
+      [% SET fileName = "uploadname_${cnt}" %]
+      [% SET fileType = "uploadtype_${cnt}" %] 
+      [% SET filePerm = "uploadperm_${cnt}" %]
+
+      [% IF fileSum %]
+        <input type="hidden" name="[% fileSum %]" value="[% $fileSum %]">
+        <input type="hidden" name="[% fileName %]" value="[% $fileName %]">
+        <input type="hidden" name="[% fileType %]" value="[% $fileType %]">
+        <input type="hidden" name="[% filePerm %]" value="[% $filePerm %]">
+      [% END %]
+      [% cnt = cnt + 1 %]
+  [% END %]
+</td><tr></table>
+
+[% IF userLoggedIn != 'true' %]
+<table class="intro" cellspacing="0" border="0" cellpadding="9">
+  <tr><td class="sectbody"><span class="sectionnames">SIGN IN</span></td></tr>
+  <tr><td class="sectbody"><span class="label"><u>NOTE:</u> You must enter your username
+      and password. This is for the protection of your metadata. The
+      username and password will prevent any unauthorized person from
+      modifying your metadata. If you do not have an account, click <a
+      target="ldap" href="[% cgiPrefix %]/ldapweb.cgi?cfg=[% cfg %]">here</a>. 
+      If you don't remember your password, you can
+      have it reset and e-mailed to you by clicking <a target="ldap"
+      href="[% cgiPrefix %]/ldapweb.cgi?stage=initresetpass&cfg=[% cfg %]">here</a>. If you want to 
+      change your password, click <a target="ldap"
+      href="[% cgiPrefix %]/ldapweb.cgi?stage=initchangepass&cfg=[% cfg %]">here</a>.
+      </span>
+      <table cellspacing="0" border="0" cellpadding="9" width="360" align="left">
+        <tr>
+	  <td>
+	    <span class="label">
+	      Username: 
+	    </span></td>
+	  <td>
+	    <input type="TEXT" name="username"></td></tr>
+	<tr>
+	  <td>
+	    <span class="label"> 	
+	      Organization: 
+	    </span></td>
+	  <td>
+	    <select name="organization">
+	    	<option value="NCEAS">NCEAS</option>
+	    	<option value="KU">KU</option>
+	    	<option value="LTER">LTER</option>
+	    	<option value="OBFS">OBFS</option>
+	    	<option value="OSUSB">OSUSB</option>
+	    	<option value="PARC">PARC</option>
+	    	<option value="PISCO">PISCO</option>
+	    	<option value="SDSC">SDSC</option>
+	    	<option value="UCNRS">UCNRS</option>
+	    	<option value="unaffiliated">unaffiliated</option>
+	    </select></td></tr>
+	<tr>
+	  <td>
+	    <span class="label"> 	
+	      Password: 
+	    </span></td>
+	  <td>
+	    <input type="PASSWORD" name="password">
+	  </td></tr>
+      </table>
+    </td></tr>
+</table>
+<p>&nbsp;</p>
+[% END %]
+
+<a name="buttons"></a>
+<table class="intro" cellspacing="0" cellpadding="3" >
+  <tr><td align="left">
+  <p><span class="label">Is the information above correct?</span></p> 
+      <p> 
+        <input type="SUBMIT" value="     Yes, submit    " name="dataCorrect">
+        <input type="SUBMIT" value="No, go back to editing" name="dataWrong">
+      </p>
+    </td></tr>
+</table>
+</form>
+<p>&nbsp;</p>
+[% INCLUDE $templates.footer %]

Property changes on: lib/style/common/templates/metacatui/confirmData.tmpl
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: lib/style/common/templates/metacatui/genericGuide.tmpl
===================================================================
--- lib/style/common/templates/metacatui/genericGuide.tmpl	(nonexistent)
+++ lib/style/common/templates/metacatui/genericGuide.tmpl	(revision 7867)
@@ -0,0 +1,369 @@
+<!--
+  *  '$RCSfile$'
+  *    Copyright: 2000 Regents of the University of California and the
+  *               National Center for Ecological Analysis and Synthesis
+  *  For Details: http://www.nceas.ucsb.edu/
+  *
+  *   '$Author: walbridge $'
+  *     '$Date: 2008-05-27 16:54:10 -0700 (Tue, 27 May 2008) $'
+  * '$Revision: 3915 $'
+  * 
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 2 of the License, or
+  * (at your option) any later version.
+  *
+  * This program is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  * GNU General Public License for more details.
+  *
+  * You should have received a copy of the GNU General Public License
+  * along with this program; if not, write to the Free Software
+  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+-->
+
+[% INCLUDE $templates.header %]
+
+<table class="intro" cellpadding="8" cellspacing="0">
+
+<tr><td align="left"><span class="emphasis">Guide for Completing the Data [% config.type %] Form</td></tr>
+<tr><td align="left"><span class="regtext">This guide provides information on how to fill in the online [% config.abbrev %] Data [% config.type %] Form. 
+There are 11 sections to the form; some fields are required (denoted by an asterisk *),
+while others are optional. When you are done completing a section, you have the option of clicking on "<span class="colorbold">Hide</span>" 
+(on the right side of each section header) to hide the information you just entered. Information on individual fields and examples for their content are provided below.
+</span></td></tr>
+</table>
+
+
+<table class="tables" cellpadding="8" cellspacing="0">
+
+<tr class="sectheader"><td class="borderbottom" colspan="2" align="left"><a name="Submitter"></a>
+NAME OF SUBMITTER</td></tr> 
+<tr><td colspan="2" align="left"><span class="label">
+*First name, *Last name:</span><span class="regtext"> 
+The first and last names of the person completing this form.</span></td></tr>
+
+<tr class="sectheader"><td class="topbottom" colspan="2" align="left"><a name="BasicInformation"></a>
+BASIC INFORMATION</td></tr> 
+<tr><td colspan="2" align="left"><span class="label">*Data Set Title:</span><span class="regtext"> A descriptive title
+of the data set. The title should provide enough information for
+someone casually scanning a list of data sets to know whether the data are
+relevant to them.  This implies that the data context should be indicated 
+in the title without making the title be too long. In general, the title
+should indicate what kind of data were collected and the spatial,
+taxonomic, and temporal extents the data set covers.</span></td></tr>
+
+<tr><td align="left"><span class="regtext"><u>Examples of descriptive titles:</u></td>
+<td align="left"><span class="regtext"><u>Examples of incomplete titles:</u></td></tr>
+
+<tr><td align="left" valign="top"><span class="regtext">Hastings Reserve (CA) Small Mammal Trapline Data from 1972 to 1988.
+
+
+
+<br>Tassajara Hot Springs Reserve Water Chemistry Data from 1990 to 2000.</td>
+
+<td align="left" valign="top"><span class="regtext">Mammals Data<br><br>Water Chemistry Data</td></tr>
+
+[% IF cfg == 'nceas' %]
+<tr><td colspan="2" align="left"><span class="label">*NCEAS Project(s):</span><span class="regtext"> Select one or more
+NCEAS activities from the list to indicate that the data set is
+affiliated with that working group or activity.  We use "affiliation" 
+in a rather permissive sense to mean, for example, that the data set was or has
+been generated by the activity; that the owner of the data is affiliated
+with the activity; that the data set is owned by the activity; etc. Both
+derived data sets that result from synthesis activities and original raw data
+sets that contribute to synthesis can be included in the repository and should
+be associated with the appropriate NCEAS activities.</td></tr>
+[% END %]
+
+[% IF cfg == 'esa' || cfg == 'ltss' %]  
+
+<tr><td colspan="2" align="left"><span class="label">*Organization Name:</span>
+<span class="regtext">The name of the organization with which the data set is
+affiliated. We use "affiliation" in a rather permissive sense to mean, for example, that the data set was or has
+been generated at the organization; that the owner of the data is affiliated
+with the organization or was affiliated with the organization when the data
+set was generated; that the data set is owned by the organization; etc.</td></tr>
+
+<tr><td align="left"><span class="regtext"><u>Examples of correct organization names:</u></td>
+   <td align="left"><span class="regtext"><u>Examples of incorrect organization names:</u></td></tr>
+
+<tr><td align="left" valign="top"><span class="regtext">University of Michigan Biological Station
+<br>Duke University FACE Facility<br>National Center for Ecological Analysis and Synthesis</br></td>
+  <td align="left"><span class="regtext">Michigan Station<br>Duke University<br>University of California Santa Barbara</br>
+</td></tr>
+[% END %]
+
+[% IF cfg == 'obfs' || cfg == 'nrs' || cfg == 'specnet'%]
+
+<tr><td colspan="2" align="left"><span class="label">*[% config.site | ucfirst %] Name:</span>
+<span class="regtext">Select a [% config.site %] from the drop-down list to indicate that the data set is
+affiliated with the [% config.site %]. We use "affiliation" in a rather
+permissive sense to mean, for example, that the data set was or has
+been generated at the [% config.site %]; that the owner is affiliated
+with the [% config.site %] or was affiliated with the [% config.site %] when the data
+set was generated; or that the data set is owned by the [% config.site %]; etc.
+</td></tr>
+
+<tr><td colspan="2" align="left"><span class="regtext"><u>Note:</u>
+If the data were collected at a site other than a
+[% config.site %] listed in the drop-down menu, you can indicate so in the
+abstract and/or title. You can also indicate this in the keywords
+with a locality keyword.</span></td></tr> 
+
+[% END %]
+
+
+
+
+<tr class="sectheader"><td class="topbottom" colspan="2" align="left"><a name="DataSetOriginator"></a>PRINCIPAL DATA SET OWNER</td></tr> 
+
+
+<tr><td colspan="2" align="left"><span class="regtext">The person responsible for developing the data set. For example, the principal 
+investigator in a collaborative project, the first author of the main publication using the data set, etc.
+ The first and last names of the principal data set owner are required; the organization name, e-mail, phone, fax, and
+address information are optional.</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="regtext"><u>Note:</u><span class="regtext"> If there is more than one owner, information 
+about the co-owner(s) can be provided in the ASSOCIATED PARTIES section below.</span>
+
+<tr><td colspan="2" align="left"><span class="label">*First Name:</span>
+<span class="regtext">The first name of the principal data set owner.</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="label">*Last Name:</span>
+<span class="regtext">The last name (surname) of the principal data set owner.</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="label">Organization Name:</span>
+<span class="regtext">The name of the organization from which the data set
+originated.</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="label">E-Mail:</span>
+<span class="regtext">The e-mail address by which the principal data set owner can be contacted.</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="label">Phone:</span>
+<span class="regtext">The phone number of the principal data set owner, including the area code (999-999-9999).</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="label">FAX:</span>
+<span class="regtext">The fax number of the principal data set owner, including sthe area code (999-999-9999).</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="label">Street Information:</span>
+<span class="regtext">A comma-separated list of street number, street, unit,
+etc.<br> <u>Example:</u> 735 State Street, Suite 300</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="label">City:</span>
+<span class="regtext">The city
+name of the principal data set owner's address.</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="label">U.S. State or Territory:</span>
+<span class="regtext">Select a U.S. state or territory from the drop-down menu for the principal data set owner's address. If the address is not in 
+the United States, used the "Other State/Province" field below. For a shortcut,
+press the first letter of the state on your keyboard (e.g.,  M-key to skip to Maine).</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="label">Other State/Province:</span>
+<span class="regtext">A non-U.S. state or a province for 
+the principal data set owner's address.</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="label">Postal Code:</span>
+<span class="regtext">The postal code or ZIP code
+for the principal data set owner's address.</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="label">Country:</span>
+<span class="regtext">The country
+for the principal data set owner's address.</span></td></tr>
+
+
+<tr class="sectheader"><td class="topbottom" colspan="2" align="left"><a name="AdditionalOriginators"></a>ASSOCIATED PARTIES</td></tr> 
+
+<tr><td colspan="2" align="left"><span class="regtext">
+If applicable, enter the first and last names of an associated party (e.g., co-owner of the data set, a data custodian/steward, a metadata provider, a user of 
+the data set), select a role for this person, and click on "Add Associated Party".  Repeat to add another associated party.</td></tr> 
+<tr><td colspan="2" align="left"><span class="regtext">To edit an entry, click on the name of the person entered, change the name and/or 
+the role, and click on the area just right of the drop-down menu for the role (the text fields and the drop-down menu will disappear). To delete an entry, click on the "X".
+ If you have entered several associated parties and want to change the order in which they appear, use the blue up and down arrows.</tr>
+
+
+<tr class="sectheader"><td class="topbottom" colspan="2" align="left">
+<a name="DataSetAbstract"></a>*DATA SET ABSTRACT</td></tr>
+
+<tr><td colspan="2" align="left"><span class="regtext">Short (maximum of 350 words) summary of the
+purpose and content of the data set. Entering a data set abstract is required.</td></tr>
+
+<tr><td colspan="2" align="left"><span class="regtext"><u>Example:</u> Data were collected every year in summer and fall from
+1967 to 1979. Trapping was conducted only in the fall from 1980 to
+1988. For each specimen taken, data were recorded on species, date,
+location, time, sex, and body measurements including total length,
+length of tail, length of hind foot, length of ear, and body mass.
+The purpose of the data was to index the population size of all
+species present over a long time period.</td></tr>
+
+<tr class="sectheader"><td class="topbottom" colspan="2" align="left">
+<a name="KeywordInformation"></a>KEYWORD INFORMATION</td></tr>
+
+<tr><td colspan="2" align="left"><span class="regtext">Provide information for as many keywords as needed. The information is provided in groups of three 
+fields: keyword, keyword type, and keyword thesaurus. Repeat steps 1-4 below for each additional keyword.</td></tr>
+
+<tr><td colspan="2" align="left"><span class="regtext">Have a look at the <a href=
+"http://gcmd.nasa.gov/Resources/valids/gcmd_parameters.html" target="nasa">NASA Global Change Master Directory
+(GCMD)</a> (particularly under EARTH SCIENCE > Biosphere) and see if you can find keywords that appropriately describe your data set.  If not, use your own keywords.</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="label">1. Keyword: </span><span class="regtext"> Enter a
+word or phrase that describes your data set.</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="label">2. Keyword Type: </span>
+<span class="regtext">Select the keyword type (a term used to group similar keywords). The different types are ("none" is the default):
+
+   <ul>
+      <li>Theme: the keyword identifies a particular subject or topic.</li>
+      <li>Place: the keyword identifies a place.</li>
+      <li>Stratum: the keyword identifies the layer(s) of any deposited substance.</li>
+      <li>Temporal: the keyword identifies a time period related to the data set.
+      <li>Taxonomic: the keyword identifies a particular taxon.</li>
+</ul></span></td></tr>
+<tr><td colspan="2" align="left"><span class="label">3. Keyword Thesaurus: </span><span class="regtext">Select whether you used the NASA Global Change Master Directory
+(GCMD) or not to choose your keywords.</span></td></tr> 
+
+
+
+<tr><td colspan="2" align="left"><span class="regtext"><b>4.</b> Click on the <b>"Add Keyword"</b> button to add the keyword information provided.</span>  
+
+
+<tr><td colspan="2" align="left"><span class="regtext">To edit a keyword entry, click on the keyword entered, change the keyword, keyword type, and/or keyword 
+thesaurus, and click on the area just right of the thesaurus drop-down menu (the text field and the drop-down menus will disappear).  To delete an entry, click on the "X". 
+If you have entered several keywords and want to change the order in which they appear, use the blue up and down arrows.</span></td></tr>
+
+
+<tr class="sectheader"><td class="topbottom" colspan="2" align="left">
+<a name="TemporalCoverageOfData"></a>TEMPORAL COVERAGE OF DATA</td></tr>
+
+<tr><td colspan="2" align="left"><span class="label">*Start Date:</span><span class="regtext"> The first year, month, and
+day of the collection/creation of the data set. A start date is required. Type in the year (yyyy), and choose the month and the day from the
+drop-down menus.</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="label">Stop Date:</span><span class="regtext"> The last year, month, and
+day for the collection/creation of the data set. Type in the year, and choose the month and the day from the drop-down menus.<br> 
+<u>Note:</u> Leave "Stop Date" blank if your data set is open-ended.</span></td></tr>
+
+<tr class="sectheader"><td class="topbottom" colspan="2" align="left">
+<a name="SpatialCoverageOfData"></a>SPATIAL COVERAGE OF DATA</span></td></tr> 
+
+
+<tr><td colspan="2" align="left"><span class="label">*Geographic Description:</span><span class="regtext"> 
+Enter a general description of the geographic area in which the data were collected. This can be a simple place name (e.g., Santa Barbara) or a fuller description.
+This field supplements the coordinates provided below and helps orient the data user about the general location of the study.</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="label">*Coordinates:</span><span class="regtext"></span><span class="regtext"> The latitude and longitude
+coordinates (in degrees, minutes and seconds) of the location where the data were collected. At least one lat/long pair is required. From the drop-down menus, select 
+the North (N) or South (S) orientation for the latitudes, and the West (W) or East (E) orientation for the longitudes.</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="regtext">If you enter <b>one coordinate pair only</b>: This indicates a
+point location.</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="regtext">If you enter <b>both coordinate pairs</b>: This indicates a
+bounding box. The first coordinate pair is the northwest corner and
+the second coordinate pair is the southeast corner of the bounding
+box.</span></td></tr>
+
+<tr class="sectheader"><td class="topbottom" colspan="2" align="left">
+<a name="TaxonomicCoverage"></a>
+TAXONOMIC COVERAGE OF DATA</td></tr>
+
+<tr><td colspan="2" align="left"><span class="regtext">
+Provide a list of the taxa that are associated with this data set. 
+This includes taxa for which the data set contains measurements, and taxa
+for which the data have relevance in less direct ways.  In general, if a
+data user searching for a particular taxonomic name should find this data set,
+then the taxon should be included in this list.</span></td></tr> 
+
+<tr><td colspan="2" align="left"><span class="regtext">Please check the <a href=
+"http://darwin.zoology.gla.ac.uk/~rpage/MyToL/www/index.php" target="darwin">Glasgow Taxonomic Name Server</a> or the <a href=
+"http://www.itis.usda.gov/" target="itis">Integrated Taxonomic Information System</a> for correct spelling 
+of taxonomic names.</span></td></tr>
+<tr><td colspan="2" align="left"><span class="regtext">For each taxon, follow the three steps below:</span></td></tr>
+<tr><td colspan="2" align="left"><span class="label">1. Taxonomic Rank:</span><span class="regtext"> Enter the level in the taxonomic hierarchy 
+(Kingdom, Phylum, Class, Order, Family, Genus, or Species).</span></td></tr> 
+<tr><td colspan="2" align="left"><span class="label">2. Taxonomic Name:</span><span class="regtext"> Enter the scientific name for the level 
+entered under Taxonomic Rank (e.g., <i>Animalia</i>, <i>Chordata</i>, <i>Mammalia</i>, <i>Carnivoria</i>, <i>Ursidae</i>, <i>Ursus</i>, or <i>Ursus arctos</i>).</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="regtext"><b>3.</b> Click on the <b>"Add Taxon"</b> button to add the taxonomic information.</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="regtext">To edit an entry, click on the taxonomic information entered, change the taxonomic rank and/or name, and click on the area just right of the text field for the name (the two text 
+fields will disappear).  To delete an entry, click on the "X". If you have entered several taxa and want to change the order in which they appear, use the blue up and 
+down arrows.</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="label">Taxonomic Reference:</span><span class="regtext"> The name
+or complete citation of the source(s) used for identifying and naming taxa (e.g., name of a field guide, key, or nomenclature revision). </span></td></tr>
+
+<tr class="sectheader"><td class="topbottom" colspan="2" align="left">
+<a name="Methods"></a>DATA COLLECTION METHODS</td></tr> 
+
+
+<tr><td colspan="2" align="left"><span class="label">Method Title:</span><span class="regtext"> A title for the method used to generate
+the data (e.g., Measure of zooplankton abundance using radial quadrat sub-sampling).</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="label">Method Description:</span><span class="regtext"> Description of the method used.  
+This is intended to be a general method description that is suitable to help potential users of the data decide if the data are appropriate for their purposes.  
+You can add multiple paragraphs to the description by clicking on the "Add Paragraph to Method Description"
+button (paragraphs added by using the ENTER key in the Method Description field will not appear as paragraphs in the submitted form).
+</span></td></tr>
+
+<!--<tr><td colspan="2" align="left"><span class="regtext">Click on the "Describe Another Method" button
+to describe another method.</span></td></tr>-->
+
+<tr><td colspan="2" align="left"><span class="label">Extent of Study Description:</span><span class="regtext">
+ Describe the temporal, spatial and taxonomic extent of the study, supplementing
+the information on coverage provided above. For example, if the temporal
+coverage of the data is 1990-2000, you might provide details about any years
+that were missed or the months in which sampling actually occurred. If you
+provide information in this field (Extent of Study Description), then you must also provide
+a Method Title, a Method Description and a Sampling Description.</span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="label">Sampling Description:</span><span class="regtext">
+Describe the sampling design of the study. For example, you might describe
+the way in which treatments were assigned to sampling units.  If you provide
+information in this field (Sampling Description), then you must also provide
+a a Method Title, a Method Description and an Extent of Study Description.
+</span></td></tr>
+
+<tr class="sectheader"><td class="topbottom" colspan="2" align="left">
+<a name="DataSetContactAddress"></a>                                   
+DATA SET CONTACT</td></tr>
+
+<tr><td colspan="2" align="left"><span class="regtext">Contact information of the person to be contacted for more information on the data
+set or to obtain the data set itself. This is analogous to the Principal Data Set Owner information above. Please 
+<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&amp;stage=guide#DataSetOriginator" target="_self">see that section</a> for more information on filling out the 
+individual fields. If the Data Set Contact and the Principal Data Set Owner are the same, check the box provided.</span></td></tr>
+
+
+<tr class="sectheader"><td class="topbottom" colspan="2" align="left">
+<a name="DistributionIinformation"></a>
+DISTRIBUTION INFORMATION</font></td></tr> 
+
+<tr><td colspan="2" align="left"><span class="label">
+<a name=Site-specificCode></a>
+Data Set Identifier:</span><span class="regtext"> If available, please enter a name or number that uniquely identifies and describes concisely the data set. 
+Alternatively, provide other pertinent information that can identify and locate the data set within your site's data management system. 
+
+[% IF cfg == 'obfs' || cfg == 'nrs' || cfg == 'specnet'%]
+Keep in mind that this information, although not required, can be extremely useful
+for locating the data set at a [% config.site %].
+[%END%]
+</span></td></tr>
+<tr><td colspan="2" align="left"><span class="label">*Data Medium</font>:</span><span class="regtext"> Specify whether the data medium is 
+digital (e.g., computer file) or hardcopy (e.g., paper), or specify any other type of data medium the data are recorded on (e.g., video tape).</span></td></tr>
+
+
+<tr><td colspan="2" align="left"><span class="label">*Usage Rights:</span><span class="regtext"> Specify the usage rights that apply
+to the data set (e.g., no restrictions, obtain permission from data set owner(s), cite the data set in publications, etc.). </span></td></tr>
+
+<tr><td colspan="2" align="left"><span class="label">URL:</span><span class="regtext"> If available, provide a link for the
+location of more metadata or the data set itself (this URL should be as permanent as possible).</span></td></tr>
+
+<a name="AdditionalInformation"></a>
+<tr><td class="borderbottom" colspan="2" align="left"><span class="label">Additional Information:</span><span class="regtext"> Add
+any additional information here that you deem relevant to the data set, which has not been covered in the form.  For example, if the data set is in the form 
+of a computer file, you could specify the file format here (e.g., Excel, Access, FoxPro, DBase, etc.).</span></td></tr>
+</table>
+<p></p>
+
+[% INCLUDE $templates.footer %]

Property changes on: lib/style/common/templates/metacatui/genericGuide.tmpl
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: lib/style/common/templates/metacatui/genericFooter.tmpl
===================================================================
--- lib/style/common/templates/metacatui/genericFooter.tmpl	(nonexistent)
+++ lib/style/common/templates/metacatui/genericFooter.tmpl	(revision 7867)
@@ -0,0 +1,5 @@
+<script language="JavaScript" type="text/javascript">
+    insertTemplateClosing("[% contextUrl %]");
+</script>
+</body>
+</html>

Property changes on: lib/style/common/templates/metacatui/genericFooter.tmpl
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: lib/style/common/templates/metacatui/genericResponse.tmpl
===================================================================
--- lib/style/common/templates/metacatui/genericResponse.tmpl	(nonexistent)
+++ lib/style/common/templates/metacatui/genericResponse.tmpl	(revision 7867)
@@ -0,0 +1,229 @@
+[% INCLUDE $templates.header %]
+
+    [% IF status == 'success' %]
+        
+     <table class="intro" cellpadding="8" cellspacing="0">
+
+     <tr><td align="left"><span class="emphasis">Success</span></td></tr>
+	[% IF function == 'deleted' %]
+            <tr><td align="left"><span class="regtext">Your data set description has been [% function  %].  Thank you.</span></td></tr>
+        [%ELSE%]
+	    <tr><td align="left"><span class="regtext">Your data set description has been [% function  %].  Thank you.</span></td></tr>
+            <tr><td align="left"><span class="regtext">View the <a href="[% metacatUrl %]?action=read&qformat=[% cfg %]&docid=[% docid %]">data set description</a>.</span></td></tr> 	   
+        [%END%]
+      </table>
+    [% ELSE %]
+    	[%  IF function == 'cancel' %]
+
+	 [% ELSE %]
+		<table class="intro" cellpadding="8" cellspacing="0">
+	          <tr><td align="left"><span class="emphasis">Failure</span></td></tr>
+        
+	          <tr><td align="left"><span class="regtext">An error occurred. Please check the list of errors below: </span></td></tr>
+                  <tr><td align="left">
+                      <ul>
+                      [% FOREACH parameter = invalidParams %]
+                     <li class="label">[% parameter %]</li>
+                      [% END %]
+                  </ul></td></tr>
+                  <tr><td align="left">
+                  <ul>
+                      [% FOREACH msg = errorMessages %]
+                      <li class="label">[% msg %]</li>
+                      [% END %]
+                  </ul></td></tr>
+	       </table>
+     [% END %]
+    [% END %]
+    [% IF status == 'login_failure' %]
+        <table class="intro" cellpadding="8" cellspacing="0">
+            <tr><td align="left"><span class="regtext">Click <a href = "javascript:history.back()">here</a> to return
+            to the previous page, and enter the correct username, organization, and password.</td></tr> 
+        </table>
+    [% ELSE %]
+        [% IF function == 'deleted' || function == 'cancel' %]
+            <table class="intro" cellpadding="8" cellspacing="0">
+            [% IF status != 'success' %]   
+            <tr><td align="left"><span class="regtext">Click <a href = "javascript:history.back()">here</a> to return
+            to the previous page, and enter the correct username, organization, and password.</td></tr> 
+            [%ELSE%]
+                <tr><td align="left"><span class="regtext">Or, <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]" target="_top">register a new data set</a>.
+		Otherwise, use the toolbar links above to navigate.</span></td></tr>
+            [%END%]
+            </table>
+        [% ELSE %]
+            [% IF status == 'success' %]
+                <table class="intro" cellpadding="8" cellspacing="0">
+                    <tr><td align="left"><span class="regtext">Or, <a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]" target="_top">register a new data set</a>.
+                    Otherwise, use the toolbar links above to navigate.</span></td></tr>
+                </table>
+            [% ELSE %]
+                [% IF status != 'failure_no_resubmit' %]
+                    <form name="editForm" action="[% cgiPrefix %]/register-dataset.cgi" method="post">
+                        <input type="hidden" name="cfg" value="[% cfg %]">
+                        <input type="hidden" name="docid" value="[% docid %]">
+                        <input type="hidden" name="stage" value="confirmed">
+                        <input type="hidden" name="dataWrong" value="No, go back to editing">
+                        <input type="hidden" name="providerGivenName" value="[%providerGivenName%]">
+                        <input type="hidden" name="providerSurName" value="[%providerSurName%]">
+                        <input type="hidden" name="site" value="[%site%]">
+                        [% IF cfg == 'nceas' %]
+                            [% FOREACH group = wg %]
+                                <input type="hidden" name="wg" value="[%group%]">
+                            [% END %]
+                        [% END %]
+                        <input type="hidden" name="identifier" value="[%identifier%]">
+                        <input type="hidden" name="title" value="[%title%]">
+                        <input type="hidden" name="origNamefirst0" value="[%origNamefirst0%]">
+                        <input type="hidden" name="origNamelast0" value="[%origNamelast0%]">
+                        <input type="hidden" name="origNameOrg" value="[%origNameOrg%]">
+                        <input type="hidden" name="origRole0" value="[%origRole0%]">
+                        <input type="hidden" name="origDelivery" value="[%origDelivery%]">
+                        <input type="hidden" name="origCity" value="[%origCity%]"> 
+                        <input type="hidden" name="origState" value="[%origState%]">
+                        <input type="hidden" name="origStateOther" value="[%origStateOther%]">
+                        <input type="hidden" name="origZIP" value="[%origZIP%]">
+                        <input type="hidden" name="origCountry" value="[%origCountry%]">
+                        <input type="hidden" name="origPhone" value="[%origPhone%]">
+                        <input type="hidden" name="origFAX" value="[%origFAX%]">
+                        <input type="hidden" name="origEmail" value="[%origEmail%]">
+                        <input type="hidden" name="useOrigAddress" value="[%useOrigAddress%]">
+                        <input type="hidden" name="origNamefirstContact" value="[%origNamefirstContact%]">
+                        <input type="hidden" name="origNamelastContact" value="[%origNamelastContact%]">
+                        <input type="hidden" name="origNameOrgContact" value="[%origNameOrgContact%]">
+                        <input type="hidden" name="origDeliveryContact" value="[%origDeliveryContact%]">
+                        <input type="hidden" name="origCityContact" value="[%origCityContact%]"> 
+                        <input type="hidden" name="origStateContact" value="[%origStateContact%]">
+                        <input type="hidden" name="origStateOtherContact" value="[%origStateOtherContact%]">
+                        <input type="hidden" name="origZIPContact" value="[%origZIPContact%]">
+                        <input type="hidden" name="origCountryContact" value="[%origCountryContact%]">
+                        <input type="hidden" name="origPhoneContact" value="[%origPhoneContact%]">
+                        <input type="hidden" name="origFAXContact" value="[%origFAXContact%]">
+                        <input type="hidden" name="origEmailContact" value="[%origEmailContact%]">
+                        <input type="hidden" name="aoCount" value="[%aoCount%]">
+  
+                        [% numAO = 0 %]
+                        [% IF aoCount > 0 %]
+                            [% numAO = aoCount %]
+                        [% END %]
+                        [% cnt = 1 %]
+                        [% WHILE cnt <= numAO %]
+                            [% SET origNamefirst = "origNamefirst${cnt}" %]
+                            [% SET origNamelast = "origNamelast${cnt}" %]
+                            [% SET origRole = "origRole${cnt}" %]
+                            <input type="hidden" name="[% origNamefirst %]" value="[% $origNamefirst%]">
+                            <input type="hidden" name="[% origNamelast %]" value="[% $origNamelast%]">
+                            <input type="hidden" name="[% origRole %]" value="[% $origRole%]">
+                            [% cnt = cnt + 1 %]
+                        [% END %]
+                      
+                        <input type="hidden" name="abstract" value="[%abstract%]">
+                        <input type="hidden" name="keyCount" value="[%keyCount%]">
+                        [% numKey = 0 %]
+                        [% IF keyCount > 0 %]
+                            [% numKey = keyCount %]
+                        [% END %]
+                        [% cnt = 1 %]
+                        [% WHILE cnt <= numKey %]
+                            [% SET kyd = "keyword${cnt}" %]
+                            [% SET keyType = "kwType${cnt}" %]
+                            [% SET keyTh = "kwTh${cnt}" %]
+                            <input type="hidden" name="[% kyd %]" value="[% $kyd %]">
+                            <input type="hidden" name="[% keyType %]" value="[% $keyType %]">
+                            <input type="hidden" name="[% keyTh %]" value="[% $keyTh %]">
+                            [% cnt = cnt + 1 %]
+                        [% END %]
+                        <input type="hidden" name="addComments" value="[%addComments%]">
+                        <input type="hidden" name="useConstraints" value="[%useConstraints%]">
+                        <input type="hidden" name="useConstraintsOther" value="[%useConstraintsOther%]">
+                        <input type="hidden" name="url" value="[%url%]">
+                        <input type="hidden" name="dataMedium" value="[%dataMedium%]">
+                        <input type="hidden" name="dataMediumOther" value="[%dataMediumOther%]">
+                        <input type="hidden" name="beginningYear" value="[%beginningYear%]">
+                        <input type="hidden" name="beginningMonth" value="[%beginningMonth%]">
+                        <input type="hidden" name="beginningDay" value="[%beginningDay%]">
+                        <input type="hidden" name="endingYear" value="[%endingYear%]">
+                        <input type="hidden" name="endingMonth" value="[%endingMonth%]">
+                        <input type="hidden" name="endingDay" value="[%endingDay%]">
+                        <input type="hidden" name="geogdesc" value="[%geogdesc%]">
+                        <input type="hidden" name="useSiteCoord" value="[%useSiteCoord%]">
+                        <input type="hidden" name="latDeg1" value="[% latDeg1 %]">
+                        <input type="hidden" name="latMin1" value="[%latMin1%]">
+                        <input type="hidden" name="latSec1" value="[%latSec1%]">
+                        <input type="hidden" name="hemisphLat1" value="[%hemisphLat1%]">	
+                        <input type="hidden" name="longDeg1" value="[% longDeg1 %]">
+                        <input type="hidden" name="longMin1" value="[%longMin1%]">
+                        <input type="hidden" name="longSec1" value="[%longSec1%]">
+                        <input type="hidden" name="hemisphLong1" value="[%hemisphLong1%]">
+                        <input type="hidden" name="latDeg2" value="[%latDeg2%]">
+                        <input type="hidden" name="latMin2" value="[%latMin2%]">
+                        <input type="hidden" name="latSec2" value="[%latSec2%]">
+                        <input type="hidden" name="hemisphLat2" value="[%hemisphLat2%]">	
+                        <input type="hidden" name="longDeg2" value="[%longDeg2%]">
+                        <input type="hidden" name="longMin2" value="[%longMin2%]">
+                        <input type="hidden" name="longSec2" value="[%longSec2%]">
+                        <input type="hidden" name="hemisphLong2" value="[%hemisphLong2%]">
+                        <input type="hidden" name="taxaCount" value="[%taxaCount%]">
+                        [% numTaxa = 0 %]
+                        [% IF taxaCount > 0 %]
+                            [% numTaxa = taxaCount %]
+                        [% END %]
+                        [% cnt = 1 %]
+                        [% WHILE cnt <= numTaxa %]
+                            [% SET trn = "taxonRankName${cnt}" %]
+                            [% SET trv = "taxonRankValue${cnt}" %]
+                            <input type="hidden" name="[% trn %]" value="[% $trn %]">
+                            <input type="hidden" name="[% trv %]" value="[% $trv %]">
+                            [% cnt = cnt + 1 %]
+                        [% END %]
+                        <input type="hidden" name="taxaAuth" value="[%taxaAuth%]">
+                      
+                        <input type="hidden" name="methodTitle" value="[%methodTitle%]">
+                        [% FOREACH para = methodPara %]
+                            <input type="hidden" name="methodPara" value="[%para%]">
+                        [% END %]
+                        <input type="hidden" name="studyExtentDescription" value="[%studyExtentDescription%]">
+                        <input type="hidden" name="samplingDescription" value="[%samplingDescription%]">
+                        <input type="hidden" name="fileCount" value="[%fileCount%]">
+                        <input type="hidden" name="upCount" value="[%upCount%]">
+                        [% fCount = 0 %]
+                        [% IF upCount > 0 %]
+                            [% fCount = upCount %]
+                        [% END %]
+
+                        [% cnt = 0 %]
+                        [% WHILE cnt < fCount %]
+                            [% SET fileSum = "upload_${cnt}" %]
+                            [% SET fileName = "uploadname_${cnt}" %]
+                            [% SET fileType = "uploadtype_${cnt}" %]
+                            [% SET filePerm = "uploadperm_${cnt}" %]
+
+                            [% IF fileSum %]
+
+                                <input type="hidden" name="[% fileSum %]" value="[% $fileSum %]">
+                                <input type="hidden" name="[% fileName %]" value="[% $fileName %]">
+                                <input type="hidden" name="[% fileType %]" value="[% $fileType %]">
+                                <input type="hidden" name="[% filePerm %]" value="[% $filePerm %]">
+                            [% END %]
+                            [% cnt = cnt + 1 %]
+                        [% END %]
+                 
+                     <table class="intro" cellpadding="8" cellspacing="0">
+                        <tr><td align="left">
+                            <span class="regtext">Click the button below to return to the form and fill in the required fields.</span>
+                            <span class="redbold">Do NOT use the back button on your browser.</span>
+                            <span class="regtext">Submit the description again when you are finished.</span>
+                        </td></tr>
+                            <tr>
+								<td align="left">
+									<input type="submit" value="Return to Form"/>
+								</td>
+							</tr>
+                        </table>
+                             
+                    </form>
+                [% END %]
+            [% END %]
+        [% END %]
+    [% END %]
+[% INCLUDE $templates.footer %]

Property changes on: lib/style/common/templates/metacatui/genericResponse.tmpl
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: lib/style/common/templates/metacatui/deleteData.tmpl
===================================================================
--- lib/style/common/templates/metacatui/deleteData.tmpl	(nonexistent)
+++ lib/style/common/templates/metacatui/deleteData.tmpl	(revision 7867)
@@ -0,0 +1,89 @@
+<!--
+  *  '$RCSfile$'
+  *    Copyright: 2000 Regents of the University of California and the
+  *               National Center for Ecological Analysis and Synthesis
+  *  For Details: http://www.nceas.ucsb.edu/
+  *
+  *   '$Author: cjones $'
+  *     '$Date: 2009-12-10 12:59:28 -0800 (Thu, 10 Dec 2009) $'
+  * 
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 2 of the License, or
+  * (at your option) any later version.
+  *
+  * This program is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  * GNU General Public License for more details.
+  *
+  * You should have received a copy of the GNU General Public License
+  * along with this program; if not, write to the Free Software
+  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+-->
+
+[% INCLUDE $templates.header %]
+
+<table class="intro" cellpadding="3" cellspacing="0">
+<tr><td align="left"><span class="regtext">You have requested deletion of a data set description entered in the [% config.abbrev %] Data Registry Form. 
+Please enter your username, organization, and password to delete this document.</span><p>&nbsp;</p>
+
+<form action="[% cgiPrefix %]/register-dataset.cgi" method="post">
+  <input type="hidden" name="cfg" value="[% cfg %]">
+  <input type="hidden" name="docid" value="[% docid %]">
+  <input type="hidden" name="stage" value="delete_confirm"> 
+    <table cellspacing="0" border="0" cellpadding="9" width="350" align="left">
+        <tr class="sectbody">
+	  <td>
+	    <font size="-1"><b>
+	      Username: 
+	    </b></font></td>
+         <td>
+	    <input type="TEXT" name="username">
+	  </td></tr>
+	<tr class="sectbody">
+	  <td>
+	    <font size="-1"><b> 	
+	      Organization: 
+	    </b></font></td>
+	  <td>
+	    <select name="organization">
+                <option value="NCEAS">NCEAS</option>
+                <option value="KU">KU</option>
+                <option value="LTER">LTER</option>
+                <option value="OBFS">OBFS</option>
+                <option value="OSUSB">OSUSB</option>
+                <option value="PARC">PARC</option>
+                <option value="PISCO">PISCO</option>
+                <option value="SDSC">SDSC</option>
+                <option value="UCNRS">UCNRS</option>
+                <option value="unaffiliated">unaffiliated</option>
+	    </select></td></tr>
+	<tr class="sectbody">
+	  <td>
+	    <font size="-1"><b> 	
+	      Password: 
+	    </b></font>
+          </td>
+	  <td>
+	    <input type="PASSWORD" name="password">
+	  </td></tr>
+      </table>
+</td></tr></table>
+<p>
+<hr>
+</p>
+<table class="intro" cellspacing="0" border="0" cellpadding="9">
+  <tr> 
+    <td> 
+      <font size="-1"><b>Are you sure you want to delete this document?</b></font> 
+      <p> 
+        <input type="SUBMIT" value="Delete document" name="deleteData">
+        <input type="SUBMIT" value="   Cancel  " name="cancelData">
+      </p>
+    </td>
+  </tr>
+</table>
+</form>
+<p></p>
+[% INCLUDE $templates.footer %]

Property changes on: lib/style/common/templates/metacatui/deleteData.tmpl
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: lib/style/common/templates/metacatui/loginForm.tmpl
===================================================================
--- lib/style/common/templates/metacatui/loginForm.tmpl	(nonexistent)
+++ lib/style/common/templates/metacatui/loginForm.tmpl	(revision 7867)
@@ -0,0 +1,146 @@
+[% IF cfg == 'nceas' %]
+  [% INCLUDE "nceasHeader.tmpl" %]
+[% ELSIF cfg == 'parc' %]
+  [% INCLUDE "parcHeader.tmpl" %]
+[% ELSE %]
+  [% INCLUDE "genericHeader.tmpl" %]
+[% END %]
+      <script language="JavaScript">
+function submitform(formObj) {
+
+  if (trim(formObj.elements["loginAction"].value)!="Login") return true;
+  //trim username & passwd:
+  var username = trim(formObj.elements["uid"].value);
+  var organization  = trim(formObj.elements["organization"].value);
+  var password      = trim(formObj.elements["password"].value);
+
+  if (username=="") {
+    alert("You must type a username. \n"+popupMsg);
+        formObj.elements["uid"].focus();
+    return false;
+  }
+
+  if (organization=="") {
+    alert("You must select an organization. \n"+popupMsg);
+        formObj.elements["organization"].focus();
+    return false;
+  }
+
+  if (password=="") {
+    alert("You must type a password. \n"+popupMsg);
+        formObj.elements["password"].focus();
+    return false;
+  }
+
+  formObj.username.value="uid="+formObj.elements["uid"].value+",o="+formObj.elements["organization"].value+",dc=ecoinformatics,dc=org";
+  return true;
+}
+
+function trim(stringToTrim) {
+  return stringToTrim.replace(/^\s*/, '').replace(/\s*$/,'');
+}
+      </script>
+  <br />
+      [% IF message != '' %]
+			<p class="redbold">[% message %]</p>
+			</br>
+		[%IF showInstructions %]
+	  	[%IF cfg =='esa' %]
+				<p><strong>Steps for registering an ESA data set</strong></p>
+          
+        
+				<p><span class="greenbold">Step 1: Create an Account</span> <br>
+		   			Create an account by registering with the <a href="[% cgiPrefix %]/ldapweb.cgi?cfg=[%cfg%]">KNB</a>.
+
+					Many scientists will already have accounts in the KNB, especially those 
+					from institutions like NCEAS and LTER. If you already have an account 
+					please use that existing account rather than creating a new one.</p>
+				<p><span class="greenbold">Step 2: Login</span><br />
+		   			Login to the ESA Registry website with the account you created.</p>
+				<p><span class="greenbold">Step 3: Register Data</span><br />
+					Fill out the <a href="http://data.esa.org/esa/cgi-bin/register-dataset.cgi?cfg=esa">ESA Data Registry Form</a>
+					A page titled "Success" will appear when the form has been successfully submitted.             </p>
+				<p> <span class="greenbold">Step 4: Look for Feedback</span> <br />
+					After you submit, watch for e-mail sent by the ESA moderator regarding whether your data set has been accepted.</p>
+				<br /><br />
+		[% END %]
+		[% END %]
+	  
+      [% END %]
+  <menu>
+<form method="post" action="[% cgiPrefix %]/register-dataset.cgi" onsubmit="return submitform(this);" >
+    <input type="hidden" name="stage" value="login"> 
+    <input type="hidden" name="username" value=""> 
+    <input type="hidden" name="cfg" value="[%cfg%]"> 
+
+    <table>
+
+      <tr valign="middle">
+        <td align="left" valign="middle" class="text_plain">
+        Username:</td>
+
+        <td width="173" align="left" class="text_plain" style=
+        "padding-top: 2px; padding-bottom: 2px;"><input name="uid"
+        type="text" style="width: 140px;" value=""></td>
+      </tr>
+
+      <tr valign="middle">
+        <td height="28" align="left" valign="middle" class=
+        "text_plain">Organization:</td>
+
+        <td align="left" class="text_plain" style=
+        "padding-top: 2px; padding-bottom: 2px;"><select name=
+        "organization" style="width:140px;">
+          <option value=""    selected>&#8212; choose one &#8212;</option>
+          <option value="NCEAS"       >NCEAS</option>
+          <option value="LTER"        >LTER</option>
+          <option value="KU"          >KU</option>
+          <option value="OBFS"        >OBFS</option>
+          <option value="OSUSB"       >OSUSB</option>
+          <option value="PARC"        >PARC</option>
+          <option value="PISCO"       >PISCO</option>
+          <option value="SAEON"       >SAEON</option>
+          <option value="SANParks"    >SANParks</option>
+          <option value="SDSC"        >SDSC</option>
+          <option value="UCNRS"       >UCNRS</option>
+          <option value="unaffiliated">unaffiliated</option>
+        </select></td>
+      </tr>
+
+      <tr valign="middle">
+        <td width="85" align="left" valign="middle" class=
+        "text_plain">Password:</td>
+
+        <td colspan="2" align="left" class="text_plain" style=
+        "padding-top: 2px; padding-bottom: 2px;">
+          <table width="100%" border="0" cellpadding="0"
+          cellspacing="0">
+            <tr>
+              <td width="150" align="left"><input name="password"
+              type="password" maxlength="50" style="width:140px;"
+              value=""></td>
+
+              <td align="center" class="buttonBG_login">
+              <input type="submit" name="loginAction" value="Login"
+              class="button_login"></td>
+
+              <td align="left">&nbsp;</td>
+            </tr>
+          </table>
+        </td>
+      </tr>
+    </table>
+  </form>
+  </menu>
+  
+  Dont have an account yet? <a href="[% cgiPrefix %]/ldapweb.cgi?cfg=[%cfg%]">Create a new account</a>
+  <br />
+  Forgot your password? <a href="[% cgiPrefix %]/ldapweb.cgi?cfg=[%cfg%]&amp;stage=resetpass">Reset your password</a>
+
+[% IF cfg == 'nceas' %]
+  [% INCLUDE "nceasFooter.tmpl" %]
+[% ELSIF cfg == 'parc' %]
+  [% INCLUDE "parcFooter.tmpl" %]
+[% ELSE %]
+  [% INCLUDE "genericFooter.tmpl" %]
+[% END %]  

Property changes on: lib/style/common/templates/metacatui/loginForm.tmpl
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
