Changeset 31938

Show
Ignore:
Timestamp:
06.09.2017 22:27:36 (3 months ago)
Author:
litvinovg
Message:

Prevent downloading all images in collapsed image collections

Location:
main/trunk/greenstone3/web/interfaces/default
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/document_scripts.js

    r31748 r31938  
    5353    } 
    5454     
    55     var url = gs.xsltParams.library_name + "/collection/" + gs.cgiParams.c + "/document/" + sectionID + "?hl=" + hl + "&p.s=TextQuery&ilt=" + template.replace(" ", "%20"); 
     55    var url = gs.xsltParams.library_name + "/collection/" + gs.cgiParams.c + "/document/" + sectionID + "?ed=1&hl=" + hl + "&p.s=TextQuery&ilt=" + template.replace(" ", "%20"); 
    5656     
    5757    $.ajax(url) 
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/document.xsl

    r31791 r31938  
    536536        <xsl:choose> 
    537537            <xsl:when test="metadataList/metadata[@name = 'Screen'] and metadataList/metadata[@name = 'SourceFile'] and ($imageWidth div $screenImageWidth > 1.2) and (not(/page/pageResponse/format[@type='display']/gsf:option[@name='disableZoom']) or /page/pageResponse/format[@type='display']/gsf:option[@name='disableZoom']/@value='false')"> 
     538                 
    538539                <div id="image{@nodeID}"> 
     540                <xsl:if test="/page/pageRequest/paramList/param[@name = 'ed']/@value='1'"> 
     541                 
    539542                    <div id="wrap{util:replace(@nodeID, '.', '_')}" class="zoomImage" style="position:relative; width: {$screenImageWidth}px; height: {$screenImageHeight}px;"> 
    540543                        <div id="small{util:replace(@nodeID, '.', '_')}" style="position:relative; width: {$screenImageWidth}px; height: {$screenImageHeight}px;"> 
     
    575578                        </xsl:text> 
    576579                    </script> 
     580                </xsl:if> 
    577581                </div> 
    578582            </xsl:when>