Changeset 32058 for main/trunk/greenstone3/web
- Timestamp:
- 2017-10-30T20:01:10+13:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/pages/document.xsl
r31938 r32058 89 89 <xsl:call-template name="wrappedSectionText"/> 90 90 </xsl:template> 91 92 <xsl:template name="wrappedSectionText"> 91 <xsl:template name="sectionContentForEditing"> 92 <xsl:call-template name="wrappedSectionImage"/> 93 <xsl:call-template name="wrappedSectionTextForEditing"/> 94 </xsl:template> 95 96 <xsl:template name="wrappedSectionTextForEditing"> 93 97 <br /><br /> 94 98 <div id="text{@nodeID}" class="sectionText"><!-- *** --> 95 <xsl:choose>96 <xsl:when test="/page/pageRequest/paramList/param[(@name='docEdit') and (@value='on' or @value='true' or @value='1')]">97 99 <xsl:attribute name="contenteditable"> 98 100 <xsl:text>true</xsl:text> 99 101 </xsl:attribute> 100 102 <xsl:call-template name="documentNodeTextForEditing"/> 101 </xsl:when> 102 <xsl:otherwise> 103 </div> 104 </xsl:template> 105 106 <xsl:template name="wrappedSectionText"> 107 <br /><br /> 108 <div id="text{@nodeID}" class="sectionText"><!-- *** --> 103 109 <xsl:attribute name="style"> 104 110 <xsl:choose> … … 112 118 </xsl:attribute> 113 119 <xsl:call-template name="documentNodeText"/> 114 115 </xsl:otherwise>116 </xsl:choose>117 120 </div> 118 121 </xsl:template> … … 203 206 </xsl:choose> 204 207 205 <xsl:if test="/page/pageRequest/userInformation and /page/pageRequest/userInformation/@editEnabled = 'true' and /page/pageRequest/paramList/param[@name='docEdit']/@value = '1' and (util:contains(/page/pageRequest/userInformation/@groups, 'administrator') or util:contains(/page/pageRequest/userInformation/@groups, 'all-collections-editor') or util:contains(/page/pageRequest/userInformation/@groups, $thisCollectionEditor))"> 208 <xsl:choose> 209 <xsl:when test="/page/pageRequest/userInformation and /page/pageRequest/userInformation/@editEnabled = 'true' and /page/pageRequest/paramList/param[@name='docEdit']/@value = '1' and (util:contains(/page/pageRequest/userInformation/@groups, 'administrator') or util:contains(/page/pageRequest/userInformation/@groups, 'all-collections-editor') or util:contains(/page/pageRequest/userInformation/@groups, $thisCollectionEditor))"> 206 210 <table id="meta{@nodeID}"> 207 211 <xsl:attribute name="style"> … … 224 228 </xsl:for-each> 225 229 </table> 226 </xsl:if> 230 <xsl:call-template name="sectionContentForEditing"/> 231 </xsl:when> 232 <xsl:otherwise> 227 233 <xsl:choose> 228 234 <xsl:when test="../../document"> … … 232 238 <xsl:call-template name="sectionContent"/> 233 239 </xsl:otherwise> 240 </xsl:choose> 241 </xsl:otherwise> 234 242 </xsl:choose> 235 243 <xsl:if test="documentNode"> … … 649 657 </xsl:for-each> 650 658 </xsl:template> 659 651 660 <!-- Used to produce a version of the page in a format that can be read by the realistic books plugin --> 652 661 <xsl:template name="documentNodeFlashXML">
Note:
See TracChangeset
for help on using the changeset viewer.