Changeset 30773

Show
Ignore:
Timestamp:
01.09.2016 13:59:10 (3 years ago)
Author:
kjdon
Message:

changed a few string key names to get things in the right 'packages' (doc, dse, de). Include doc and de langfrags as needed. when editing is on, se tthe gs-document div width to be 67% (side bar is 30%). otherwise the text editor for the first section overlaps with the toc controls and you can only access one of them.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/document.xsl

    r30478 r30773  
    7171            </div> 
    7272        </div> 
    73     </xsl:template> 
    74      
     73    </xsl:template>  
     74 
    7575    <xsl:template name="sectionHeading"> 
    7676        <xsl:call-template name="sectionTitle"/> 
     
    246246            <script type="text/javascript"> 
    247247                <xsl:text disable-output-escaping="yes"> 
     248 
    248249                    $(window).load(function() 
    249250                    { 
     
    271272      <xsl:if test="$bookswitch = 'off'"> 
    272273      <xsl:call-template name="javascriptForDocumentView"/> 
     274      <gslib:langfrag name="doc"/> 
    273275        <xsl:if test="/page/pageResponse/collection[@name = $collName]/metadataList/metadata[@name = 'tidyoption'] = 'tidy'"> 
    274276          <script type="text/javascript"> 
     
    289291        <gsf:metadata name="all"/> 
    290292        <gslib:langfrag name="dse"/> 
     293        <gslib:langfrag name="de"/> 
    291294      </xsl:if> 
    292295 
     
    338341            <!-- This is the first choice from wrappedDocument template--> 
    339342            <xsl:when test="$canDoEditing = 'true' and /page/pageRequest/paramList/param[@name='docEdit']/@value = '1'"> 
    340                 <div id="gs-document"> 
     343                <div id="gs-document" style="width: 67%"> 
    341344                  <xsl:call-template name="documentPre"/> 
    342345                  <div id="gs-document-text" class="documenttext" collection="{/page/pageResponse/collection/@name}"><!-- *** --> 
     
    451454                  <!-- comment this out as its not working --> 
    452455                <!--    <div style="margin:5px;" class="ui-state-default ui-corner-all"> 
    453                         <a style="padding: 3px; text-decoration:none;" href="{$library_name}?a=g&amp;sa=documentbasket&amp;c=&amp;s=DisplayDocumentList&amp;rt=r&amp;p.c={/page/pageResponse/collection/@name}&amp;docToEdit={/page/pageResponse/document/documentNode/@nodeID}"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.edit_structure')"/></a> 
     456                        <a style="padding: 3px; text-decoration:none;" href="{$library_name}?a=g&amp;sa=documentbasket&amp;c=&amp;s=DisplayDocumentList&amp;rt=r&amp;p.c={/page/pageResponse/collection/@name}&amp;docToEdit={/page/pageResponse/document/documentNode/@nodeID}"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'dse.edit_structure')"/></a> 
    454457                    </div>--> 
    455458                    <!-- edit content button --> 
     
    475478                            <xsl:choose> 
    476479                                <xsl:when test="/page/pageRequest/paramList/param[@name = 'docEdit']/@value = '1'"> 
    477                                     <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.hide_editor')"/> 
     480                                    <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'de.hide_editor')"/> 
    478481                                </xsl:when> 
    479482                                <xsl:otherwise> 
    480                                     <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.edit_content')"/> 
     483                                    <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'de.edit_content')"/> 
    481484                                </xsl:otherwise> 
    482485                            </xsl:choose> 
     
    707710        <xsl:if test="metadataList/metadata[@name = 'Latitude'] and metadataList/metadata[@name = 'Longitude']"> 
    708711            <div style="background:#BBFFBB; padding: 5px; margin:0px auto; width:890px;"> 
    709                 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.maps.nearby_docs')"/> 
     712                <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.map_nearby_docs')"/> 
    710713                <img id="nearbyDocumentsToggle" style="margin-left:5px;" src="interfaces/{$interface_name}/images/expand.png"> 
    711714                    <xsl:attribute name="onclick">