root/main/trunk/greenstone3/web/interfaces/default/transform/depositor/de_page1.xsl @ 27909

Revision 27909, 1.5 KB (checked in by sjm84, 7 years ago)

Added a button to clear saved data

  • Property svn:executable set to *
  • Property svn:mime-type set to application/xml
Line 
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    <!-- set page title -->
11    <xsl:variable name="title">Specify Metadata</xsl:variable>
12
13    <!-- the page content -->
14    <xsl:template name="wizardPage">
15        <table>
16            <tr>
17                <td>Title:</td><td><input type="text" name="md___dc.Title" size="74"/></td>
18            </tr>
19            <tr>
20                <td>Creator:</td><td><input type="text" name="md___dc.Creator"/></td>
21            </tr>
22            <tr>
23                <td>Description:</td><td><textarea cols="40" rows="5" name="md___dc.Description"><xsl:text> </xsl:text></textarea></td>
24            </tr>
25            <tr>
26                <td><div id="clearSaved" style="padding:0 10px; cursor:pointer;" class="ui-state-default ui-corner-all">Clear all saved data</div></td>
27                <script type="text/javascript">
28                    <xsl:text disable-output-escaping="yes">
29                        $("#clearSaved").click(function()
30                        {
31                            $.ajax(gs.xsltParams.library_name + "?a=de&amp;sa=clearcache")
32                            .success(function()
33                            {
34                                console.log("CLEARED CACHE");
35                                document.location.href = gs.xsltParams.library_name + "?a=de&amp;sa=getwizard&amp;depage=1&amp;c=" + gs.cgiParams.c;
36                            });
37                        });
38                    </xsl:text>
39                </script>
40            </tr>
41        </table>
42    </xsl:template>
43</xsl:stylesheet> 
44
Note: See TracBrowser for help on using the browser.