Commit d4efaa6d authored by chauveau's avatar chauveau
Browse files

mise à jour visionneuse (pas bien le commit dans le tag...)

parent 8b301eab
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
$(document).ready(function(){
  $('body').prepend("<div id='img_dialog_wrap' title='Image viewer'></div>");
  $('#img_dialog_wrap').hide();
  $('.viewable').css('cursor', 'pointer')
})

function openImageInDialog(href, source){
+14 −6
Original line number Diff line number Diff line
@@ -23,16 +23,24 @@
     
        
    <xsl:template match="tei:figure">
        <div class="figure">
          <xsl:apply-templates/>
        </div>
    </xsl:template>
    
    
    <xsl:template match="tei:graphic" >
        <xsl:variable name="href">
        <xsl:value-of select="concat($pluginsuri,'/img_viewer/single_image/',$project, '/',$imagesRepository ,./tei:graphic/@url)"/>
          <xsl:value-of select="concat($pluginsuri,'/img_viewer/single_image/',$project, '/',$imagesRepository ,@url)"/>
        </xsl:variable>
        <xsl:variable name="id"><xsl:value-of select="generate-id(.) "/></xsl:variable>
        <div class="figure viewable" id="{$id}">
        <img class="viewable" id="{$id}">
         <xsl:attribute name="onclick">openImageInDialog('<xsl:value-of select="$href"/>','#<xsl:value-of select='$id'/>')</xsl:attribute>
          <xsl:apply-templates/>
        </div>
         <xsl:attribute name="src">
           <xsl:value-of select="concat($baseuri,'/',$project, '/ui/images/',@url)"/> 
         </xsl:attribute>
        </img>
    </xsl:template>
   
           
           
</xsl:stylesheet>                
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
function openImageInDialog(i,e){$("#img_dialog_wrap").load(i).dialog({position:{my:"center",at:"center",of:e?e:window},height:650,width:900})}$(document).ready(function(){$("body").prepend("<div id='img_dialog_wrap' title='Image viewer'></div>"),$("#img_dialog_wrap").hide()});
 No newline at end of file
function openImageInDialog(i,e){$("#img_dialog_wrap").load(i).dialog({position:{my:"center",at:"center",of:e?e:window},height:650,width:900})}$(document).ready(function(){$("body").prepend("<div id='img_dialog_wrap' title='Image viewer'></div>"),$("#img_dialog_wrap").hide(),$(".viewable").css("cursor","pointer")});
 No newline at end of file