Commit 9fa551db authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

max.util:getRelativeRootPath manquants

parent 92aba31f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ function max.plugin.ead_basket:accueil($projectId){
                for $doc in collection($projectId)
                return
                    <li>
                        <a href="{max.config:getBaseURI()}{$projectId}/ead/{tokenize(base-uri($doc), '/')[last()]}/parcourir/accueil.html">
                        <a href="{max.util:getRelativeRootPath($projectId)}/ead/{tokenize(base-uri($doc), '/')[last()]}/parcourir/accueil.html">
                            {$doc/*:ead/*:eadheader/*:filedesc/*:titlestmt/*:titleproper//text()}
                            
                            {$doc/*:ead/*:eadheader/*:filedesc/*:titlestmt/*:author//text()}
+2 −2
Original line number Diff line number Diff line
(: For conditions of distribution and use, see the accompanying legal.txt file. :)

module namespace max.plugin.mirador = 'pddn/max/plugin/mirador';
import module namespace max.config = 'pddn/max/config' at '../../rxq/config.xqm';
import module namespace max.util = 'pddn/max/util' at '../../rxq/util.xqm';

declare variable $max.plugin.mirador:PLUGIN_ID := "mirador_viewer";

@@ -17,7 +17,7 @@ declare
%rest:query-param("canvasIndex", "{$canvasIndex}")
%rest:path("/{$project}/mirador")
function max.plugin.mirador:loadViewer($project,$link,$canvasId,$canvasIndex){
let $libJs := max.config:getBaseURI() || 'plugins/mirador_viewer/max-mirador/MaxMirador.js'
let $libJs := max.util:getRelativeRootPath($project)|| 'plugins/mirador_viewer/max-mirador/MaxMirador.js'

let $htmlPage := <html>
  <head>