source: main/trunk/greenstone3/web/interfaces/default/transform/pages/debuginfo.xsl@ 29433

Last change on this file since 29433 was 29433, checked in by ak19, 6 years ago

DebugInfo now switched on when passing debug=yes, previously it only recognised on, true and 1. More params added to the debuginfo page. Don't yet know of a working example for the inline template parameter, itl.

File size: 3.0 KB
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 <!-- use the 'main' layout -->
11 <xsl:include href="layouts/main.xsl"/>
12 <xsl:variable name="debug_property_file" select="concat($interface_name, '2')"/>
13 <!-- set page title -->
14 <xsl:template name="pageTitle">
15 <gslib:collectionName/>
16 </xsl:template>
17
18 <!-- set page breadcrumbs -->
19 <xsl:template name="breadcrumbs">
20 <gslib:siteLink/>
21 <gslib:rightArrow/>
22 </xsl:template>
23
24 <!-- the page content -->
25 <xsl:template match="/page">
26 <p>
27 <xsl:value-of select="util:getInterfaceText($debug_property_file, /page/@lang, 'debuginfo.usage')"/>
28 </p>
29
30 <dl>
31 <dt>o=xml</dt>
32 <dd>
33 <xsl:value-of select="util:getInterfaceText($debug_property_file, /page/@lang, 'debuginfo.xml')"/>
34 </dd>
35 <dt>o=xmlfinal</dt>
36 <dd>
37 <xsl:value-of select="util:getInterfaceText($debug_property_file, /page/@lang, 'debuginfo.xmlfinal')"/>
38 </dd>
39 <dt>o=skindoc</dt>
40 <dd>
41 <xsl:value-of select="util:getInterfaceText($debug_property_file, /page/@lang, 'debuginfo.skindoc')"/>
42 </dd>
43 <dt>o=skinandlib</dt>
44 <dd>
45 <xsl:value-of select="util:getInterfaceText($debug_property_file, /page/@lang, 'debuginfo.skinandlib')"/>
46 </dd>
47 <dt>o=skinandlibdoc</dt>
48 <dd>
49 <xsl:value-of select="util:getInterfaceText($debug_property_file, /page/@lang, 'debuginfo.skinandlibdoc')"/>
50 </dd>
51 <dt>formatedit=on</dt>
52 <dd>
53 <xsl:value-of select="util:getInterfaceText($debug_property_file, /page/@lang, 'debuginfo.formatedit')"/>
54 </dd>
55 </dl>
56
57 <dl>
58 <dt>ilt=your-inline-template
59 </dt>
60 <dd>
61 <xsl:value-of select="util:getInterfaceText($debug_property_file, /page/@lang, 'debuginfo.inlinetemplate')"/>
62 </dd>
63 </dl>
64 <dl>
65 <dt>dmd=
66 </dt>
67 <dd>
68 <xsl:value-of select="util:getInterfaceText($debug_property_file, /page/@lang, 'debuginfo.displaymetadata')"/>
69 </dd>
70 </dl>
71
72 <!-- better to do the following with a util:getInterfaceText
73 so language independent -->
74 <p>
75 <xsl:value-of select="util:getInterfaceText($debug_property_file, /page/@lang, 'debuginfo.refreshconfig')"/>
76 </p>
77
78 <dl>
79 <!--<a href="http://host:port/greenstone3/library?a=s&sa=c">a=s&amp;sa=c</a>-->
80 <dt>
81 <a href="{$library_name}?a=s&amp;sa=c">a=s&amp;sa=c</a>
82 </dt>
83
84 <dd>
85 <xsl:value-of select="util:getInterfaceText($debug_property_file, /page/@lang, 'debuginfo.reconfigsite')"/>
86 </dd>
87 </dl>
88
89 <dl>
90 <dt>
91 <a href="{$library_name}?a=de&amp;c={/page/pageResponse/collection/@name}">Depositor (a=de&amp;c=your-collection)</a>
92 </dt>
93 <dd>
94 <xsl:value-of select="util:getInterfaceText($debug_property_file, /page/@lang, 'debuginfo.depositor')"/>
95 </dd>
96 </dl>
97
98 </xsl:template>
99</xsl:stylesheet>
100
Note: See TracBrowser for help on using the repository browser.