Changeset 29433


Ignore:
Timestamp:
2014-11-14T19:08:29+13:00 (9 years ago)
Author:
ak19
Message:

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.

Location:
main/trunk/greenstone3/web
Files:
3 edited

Legend:

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

    r26515 r29433  
    167167debuginfo.refreshconfig=Refresh all the collection configuration files:
    168168debuginfo.reconfigsite=Reconfigures the whole site. Reads in siteConfig.xml, reloads all the collections.
     169debuginfo.depositor=Greenstone 3 Depositor: online tools that allows adding, or depositing, new files along with their metadata into an existing collection. The collection can then be rebuilt online.
     170debuginfo.inlinetemplate=Inline Template. Type or paste your XSLT here.
     171debuginfo.displaymetadata=Display metadata.
  • main/trunk/greenstone3/web/interfaces/default/transform/layouts/header.xsl

    r29314 r29433  
    411411            </li>
    412412            <!-- debuginfo (doesn't use class="ui-state-error" since the text is not legible due to inherited text-colour) -->
    413             <xsl:if test="/page/pageRequest/paramList/param[(@name='debug') and (@value='on' or @value='true' or @value='1')]">
     413            <xsl:if test="/page/pageRequest/paramList/param[(@name='debug') and (@value='on' or @value='true' or @value='1' or @value='yes')]">
    414414                <li>
    415415                    <a href="{$library_name}/collection/{$collNameChecked}/page/debug">
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/debuginfo.xsl

    r27890 r29433  
    5555        </dl>     
    5656
     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
    5772        <!-- better to do the following with a util:getInterfaceText
    5873           so language independent -->
     
    7287        </dl>
    7388
    74         <a href="{$library_name}?a=de&amp;c={/page/pageResponse/collection/@name}">Depositor</a>
    75 
     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       
    7698    </xsl:template>
    7799</xsl:stylesheet> 
Note: See TracChangeset for help on using the changeset viewer.