Commit bf955bd9 authored by dje's avatar dje
Browse files

adaptation image_viewer plugin - todo: à tester en profondeur

parent e9ecc777
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ declare variable $max.plugin.img_viewer:IMG_HEIGHT_PARAMETER := "viewerHeight";
declare
%rest:GET
%output:method("html")
%rest:path("/plugins/img_viewer/{$projectId}/{$path=.+}/{$img}")
%rest:path("/editions/{$projectId}/plugins/img_viewer/{$path=.+}/{$img}")
function max.plugin.img_viewer:searchPage($projectId, $path, $img){

  let $tileSourcesPath := max.config:getBaseURI() 
@@ -39,7 +39,7 @@ function max.plugin.img_viewer:searchPage($projectId, $path, $img){
declare
%rest:GET
%output:method("html")
%rest:path("/plugins/img_viewer/simple_gallery/{$projectId}/{$path=.+}")
%rest:path("/editions/{$projectId}/plugins/img_viewer/simple_gallery/{$path=.+}")
function max.plugin.img_viewer:simpleGallery($projectId, $path){
                                           
  let $tileSources :=
@@ -76,7 +76,7 @@ function max.plugin.img_viewer:simpleGallery($projectId, $path){
declare
%rest:GET
%output:method("html")
%rest:path("/plugins/img_viewer/single_image/{$projectId}/{$img=.+}")
%rest:path("/editions/{$projectId}/plugins/img_viewer/single_image/{$img=.+}")
function max.plugin.img_viewer:single_image($projectId, $img){
let $imgPath:= max.config:getBaseURI() ||"/"|| $projectId || "/"|| $img
  return 
+2 −2
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@
    
    <xsl:template match="tei:graphic" >
        <xsl:variable name="href">
          <xsl:value-of select="concat($pluginsuri,'/img_viewer/single_image/',$project, '/',$imagesRepository ,@url)"/>
          <xsl:value-of select="concat($pluginsuri,'/img_viewer/single_image/',$imagesRepository ,@url)"/>
        </xsl:variable>
        <xsl:variable name="id"><xsl:value-of select="generate-id(.) "/></xsl:variable>
        <img class="viewable" id="{$id}">