- Timestamp:
- 2014-07-31T12:06:06+12:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/pages/document.xsl
r28622 r29166 206 206 <tr> 207 207 <td class="metaTableCellName"><xsl:value-of select="@name"/></td> 208 <td class="metaTableCell"><xsl:value-of disable-output-escaping="yes"select="."/></td>208 <td class="metaTableCell"><xsl:value-of select="."/></td> 209 209 </tr> 210 210 </xsl:if> … … 232 232 <!-- the page content --> 233 233 <xsl:template match="/page/pageResponse/document"> 234 <xsl:if test="/page/pageRequest/userInformation and /page/pageRequest/userInformation/@editEnabled = 'true' 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))"> 234 <xsl:variable name="canDoEditing"> 235 <xsl:if test="/page/pageRequest/userInformation and /page/pageRequest/userInformation/@editEnabled = 'true' 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))">true</xsl:if> 236 </xsl:variable> 237 <xsl:if test="$canDoEditing = 'true'"> 235 238 <script type="text/javascript" src="interfaces/{$interface_name}/js/documentmaker_scripts.js"><xsl:text> </xsl:text></script> 236 239 <script type="text/javascript" src="interfaces/{$interface_name}/js/documentmaker_scripts_util.js"><xsl:text> </xsl:text></script> … … 296 299 </xsl:text> 297 300 </script> 301 </xsl:when> 302 <!-- we want to do this stuff even if docType is simple or paged. Don't want to just set dt=hierarchy as that gives other unnecessary stuff--> 303 <!-- This is the first choice from wrappedDocument template--> 304 <xsl:when test="$canDoEditing = 'true' and /page/pageRequest/paramList/param[@name='docEdit']/@value = '1'"> 305 <div id="gs-document"> 306 <xsl:call-template name="documentPre"/> 307 <div id="gs-document-text" class="documenttext" collection="{/page/pageResponse/collection/@name}"><!-- *** --> 308 <xsl:for-each select="documentNode"> 309 <xsl:call-template name="wrapDocumentNodes"/> 310 </xsl:for-each> 311 </div> 312 </div> 298 313 </xsl:when> 299 314 <xsl:when test="@docType='simple'"> … … 410 425 </xsl:choose> 411 426 <xsl:if test="not(/page/pageRequest/paramList/param[@name = 'docEdit']/@value = '1')"> 412 <xsl:text>?ed=1&docEdit=1 &dt=hierarchy</xsl:text>427 <xsl:text>?ed=1&docEdit=1</xsl:text> 413 428 </xsl:if> 414 429 </xsl:attribute>
Note:
See TracChangeset
for help on using the changeset viewer.