1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <xsl:stylesheet version="1.0"
|
---|
3 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
4 | xmlns:java="http://xml.apache.org/xslt/java"
|
---|
5 | xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
|
---|
6 | xmlns:gslib="http://www.greenstone.org/skinning"
|
---|
7 | extension-element-prefixes="java util"
|
---|
8 | exclude-result-prefixes="java util">
|
---|
9 |
|
---|
10 | <!-- use the 'main' layout -->
|
---|
11 | <xsl:include href="layouts/main.xsl"/>
|
---|
12 |
|
---|
13 | <!-- set page title -->
|
---|
14 | <xsl:template name="pageTitle">Depositor</xsl:template>
|
---|
15 |
|
---|
16 | <!-- set page breadcrumbs -->
|
---|
17 | <xsl:template name="breadcrumbs"/>
|
---|
18 |
|
---|
19 | <xsl:template match="/page">
|
---|
20 | <div style="display:table; margin: 0 auto">
|
---|
21 | Please select a collection:
|
---|
22 | <select id="colSelect">
|
---|
23 | <option>-- Select a collection --</option>
|
---|
24 | <xsl:for-each select="/page/pageResponse/depositorPage/collectionList/collection">
|
---|
25 | <option>
|
---|
26 | <xsl:value-of select="@name"/>
|
---|
27 | </option>
|
---|
28 | </xsl:for-each>
|
---|
29 | </select>
|
---|
30 |
|
---|
31 | <script type="text/javascript">
|
---|
32 | <xsl:text disable-output-escaping="yes">
|
---|
33 | $("#colSelect").change(function()
|
---|
34 | {
|
---|
35 | var selected = $("#colSelect").find(":selected");
|
---|
36 | if (selected.text() != "-- Select a collection --")
|
---|
37 | {
|
---|
38 | document.location.href = gs.xsltParams.library_name + "?a=de&sa=getwizard&c=" + selected.text();
|
---|
39 | }
|
---|
40 | });
|
---|
41 | </xsl:text>
|
---|
42 | </script>
|
---|
43 | </div>
|
---|
44 | </xsl:template>
|
---|
45 | </xsl:stylesheet>
|
---|
46 |
|
---|