Commit d4efaa6d authored by chauveau's avatar chauveau
Browse files

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

parent 8b301eab
$(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){
......
......@@ -23,16 +23,24 @@
<xsl:template match="tei:figure">
<xsl:variable name="href">
<xsl:value-of select="concat($pluginsuri,'/img_viewer/single_image/',$project, '/',$imagesRepository ,./tei:graphic/@url)"/>
</xsl:variable>
<xsl:variable name="id"><xsl:value-of select="generate-id(.) "/></xsl:variable>
<div class="figure viewable" id="{$id}">
<xsl:attribute name="onclick">openImageInDialog('<xsl:value-of select="$href"/>','#<xsl:value-of select='$id'/>')</xsl:attribute>
<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 ,@url)"/>
</xsl:variable>
<xsl:variable name="id"><xsl:value-of select="generate-id(.) "/></xsl:variable>
<img class="viewable" id="{$id}">
<xsl:attribute name="onclick">openImageInDialog('<xsl:value-of select="$href"/>','#<xsl:value-of select='$id'/>')</xsl:attribute>
<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
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment