Changeset 28622 for main/trunk


Ignore:
Timestamp:
2013-11-14T11:18:43+13:00 (10 years ago)
Author:
jlwhisler
Message:

Updated display page so that, for documents with no text that are not images, the filename will appear with a link to the source file (instead of nothing appearing at all). Also added source links to the images (so it's possible to see the full-size image directly from the display page by default.)

File:
1 edited

Legend:

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

    r28274 r28622  
    457457                    <div id="wrap{util:replace(@nodeID, '.', '_')}" class="zoomImage" style="position:relative; width: {$screenImageWidth}px; height: {$screenImageHeight}px;">
    458458                        <div id="small{util:replace(@nodeID, '.', '_')}" style="position:relative; width: {$screenImageWidth}px; height: {$screenImageHeight}px;">
    459                             <gsf:image type="screen"/>
     459                            <gsf:link type="source"><gsf:image type="screen"/></gsf:link>
    460460                        </div>
    461461                        <div id="mover{util:replace(@nodeID, '.', '_')}" style="border: 1px solid green; position: absolute; top: 0; left: 0; width: 598px; height: 598px; overflow: hidden; z-index: 100; background: white; display: none;">
     
    464464                            </div>
    465465                            <div id="large{util:replace(@nodeID, '.', '_')}" style="position: relative; width: {$imageWidth}px; height: {$imageHeight}px;">
    466                                 <gsf:image type="source"/>
     466                                <gsf:link type="source"><gsf:image type="source"/></gsf:link>
    467467                            </div>
    468468                        </div>
     
    518518        <!-- Hides the "This document has no text." message -->
    519519        <xsl:variable name="noText"><gsf:metadata name="NoText"/></xsl:variable>
    520         <xsl:if test="not($noText = '1')">
     520        <xsl:choose>
     521        <xsl:when test="not($noText = '1')">
     522
    521523            <!-- Section text -->
    522524            <xsl:for-each select="nodeContent">
     
    535537                </xsl:for-each>
    536538            </xsl:for-each>
    537         </xsl:if><xsl:text> </xsl:text>
     539        </xsl:when>
     540        <xsl:when test="$noText = '1' and not(metadataList/metadata[@name='Image'])">
     541            <gsf:link type="source"><gsf:metadata name="Source"/></gsf:link>
     542        </xsl:when>
     543        </xsl:choose>
     544        <xsl:text> </xsl:text>
    538545    </xsl:template>
    539546
Note: See TracChangeset for help on using the changeset viewer.