PageRenderTime 27ms CodeModel.GetById 14ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/alaspatial/src/main/webapp/WEB-INF/views/layers/public_list.jsp

http://alageospatialportal.googlecode.com/
JavaServer Pages | 334 lines | 292 code | 31 blank | 11 comment | 2 complexity | 2c441fe848dad7163385bd2d29b75890 MD5 | raw file
  1<%@page contentType="text/html" pageEncoding="UTF-8"%>
  2<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
  4<!DOCTYPE html>
  5<html dir="ltr" lang="en-US">
  6
  7    <head profile="http://gmpg.org/xfn/11">
  8        <meta name="google-site-verification" content="MdnA79C1YfZ6Yx2qYOXWi_TYFfUvEJOQAmHNaeEWIts" />
  9        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 10        <meta name="description" content="The Atlas of Living Australia provides tools to enable users of biodiversity information to find, access, combine and visualise data on Australian plants and animals"/>
 11        <title>Layer list |  Atlas of Living Australia</title>
 12
 13        <link rel="stylesheet" href="http://www.ala.org.au/wp-content/themes/ala/style.css" type="text/css" media="screen" />
 14        <link rel="icon" type="image/x-icon" href="http://www.ala.org.au/wp-content/themes/ala/images/favicon.ico" />
 15        <link rel="shortcut icon" type="image/x-icon" href="http://www.ala.org.au/wp-content/themes/ala/images/favicon.ico" />
 16
 17        <link rel="stylesheet" type="text/css" media="screen" href="http://www.ala.org.au/wp-content/themes/ala/css/sf.css" />
 18        <link rel="stylesheet" type="text/css" media="screen" href="http://www.ala.org.au/wp-content/themes/ala/css/highlights.css" />
 19
 20        <link rel="stylesheet" type="text/css" media="screen" href="http://www.ala.org.au/wp-content/themes/ala/css/jquery.autocomplete.css" />
 21        <link rel="stylesheet" type="text/css" media="screen" href="http://www.ala.org.au/wp-content/themes/ala/css/search.css" />
 22        <link rel="stylesheet" type="text/css" media="screen" href="http://www.ala.org.au/wp-content/themes/ala/css/skin.css" />
 23        <script language="JavaScript" type="text/javascript" src="http://www.ala.org.au/wp-content/themes/ala/scripts/iframe.js"></script>
 24        <link rel="alternate" type="application/rss+xml" title="Atlas of Living Australia &raquo; Feed" href="http://www.ala.org.au/feed/" />
 25        <link rel="alternate" type="application/rss+xml" title="Atlas of Living Australia &raquo; Comments Feed" href="http://www.ala.org.au/comments/feed/" />
 26        <link rel='stylesheet' id='contact-form-7-css'  href='http://www.ala.org.au/wp-content/plugins/contact-form-7/styles.css?ver=2.3.1' type='text/css' media='all' />
 27        <script type='text/javascript' src='http://www.ala.org.au/wp-includes/js/jquery/jquery.js?ver=1.4.2'></script>
 28        <script type='text/javascript' src='http://www.ala.org.au/wp-content/plugins/menubar-templates/Superfish/superfish.js?ver=3.0.1'></script>
 29
 30        <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.ala.org.au/xmlrpc.php?rsd" />
 31        <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://www.ala.org.au/wp-includes/wlwmanifest.xml" />
 32        <link rel='index' title='Atlas of Living Australia' href='http://www.ala.org.au/' />
 33        <link rel='up' title='Explore' href='http://www.ala.org.au/explore/' />
 34        <link rel='prev' title='Share Photos' href='http://www.ala.org.au/share-images/' />
 35        <link rel='next' title='Species Maps Help' href='http://www.ala.org.au/explore/species-maps/species-maps-help/' />
 36        <meta name="generator" content="ALA Spatial Portal" />
 37        <link rel='canonical' href='http://www.ala.org.au/explore/species-maps/' />
 38        <script type="text/javascript">
 39            //<![CDATA[
 40            var _wpcf7 = { cached: 1 };
 41            //]]>
 42        </script>
 43
 44        <!-- WP Menubar 4.8: start CSS -->
 45        <!-- WP Menubar 4.8: end CSS -->
 46        <style type="text/css">.broken_link, a.broken_link {
 47                text-decoration: line-through;
 48            }</style>	
 49        <!-- This style is used to (force) wrap a word correctly in a table -->
 50        <style type="text/css">.wrapword{
 51                white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
 52                white-space: -pre-wrap;      /* Opera 4-6 */
 53                white-space: -o-pre-wrap;    /* Opera 7 */
 54                white-space: pre-wrap;       /* css-3 */
 55                word-wrap: break-word;       /* Internet Explorer 5.5+ */
 56            }</style>
 57
 58        <script language="JavaScript" type="text/javascript" src="http://www.ala.org.au/wp-content/themes/ala/scripts/jquery.dimensions.js"></script>
 59        <script language="JavaScript" type="text/javascript" src="http://www.ala.org.au/wp-content/themes/ala/scripts/jquery.mousewheel.min.js"></script>
 60        <script language="JavaScript" type="text/javascript" src="http://www.ala.org.au/wp-content/themes/ala/scripts/hoverintent-min.js"></script>
 61        <script language="JavaScript" type="text/javascript" src="http://www.ala.org.au/wp-content/themes/ala/scripts/superfish/superfish.js"></script>
 62        <script language="JavaScript" type="text/javascript" src="http://www.ala.org.au/wp-content/themes/ala/scripts/jquery.autocomplete.js"></script>
 63        <script language="JavaScript" type="text/javascript" src="http://www.ala.org.au/wp-content/themes/ala/scripts/uservoice.js"></script>
 64        <script language="JavaScript" type="text/javascript" src="http://www.ala.org.au/wp-content/themes/ala/scripts/jquery.jcarousel.min.js"></script>
 65
 66        <link rel="stylesheet" type="text/css" href="http://www.ala.org.au/wp-content/themes/ala/scripts/fancybox/jquery.fancybox-1.3.1.css" media="screen" />
 67        <script type="text/javascript" src="http://www.ala.org.au/wp-content/themes/ala/scripts/fancybox/jquery.fancybox-1.3.1.pack.js"></script>
 68
 69        <script type="text/javascript">
 70            jQuery(document).ready(function($){
 71                $("a#asterisk").fancybox({
 72                    'hideOnContentClick' : false,
 73                    'titleShow' : false,
 74                    'autoDimensions' : false,
 75                    'width' : 600,
 76                    'height' : 350
 77                });
 78                $("a.pop-up").fancybox({
 79                    'hideOnContentClick' : false,
 80                    'titleShow' : false,
 81                    'autoDimensions' : false,
 82                    'width' : 550,
 83                    'height' : 100
 84                });
 85            });
 86        </script>
 87        <script type="text/javascript">
 88
 89            // initialise plugins
 90            jQuery(function(){
 91                jQuery('ul.sf').superfish( {
 92                    delay:500,
 93                    autoArrows:false,
 94                    dropShadows:false
 95                });
 96                /**
 97                 * We use the initCallback callback
 98                 * to assign functionality to the controls
 99                 */
100                function mycarousel_initCallback(carousel) {
101                    jQuery('.jcarousel-control a').bind('click', function() {
102                        carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
103                        return false;
104                    });
105
106                    jQuery('#mycarousel-next').bind('click', function() {
107                        carousel.next();
108                        return false;
109                    });
110
111                    jQuery('#mycarousel-prev').bind('click', function() {
112                        carousel.prev();
113                        return false;
114                    });
115                };
116
117                // Ride the carousel...
118                jQuery(document).ready(function() {
119                    jQuery("#mycarousel").jcarousel({
120                        scroll: 6,
121                        initCallback: mycarousel_initCallback
122                        // This tells jCarousel NOT to autobuild prev/next buttons
123                        //buttonNextHTML: null,
124                        //buttonPrevHTML: null
125                    });
126                });
127
128                jQuery("form#search-form input#search").autocomplete('http://bie.ala.org.au/search/auto.jsonp', {
129                    extraParams: {limit: 100},
130                    dataType: 'jsonp',
131                    parse: function(data) {
132                        var rows = new Array();
133                        data = data.autoCompleteList;
134                        for(var i=0; i<data.length; i++){
135                            rows[i] = {
136                                data:data[i],
137                                value: data[i].matchedNames[0],
138                                result: data[i].matchedNames[0]
139                            };
140                        }
141                        return rows;
142                    },
143                    matchSubset: false,
144                    formatItem: function(row, i, n) {
145                        return row.matchedNames[0];
146                    },
147                    cacheLength: 10,
148                    minChars: 3,
149                    scroll: false,
150                    max: 10,
151                    selectFirst: false
152                });
153                jQuery("form#search-inpage input#search").autocomplete('http://bie.ala.org.au/search/auto.jsonp', {
154                    extraParams: {limit: 100},
155                    dataType: 'jsonp',
156                    parse: function(data) {
157                        var rows = new Array();
158                        data = data.autoCompleteList;
159                        for(var i=0; i<data.length; i++){
160                            rows[i] = {
161                                data:data[i],
162                                value: data[i].matchedNames[0],
163                                result: data[i].matchedNames[0]
164                            };
165                        }
166                        return rows;
167                    },
168                    matchSubset: false,
169                    formatItem: function(row, i, n) {
170                        return row.matchedNames[0];
171                    },
172                    cacheLength: 10,
173                    minChars: 3,
174                    scroll: false,
175                    max: 10,
176                    selectFirst: false
177                });
178            });
179        </script>
180    <body id="page-layerlist" class="">
181        <div id="wrapper">
182            <div id="banner">
183                <div id="logo">
184
185                    <a href="http://www.ala.org.au" title="Atlas of Living Australia home"><img src="http://www.ala.org.au/wp-content/themes/ala/images/ala_logo.png" width="215" height="80" alt="Atlas of Living Ausralia logo" /></a>
186                </div><!--close logo-->
187                <div id="nav">
188                    <!-- WP Menubar 4.8: start menu nav-site-loggedout, template Superfish, CSS  -->
189
190
191                    <ul class="sf"><li class="nav-home"><a href="http://www.ala.org.au/" ><span>Home</span></a></li><li class="nav-explore selected"><a href="http://www.ala.org.au/explore/" ><span>Explore</span></a><ul><li><a href="http://biocache.ala.org.au/explore/your-area" ><span>Your Area</span></a></li><li><a href="http://bie.ala.org.au/regions/" ><span>Regions</span></a></li><li><a href="http://www.ala.org.au/explore/species-maps/" ><span>Species Maps</span></a></li><li><a href="http://collections.ala.org.au/public/map" ><span>Natural History Collections</span></a></li><li><a href="http://www.ala.org.au/explore/themes/" ><span>Themes & Case Studies</span></a></li></ul></li><li class="nav-tools"><a href="http://www.ala.org.au/tools-services/" ><span>Tools</span></a><ul><li><a href="http://www.ala.org.au/tools-services/citizen-science/" ><span>Citizen Science</span></a></li><li><a href="http://www.ala.org.au/tools-services/identification-tools/" ><span>Identification Tools</span></a></li><li><a href="http://www.ala.org.au/tools-services/sds/" ><span>Sensitive Data Service</span></a></li><li><a href="http://www.ala.org.au/tools-services/spatial-analysis/" ><span>Spatial Analysis</span></a></li><li><a href="http://www.ala.org.au/tools-services/species-name-services/" ><span>Taxon Web Services</span></a></li><li><a href="http://www.ala.org.au/tools-services/images/" ><span>Images</span></a></li><li><a href="http://www.ala.org.au/tools-services/onlinedesktop-tools-review/" ><span>Online & Desktop Tools Review </span></a></li></ul></li><li class="nav-share"><a href="http://www.ala.org.au/share/" title="Share - links, images, images, literature, your time"><span>Share</span></a><ul><li><a href="http://www.ala.org.au/share/share-links/" ><span>Share links, ideas, information</span></a></li><li><a href="http://www.ala.org.au/share/share-data/" ><span>Share Datasets</span></a></li><li><a href="http://www.ala.org.au/share/about-sharing/" ><span>About Sharing</span></a></li></ul></li><li class="nav-support"><a href="http://www.ala.org.au/support/" ><span>Support</span></a><ul><li><a href="http://www.ala.org.au/support/contact-us/" ><span>Contact Us</span></a></li><li><a href="http://www.ala.org.au/support/get-started/" ><span>Get Started</span></a></li><li><a href="http://www.ala.org.au/support/user-feedback/" ><span>User Feedback</span></a></li><li><a href="http://www.ala.org.au/support/faq/" ><span>Frequently Asked Questions</span></a></li></ul></li><li class="nav-contact"><a href="http://www.ala.org.au/support/contact-us/" ><span>Contact Us</span></a></li><li class="nav-about"><a href="http://www.ala.org.au/about/" ><span>About the Atlas</span></a><ul><li><a href="http://www.ala.org.au/about/progress/" ><span>A Work In Progress</span></a></li><li><a href="http://www.ala.org.au/about/people/" ><span>Working Together</span></a></li><li><a href="http://www.ala.org.au/about/contributors/" ><span>Atlas Contributors</span></a></li><li><a href="http://www.ala.org.au/about/progress/" ><span>Project Time Line</span></a></li><li><a href="http://www.ala.org.au/about/program-of-projects/" ><span>Atlas Projects</span></a></li><li><a href="http://www.ala.org.au/about/international-collaborations/" ><span>Associated Projects</span></a></li><li><a href="http://www.ala.org.au/about/communications-centre/" ><span>Communications Centre</span></a></li><li><a href="http://www.ala.org.au/about/governance/" ><span>Atlas Governance</span></a></li><li><a href="http://www.ala.org.au/about/terms-of-use/" ><span>Terms of Use</span></a></li></ul></li><li class="nav-myprofile nav-right"><a href="https://auth.ala.org.au/cas/login?service=http://www.ala.org.au/wp-login.php?redirect_to=http://www.ala.org.au/my-profile/" ><span>My Profile</span></a></li><li class="nav-login nav-right"><a href="https://auth.ala.org.au/cas/login?service=http://www.ala.org.au/wp-login.php?redirect_to=http://www.ala.org.au/" ><span>Log in</span></a></li></ul>
192
193                    <!-- WP Menubar 4.8: end menu nav-site-loggedout, template Superfish, CSS  -->
194                </div><!--close nav-->
195                <div id="wrapper_search">
196                    <form id="search-form" action="http://bie.ala.org.au/search" method="get" name="search-form">
197                        <label for="search">Search</label>
198                        <input type="text" class="filled" id="search" name="q" title="Search the Atlas" placeholder="Search the Atlas" />
199                        <span class="search-button-wrapper"><input type="submit" class="search-button" id="search-button" alt="Search" value="Search" /></span>
200                    </form>
201
202                </div><!--close wrapper_search-->
203            </div><!--close banner-->
204            <div id="loginId" class="hide"></div>
205            <div style="display:none; text-align: left;">
206                <div id="search_record" style="text-align: left;">
207                    <h3>Enter the species' scientific or common name</h3>
208                    <div id="inpage_search">
209                        <form id="search-inpage" action="http://bie.ala.org.au/search" method="get" name="search-form">
210
211                            <label for="search">Search</label>
212                            <input type="text" class="filled" id="search" name="q" placeholder="e.g. Ornithorhynchus anatinus" />
213                            <span class="search-button-wrapper"><input type="submit" class="search-button" alt="Search" value="Search" /></span>
214                        </form>
215                    </div><!--close wrapper_search-->
216                </div>
217            </div><!--close lightbox-->
218            <div id="content">
219
220                <div id="header">
221                    <div id="breadcrumb"><a href="http://www.ala.org.au">Home</a> <a href="http://www.ala.org.au/explore/species-maps/">Spatial Portal</a> Layer list</div>
222                    <h1>Layer list</h1>
223                </div><!--close header-->
224
225                <c:choose>
226                    <c:when test="${empty param.q}">
227                        <c:set var="searchquery" value="" scope="request" />
228                    </c:when>
229                    <c:otherwise>
230                        <c:set var="searchquery" value="?q=${param.q}" scope="request" />
231                    </c:otherwise>
232                </c:choose>
233
234
235                <div class="section">
236
237                    <div>
238                        <form action="" method="get">
239                            <label for="q">Search layers:</label>
240                            <input type="text" id="q" name="q" value="${param.q}" />
241                            <input type="submit" class="button" value="GO" />
242                            <c:if test="${!empty param.q}">
243                                <input type="button" class="button" onclick="location.href='/layers'" value="Display all" />
244                            </c:if>
245                        </form>
246                    </div>
247
248                    <c:choose>
249                        <c:when test="${fn:length(layerList) > 0}">
250                            <ul>
251                                <li>Click on layer name to link to the metadata summary and links to full metadata record.</li>
252                                <li>Download as <a href="/layers.csv${searchquery}">CSV</a> | <a href="/layers.json${searchquery}">JSON</a></li>
253                                <!--  | <a href="/layers.xml${searchquery}">XML</a> -->
254                                <!--<li><a href="/layers.csv">Download as CSV</a></li>-->
255                            </ul>
256                            <table border="1">
257                                <tr style="height:220px">
258                                    <th>Classification 1</th>
259                                    <th>Classification 2</th>
260                                    <th>Display name</th>
261                                    <th>Short name</th>
262                                    <th>Description</th>
263                                    <th>Type</th>
264                                    <th>Metadata contact organization</th>
265                                    <th>Keywords</th>
266                                    <th>Preview</th>
267                                    <!-- <th>Reference date</th> -->
268                                </tr>
269                                <c:forEach items="${layerList}" var="layer" varStatus="status">
270                                    <tr>
271                                        <td>${layer.classification1}</td>
272                                        <td>${layer.classification2}</td>
273                                        <td><a href="/layers/more/${layer.name}">${layer.displayname}</a></td>
274                                        <td style="max-width:80px" class="wrapword">${layer.name}</td>
275                                        <td>${layer.description}</td>
276                                        <c:choose>
277                                            <c:when test="${layer.type eq 'Environmental'}">
278                                                <td>Environmental (gridded) ${layer.scale}</td>
279                                            </c:when>
280                                            <c:when test="${layer.type eq 'Contextual'}">
281                                                <td>Contextual (polygonal) ${layer.scale}</td>
282                                            </c:when>
283                                            <c:otherwise>
284                                                <td>${layer.type} ${layer.scale}</td>
285                                            </c:otherwise>
286                                        </c:choose>
287                                        <td>${layer.source}</td>
288                                        <td>${layer.keywords}</td>
289                                        <td>
290                                            <!--<img src="/output/layerthumbs/ALA:${layer.name}.jpeg" />-->
291                                            <img src="/geoserver/wms/reflect?layers=ALA:${layer.name}&width=200&height=200" />
292                                            <br />
293                                            <!--<a href="/geoserver/wms/kml?layers=ALA:${layer.name}">KML</a>-->
294                                        </td>
295                                        <!-- <td>${layer.citationdate}</td> -->
296                                    </tr>
297                                </c:forEach>
298                            </table>
299                            Download as <a href="/layers.csv${searchquery}">CSV</a> | <a href="/layers.json${searchquery}">JSON</a>
300                            <!--  | <a href="/layers.xml${searchquery}">XML</a> -->
301                        </c:when>
302                        <c:otherwise>
303                            <ul><li>No layers available</li></ul>
304                        </c:otherwise>
305                    </c:choose>
306                </div>
307
308
309            </div><!--close content-->
310            <div id="footer">
311                <div id="footer-nav">
312                    <ul id="menu-footer-site"><li id="menu-item-1046" class="menu-item menu-item-type-post_type menu-item-1046"><a href="http://www.ala.org.au/">Home</a></li>
313                        <li id="menu-item-8090" class="menu-item menu-item-type-post_type menu-item-8090"><a href="http://www.ala.org.au/explore/">Explore</a></li>
314                        <li id="menu-item-1051" class="menu-item menu-item-type-post_type menu-item-1051"><a href="http://www.ala.org.au/tools-services/">Tools</a></li>
315
316                        <li id="menu-item-8091" class="menu-item menu-item-type-post_type menu-item-8091"><a href="http://www.ala.org.au/share/">Share</a></li>
317                        <li id="menu-item-1050" class="menu-item menu-item-type-post_type current-page-ancestor menu-item-1050"><a href="http://www.ala.org.au/support/">Support</a></li>
318                        <li id="menu-item-1048" class="menu-item menu-item-type-post_type menu-item-1048"><a href="http://www.ala.org.au/support/contact-us/">Contact Us</a></li>
319                        <li id="menu-item-1047" class="menu-item menu-item-type-post_type menu-item-1047"><a href="http://www.ala.org.au/about/">About the Atlas</a></li>
320                        <li id="menu-item-1052" class="last menu-item menu-item-type-custom menu-item-1052"><a href="http://www.ala.org.au/wp-login.php">Log in</a></li>
321                    </ul>		<ul id="menu-footer-legal"><li id="menu-item-1045" class="menu-item menu-item-type-post_type menu-item-1045"><a href="http://www.ala.org.au/about/terms-of-use/">Terms of Use</a></li>
322                        <li id="menu-item-1042" class="menu-item menu-item-type-post_type menu-item-1042"><a href="http://www.ala.org.au/about/terms-of-use/citing-the-atlas/">Citing the Atlas</a></li>
323                        <li id="menu-item-12256" class="menu-item menu-item-type-custom menu-item-12256"><a href="http://www.ala.org.au/about/terms-of-use/privacy-policy/">Privacy Policy</a></li>
324
325                        <li id="menu-item-3090" class="last menu-item menu-item-type-post_type menu-item-3090"><a href="http://www.ala.org.au/site-map/">Site Map</a></li>
326                    </ul>		</div>
327                <div class="copyright"><p><a href="http://creativecommons.org/licenses/by/3.0/au/" title="External link to Creative Commons" class="left no-pipe"><img src="http://www.ala.org.au/wp-content/themes/ala/images/creativecommons.png" width="88" height="31" alt="" /></a>This site is licensed under a <a href="http://creativecommons.org/licenses/by/3.0/au/" title="External link to Creative Commons">Creative Commons Attribution 3.0 Australia License</a></p><p>Provider content may be covered by other <span class="asterisk-container"><a href="http://www.ala.org.au/about/terms-of-use/" title="Terms of Use">Terms of Use</a>.</span></div>
328            </div><!--close footer-->
329        </div><!--close wrapper-->
330        <script type='text/javascript' src='http://www.ala.org.au/wp-includes/js/jquery/jquery.form.js?ver=2.02m'></script>
331
332        <script type='text/javascript' src='http://www.ala.org.au/wp-content/plugins/contact-form-7/scripts.js?ver=2.3.1'></script>
333    </body>
334</html>