Skip to content
Snippets Groups Projects
Commit d4efaa6d authored by chauveau's avatar chauveau
Browse files

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

parent 8b301eab
No related branches found
Tags MaX-V0
No related merge requests found
$(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">
<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
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment