Changeset 33510 for main/trunk/greenstone3/web
- Timestamp:
- 2019-09-24T14:13:22+12:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/layouts/header.xsl
r33504 r33510 24 24 </xsl:variable> 25 25 26 <!-- does this collection have editing turned on -turned on by default, can turn off in config file-->27 <xsl:variable name="isEditing TurnedOn">26 <!-- does this collection have editing allowed? it's turned on by default, can turn off in config file--> 27 <xsl:variable name="isEditingAllowed"> 28 28 <xsl:if test="not(/page/pageResponse/format[@type='display']/gsf:option[@name='allowDocumentEditing']) or /page/pageResponse/format[@type='display']/gsf:option[@name='allowDocumentEditing']/@value='true'">1</xsl:if> 29 29 </xsl:variable> … … 32 32 <xsl:choose><xsl:when test="/page/pageResponse/collection/@no_archives">0</xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose> 33 33 </xsl:variable> 34 <xsl:variable name="isMapGPSEditingAllowed"> 35 <xsl:choose><xsl:when test="not(/page/pageResponse/format[@type='display']/gsf:option[@name='allowMapGPSEditing']) or /page/pageResponse/format[@type='display']/gsf:option[@name='allowMapGPSEditing']/@value='true'">1</xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose> 36 </xsl:variable> 37 34 38 <!-- is a user logged in, and do they have editing rights for this collection? --> 35 39 <xsl:variable name="userHasEditPermission"> … … 422 426 menu.append(settingsLink); 423 427 424 </xsl:text><xsl:if test="/page/pageRequest/@action = 'd' and $isEditing TurnedOn= '1'"><xsl:text disable-output-escaping="yes">428 </xsl:text><xsl:if test="/page/pageRequest/@action = 'd' and $isEditingAllowed = '1'"><xsl:text disable-output-escaping="yes"> 425 429 var editingLink = $("<a>") 426 430 .attr("href", "javascript:;");
Note:
See TracChangeset
for help on using the changeset viewer.