Changeset 33507 for main/trunk/greenstone3/web
- Timestamp:
- 2019-09-24T13:24:07+12:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/pages/document.xsl
r33506 r33507 25 25 </xsl:variable> 26 26 27 <xsl:variable name="canDoEditing"> 28 <xsl:if test="$isEditingAllowed = '1' and (/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> 29 </xsl:variable> 30 <xsl:variable name="editingTurnedOn"> 31 <xsl:if test="/page/pageRequest/paramList/param[@name='docEdit']/@value = '1'">true</xsl:if> 32 </xsl:variable> 33 27 34 <!-- optional cgi-params for links to document pages --> 28 35 <xsl:variable name="opt-doc-link-args"></xsl:variable> … … 210 217 211 218 <xsl:choose> 212 <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))">219 <xsl:when test="$canDoEditing = 'true' and $editingTurnedOn = 'true'"> 213 220 <table id="meta{@nodeID}"> 214 221 <xsl:attribute name="style"> … … 400 407 </xsl:if> 401 408 </xsl:if> 402 <xsl:variable name="canDoEditing">403 <xsl:if test="$isEditingTurnedOn = '1' and (/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>404 </xsl:variable>405 409 <xsl:if test="$canDoEditing = 'true'"> 406 410 <xsl:call-template name="javascriptForDocumentEditing"/> … … 457 461 <!-- 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--> 458 462 <!-- This is the first choice from wrappedDocument template--> 459 <xsl:when test="$canDoEditing = 'true' and /page/pageRequest/paramList/param[@name='docEdit']/@value = '1'">463 <xsl:when test="$canDoEditing = 'true' and $editingTurnedOn = 'true' "> 460 464 <div id="gs-document" style="width: 67%"> 461 465 <xsl:call-template name="documentPre"/>
Note:
See TracChangeset
for help on using the changeset viewer.