Project

General

Profile

1
<%@ page    language="java" %>
2
<%@ page isELIgnored="false" %>
3
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
4
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
5

    
6
<%
7
 /**
8
  *  '$RCSfile: index.jsp,v $'
9
  *    Copyright: 2000 Regents of the University of California and the
10
  *               National Center for Ecological Analysis and Synthesis
11
  *  For Details: http://www.nceas.ucsb.edu/
12
  *
13
  *   '$Author: cjones $'
14
  *     '$Date: 2004/10/07 07:24:38 $'
15
  * '$Revision: 1.2 $'
16
  * 
17
  * adapted for displaying sbc's pubs list
18
  * 2005-july -- mob --
19
  *
20
  * This program is free software; you can redistribute it and/or modify
21
  * it under the terms of the GNU General Public License as published by
22
  * the Free Software Foundation; either version 2 of the License, or
23
  * (at your option) any later version.
24
  *
25
  * This program is distributed in the hope that it will be useful,
26
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28
  * GNU General Public License for more details.
29
  *
30
  * You should have received a copy of the GNU General Public License
31
  * along with this program; if not, write to the Free Software
32
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
33
  *
34
  */
35
%>
36
<%@ include file="templates/jsp/portal_settings.jsp"%>
37
<%@ include file="templates/jsp/include_session_vars.jsp"%>
38
<%
39
///////////////////////////////////////////////////////////////////////////////
40
// NOTE:
41
//
42
//  GLOBAL CONSTANTS (SETTINGS SUCH AS METACAT URL, LDAP DOMAIN	AND DEBUG
43
//  SWITCH) ARE ALL IN THE INCLUDE FILE "portal_settings.jsp"
44
///////////////////////////////////////////////////////////////////////////////
45
%>
46

    
47
<?xml version="1.0" encoding="utf-8"?>
48
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
49

    
50
<html>
51
  <head>
52
    <title>SBCLTER Publications Catalog</title>
53
    <style type="text/css">
54
        @import url("http://sbc.lternet.edu/w3_recommended.css");
55
        @import url("http://sbc.lternet.edu/sbclter_wrapper.css");
56
    </style>
57
    <meta http-equiv="Content-Type" content="text/html" charset="utf-8" />
58
    <link rel="stylesheet" type="text/css"
59
          href="@style-skins-path@/@default-style@/@default-style@.css" />
60
  <!-- thanks to son-of-suckerfish javascript for making the hover menus work in IE
61
  see http://www.htmldog.com/articles/suckerfish/dropdowns/  -->
62
  <script type="text/javascript"><!--//--><![CDATA[//><!--
63
     sfHover = function() {
64
        var sfEls = document.getElementById("nav").getElementsByTagName("li");
65
        for (var i=0; i<sfEls.length; i++) {
66
        sfEls[i].onmouseover=function() {
67
            this.className+=" sfhover";
68
             }
69
            sfEls[i].onmouseout=function() {
70
               this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
71
             }
72
        }
73
     }
74
     if (window.attachEvent) window.attachEvent("onload", sfHover);
75
    //--><!]]>
76
  </script>
77

    
78
  <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
79
  </script>
80
  <script type="text/javascript">
81
    uacct = "UA-2011494-1";
82
    urchinTracker();
83
  </script>
84
          
85
          
86
  </head>
87

    
88
  <body>
89
  <c:import url="./templates/xsl/sbcCitationList.xsl" charEncoding="utf-8" var="stylesheet" />
90
  
91
   <!-- this statement for importing directly into a variable.  -->
92
   <%--
93
  <c:import url="@systemidserver@/@servlet-path@?action=read&qformat=xml&docid=sbc_pubs_test.1" charEncoding="UTF-8" var="xmldoc" />  
94
  --%>
95
   
96
  <!-- this statement used when using reader -->
97
  <c:import url="@systemidserver@/@servlet-path@?action=read&qformat=xml&docid=sbc_pubs_test.1" 
98
	varReader="xmlSource" >
99
	<x:parse var="xmldoc" xml="${xmlSource}" scope="application" />
100
  </c:import>
101
  
102
 <%--
103
  saving these lines. Could import both the xml and the style sheet and 
104
  tranform here, if that's all you're going to do. but if need to add the 
105
  filter, then you have to parse if first (above) and transform after you 
106
  have input from the filter box
107
    <c:import url="http://sbcdata.lternet.edu/catalog/metacat?action=read&qformat=xml&docid=sbc_pubs_test.1" charEncoding="utf-8" var="xmldoc" />
108
  <x:transform xslt="${stylesheet}" doc="${xmldoc}">
109
  </x:transform>
110
--%>
111
 
112
<!-- include the header frag -->
113
<jsp:include page="sbc_pageheader.htmlf" />
114

    
115
    <!-- begin page content -->
116
    <div id="content">
117
      <div class="content-area-dense">
118
	<table class="group">
119
	<tr>
120
	<td class="forty_percent">
121
        
122
	<div class="skipto-box">Skip to:<br>
123
 		<a class="submenu" href="#INPRESS">In Press</a> | 
124
 		<a class="submenu" href="#ART_CHAP">Articles and Chapters</a> |
125
 		<a class="submenu" href="#BOOKS">Books</a> |
126
		<a class="submenu" href="#THESES">Theses</a>
127
        <br/>
128
		<a class="submenu" href="#REP_CP">Reports</a> |
129
		<a class="submenu" href="#REP_CP">Conference Proceedings</a>
130
        <br/>
131
		<a class="submenu" href="#AV">Audio Visual</a> |
132
		<a class="submenu" href="#PRESENTATIONS">Presentations</a>
133
	</div> <!-- end of class skip-to -->
134
       
135
	</td>
136
	<td class="sixty_percent">
137
	<!-- begin login form area --> 
138
      <!-- end login form area -->
139
      
140
      <!-- begin search box area -->
141
      <%-- 
142
      code snippets in searchbox were lifted from _JavaServer Pages_  by
143
      Hans Bergsten, 3rd ed., O'Reilly (wolf book, ch 15) --%>
144
      
145
      <br/>            
146
      
147
	<%-- comment out in no-filter version 
148
	  
149
     <!--  Create a list of unique author-surNames in the XML feed  -->   
150
	<jsp:useBean id="uniqueCats" class="java.util.TreeMap" />
151
    <x:forEach select="$xmldoc/citationList/citation/creator/individualName/surName" var="category">
152
    <!-- convert the XPath node to a Java String -->
153
      <x:set var="catName" select="string($category)" />
154
      <c:set target="${uniqueCats}" property="${catName}" value="" />
155
    </x:forEach>
156
	--%>
157
   
158
     
159
    <div id="search-box_right">
160
     <em>Search box returning soon</em>
161
    
162
    <%-- 
163
	<!-- send list of unique authors to a select form -->
164
     <form action="publications.jsp">
165
       Select Author:
166
      <select name="selCat">
167
        <option value="ALL">SHOW ALL 
168
        <c:forEach items="${uniqueCats}" var="current">
169
          <option value="<c:out value="${current.key}" />"
170
            <c:if test="${param.selCat == current.key}">
171
              selected
172
            </c:if>>
173
            <c:out value="${current.key}" />
174
          </option>
175
        </c:forEach>
176
      </select>
177
      <input type="submit" value="Go">  
178
     </form>
179
     --%>
180
    </div>
181
    
182
    <!-- end search-box area -->
183
    
184
    
185
</td>
186
</tr>
187
</table>
188

    
189
<%--
190
    <!-- x:transform generates the rest of the page using pubs xml doc from metacat, 
191
    	xsl stylesheet, and the author selected above.  -->
192
    <c:choose>
193
    	<c:when test="${empty param.selCat || param.selCat == 'ALL'}">
194
		    <x:transform xslt="${stylesheet}" doc="${xmldoc}"/>
195
	</c:when>
196
	<c:otherwise>
197
		<x:transform xslt="${stylesheet}" doc="${xmldoc}">
198
	    		<x:param name="author" value="${param.selCat}"/>
199
		</x:transform>
200
	</c:otherwise>
201
    </c:choose>
202
    --%>
203
    
204
    
205
    <!-- this is the simple version -->
206
<x:transform xslt="${stylesheet}" doc="${xmldoc}"/>
207
    
208
    
209

    
210
        </div>  <!-- end id=content-area  -->
211

    
212
    </div> <!-- end id=content  -->
213

    
214

    
215

    
216
  </body>
217
</html>
(7-7/14)