<%@ page language="java" %> <%@ page import="java.util.Set,java.util.HashMap,java.util.Map,java.util.SortedMap,java.util.Vector" %> <%@ page import="edu.ucsb.nceas.utilities.PropertiesMetaData" %> <%@ page import="edu.ucsb.nceas.utilities.MetaDataGroup,edu.ucsb.nceas.utilities.MetaDataProperty" %> <% /** * '$RCSfile$' * Copyright: 2008 Regents of the University of California and the * National Center for Ecological Analysis and Synthesis * For Details: http://www.nceas.ucsb.edu/ * * '$Author: walker $' * '$Date: 2013-09-23 18:48:43 +0000 (Mon, 23 Sep 2013) $' * '$Revision: 8263 $' * * 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 */ %> <% Vector skinNames = (Vector)request.getAttribute("skinNameList"); String defaultStyle = (String)request.getAttribute("defaultStyle"); %> Skins Configuration <%@ include file="./head-section.jsp"%> <%@ include file="./header-section.jsp"%>

Skins Configuration

<%@ include file="./page-message-section.jsp"%>

Skins Configuration

NOTE: Metacat v2.2.0 includes a new mechanism for customizing the look and feel of your Metacat deployment. MetacatUI themes can be deployed separately from the Metacat server allowing easier independent user interface customization. See the Metacat documentation for more information on using this feature.

Choose and configure the skins that will be available in this instance of Metacat

<% HashMap> allSkinProperties = (HashMap>)request.getAttribute("skinProperties"); HashMap allMetaData = (HashMap)request.getAttribute("metadataMap"); for (String skinName : skinNames) { %>
checked="yes" <% } %> name="<%= skinName %>.cb" id="<%= skinName %>.cb"onClick="toggleHiddenTable(this, 'hiding-section-<%= skinName %>')"/> <% if (skinName.equals(defaultStyle)) { %>
(default)
<% } else { %> <% } %>
style="display: block;" <% } %> id="hiding-section-<%= skinName %>"> <% HashMap skinProperties = allSkinProperties.get(skinName); PropertiesMetaData metaData = (PropertiesMetaData)allMetaData.get(skinName); Map metaDataGroups = metaData.getGroups(); Set groupKeys = metaDataGroups.keySet(); for (Integer groupkey : groupKeys) { if (groupkey == 0) { continue; } SortedMap propertyMap = metaData.getPropertiesInGroup(groupkey); Set propertyKeys = propertyMap.keySet(); %> checked <% } %> name="application.default-style" id="<%= skinName %>-radio" value="<%= skinName %>" onChange="toggleHiddenDefaultText('default-flag', '<%= skinName %>')"/> <% for (Integer propertyKey : propertyKeys) { %> <% MetaDataProperty metaDataProperty = propertyMap.get(propertyKey); String fieldType = metaDataProperty.getFieldType(); if (fieldType.equals("select")) { %>
<% if (metaDataProperty.getDescription() != null) { %>
[<%= metaDataProperty.getDescription() %>]
<% } } else if (fieldType.equals("password")) { %>
<% if (metaDataProperty.getDescription() != null) { %>
[<%= metaDataProperty.getDescription() %>]
<% } } else if (fieldType.equals("checkbox")) { %>
checked="yes" <% } %> />
<% if (metaDataProperty.getDescription() != null) { %>
[<%= metaDataProperty.getDescription() %>]
<% } } else { %>
<% if (metaDataProperty.getDescription() != null) { %>
[<%= metaDataProperty.getDescription() %>]
<% } } } } %>
<% } %>
<%@ include file="./footer-section.jsp"%>