Changeset 25457


Ignore:
Timestamp:
2012-04-23T18:03:33+12:00 (12 years ago)
Author:
ak19
Message:

If we append debuginfo=on or true or 1 to the greenstone URL, then we get a debuginfo button which, when clicked, will display the debuginfo.xsl page. This page specifies the various greenstone3 debug URL suffixes such as o=xml and formatedit=on.

Location:
main/trunk/greenstone3/web
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/WEB-INF/classes/interface_default.properties

    r25297 r25457  
    2222help_b=Help
    2323pref_b=Preferences
     24debuginfo_b=Debug info
    2425login_b=Login
    2526logout_b=Logout
     
    2930help_tip=Help pages
    3031pref_tip=Change your interface preferences
     32debuginfo_tip=Display debug view options
    3133login_tip=Login
    3234logout_tip=Logout
     
    368370dse.untitled_section=UNTITLED SECTION
    369371dse.insert_new_section=Insert new section
     372
     373###################
     374# DebugInfo  #
     375###################
     376debuginfo.usage=When debugging the XSLT, you can append any of the following to the URL (prefixed with a & or ? as appropriate) to see the intermediate XML that's produced.
     377debuginfo.xml=Displays the raw information coming from the Message Router.
     378debuginfo.xmlfinal=Displays the information coming from the Message Router after the second config_format pass.
     379debuginfo.skindoc=Simplified Skin XSL with Expanded GSF statements appended.
     380debuginfo.skinandlib=An XML document with a root element called skinAndLibraryXsl and the two children skinXsl and libraryXsl. The libraryXsl, which already includes util.xsl, is merely appended.
     381debuginfo.skinandlibdoc=The result of applying preprocess.xsl to skinandlib produces this stylesheet which is the final XSL document that will be applied to the XML data returned from the message router.
     382debuginfo.formatedit=Web interface editor for editing Greenstone3 format statements.
     383
  • main/trunk/greenstone3/web/interfaces/oran/interfaceConfig.xml

    r25122 r25457  
    44      <subaction name='home' xslt='pages/home.xsl'/>
    55      <subaction name='about' xslt='pages/about.xsl'/>
     6      <subaction name='debuginfo' xslt='pages/debuginfo.xsl'/>
    67      <subaction name='pref' xslt='pages/pref.xsl'/>
    78      <subaction name='help' xslt='pages/help.xsl'/>
  • main/trunk/greenstone3/web/interfaces/oran/style/core.css

    r25430 r25457  
    762762}
    763763
     764dl dt { font-weight:bold;
     765      padding-top:10px; }
     766dl dd { padding-bottom:10px}
     767
    764768/*
    765769ul.childrenlist li {
  • main/trunk/greenstone3/web/interfaces/oran/transform/layouts/header.xsl

    r25436 r25457  
    299299                </xsl:choose>
    300300            </li>
     301            <!-- debuginfo -->
     302            <xsl:if test="/page/pageRequest/paramList/param[(@name='debuginfo') and (@value='on' or @value='true' or @value='1')]">
     303              <li class="ui-state-default ui-corner-all">
     304                <a href="{$library_name}/collection/{$collNameChecked}/page/debuginfo">
     305                  <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'debuginfo_tip')"/></xsl:attribute>
     306                  <ul>
     307                <li><span><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'debuginfo_b')"/></span></li>
     308                <li><span class="ui-icon ui-icon-info"><xsl:text> </xsl:text></span></li>
     309                  </ul>
     310                </a>
     311              </li>
     312            </xsl:if>
    301313        </ul>
    302314    </xsl:template>
Note: See TracChangeset for help on using the changeset viewer.