Loading plugins/img_viewer/img_viewer.src.js +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){ Loading plugins/img_viewer/img_viewer.xsl +14 −6 Original line number Diff line number Diff line Loading @@ -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 ui/js/dist/img_viewer.min.js +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 Loading
plugins/img_viewer/img_viewer.src.js +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){ Loading
plugins/img_viewer/img_viewer.xsl +14 −6 Original line number Diff line number Diff line Loading @@ -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
ui/js/dist/img_viewer.min.js +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