Loading legal.txt +6 −2 Original line number Diff line number Diff line Loading @@ -2,10 +2,12 @@ Copyright Université de Caen Normandie Esplanade de la paix CS 14032 14032 Caen CEDEX 5 Contributeurs : Jérôme Chauveau, Mickaël Desfrenes Contributeurs : Jérôme Chauveau, Mickaël Desfrenes, Marie Bisson, Anne Goloubkoff jerome.chauveau@unicaen.fr mickael.desfrenes@unicaen.fr marie.bisson@unicaen.fr anne.goloubkoff@unicaen.fr Ce logiciel est régi par la licence CeCILL-B soumise au droit français et respectant les principes de diffusion des logiciels libres. Vous pouvez Loading Loading @@ -38,11 +40,13 @@ Copyright Université de Caen Normandie Esplanade de la paix CS 14032 14032 Caen CEDEX 5 Contributors : Jérôme Chauveau, Mickaël Desfrenes Contributors : Jérôme Chauveau, Mickaël Desfrenes, Marie Bisson, Anne Goloubkoff jerome.chauveau@unicaen.fr mickael.desfrenes@unicaen.fr marie.bisson@unicaen.fr anne.goloubkoff@unicaen.fr This software is governed by the CeCILL-B license under French law and abiding by the rules of distribution of free software. You can use, Loading max.xq +6 −5 Original line number Diff line number Diff line Loading @@ -262,11 +262,12 @@ declare %output:encoding("UTF-8") %rest:path("/{$project}/doc/{$doc=.*}.html") function max:getFullDocument($project, $doc){ let $xmlDoc := (doc(max.config:getProjectDBPath($project) || "/" || $doc)/*)[1] let $docName:= $doc||".xml" let $xmlDoc := (doc(max.config:getProjectDBPath($project) || "/" || $docName)/*)[1] return max.html:render( $project, "doc/"||$doc, <div><div>{max:invokePluginXQueries($project, $doc, ())}</div><div id='text'>{max:transformEditionFragment($project, $xmlDoc, $doc)}</div></div>) $project, "doc/"||$docName, <div><div>{max:invokePluginXQueries($project, $docName, ())}</div><div id='text'>{max:transformEditionFragment($project, $xmlDoc, $docName)}</div></div>) }; Loading Loading @@ -348,7 +349,8 @@ declare %private function max:invokePluginXQueries($project, $routeDoc, $id){ (:%rest:path("/{$projectId}/test/fop"):) (:%rest:produces("application/pdf"):) (:function max:testFOP($projectId){:) (: let $pdf := max.util:xml2pdf(<TEI><div>TEST PDF !</div></TEI>, max.util:getProjectFoXsl($projectId)):) (: let $xml := (doc('fop/exemple.xml')/*)[1]:) (: let $pdf := max.util:xml2pdf($xml, max.util:getProjectFoXsl($projectId)):) (: return:) (: (<rest:response>:) (: <http:response status="200">:) Loading @@ -356,5 +358,4 @@ declare %private function max:invokePluginXQueries($project, $routeDoc, $id){ (: </http:response>:) (: </rest:response>,:) (: $pdf):) (:};:) No newline at end of file rxq/cons.xqm +0 −7 Original line number Diff line number Diff line Loading @@ -7,10 +7,6 @@ declare variable $max.cons:EAD := "ead"; (: Base Dir:) declare variable $max.cons:BASE_DIR := "/"; (:declare variable $max.cons:PLUGINS_BASE_DIR := "plugins";:) (: route path name (in URLs):) (: declare variable $max.cons:ROUTE := "parcours"; :) (: TOC path name (in URLs):) declare variable $max.cons:TOC := "sommaire"; Loading Loading @@ -71,9 +67,6 @@ declare variable $max.cons:DB_PATH_CONTEXT_KEY := "dbPath"; declare variable $max.cons:ROUTE_ID_CONTEXT_KEY := "routeId"; (:Edition Route TOC function name:) (:declare variable $max.cons:EDITION_ROUTE_TOC_FUNC := "getRouteTOC";:) (:Edition's Footer path:) declare variable $max.cons:EDITION_FOOTER_PATH := "fragments/footer.frag.html"; Loading rxq/ead/document_title.xq +2 −0 Original line number Diff line number Diff line (: For conditions of distribution and use, see the accompanying legal.txt file. :) xquery version "3.0"; declare variable $documentPath external; Loading rxq/ead/document_toc.xq +2 −0 Original line number Diff line number Diff line (: For conditions of distribution and use, see the accompanying legal.txt file. :) import module namespace max.config = 'pddn/max/config' at '../config.xqm'; Loading Loading
legal.txt +6 −2 Original line number Diff line number Diff line Loading @@ -2,10 +2,12 @@ Copyright Université de Caen Normandie Esplanade de la paix CS 14032 14032 Caen CEDEX 5 Contributeurs : Jérôme Chauveau, Mickaël Desfrenes Contributeurs : Jérôme Chauveau, Mickaël Desfrenes, Marie Bisson, Anne Goloubkoff jerome.chauveau@unicaen.fr mickael.desfrenes@unicaen.fr marie.bisson@unicaen.fr anne.goloubkoff@unicaen.fr Ce logiciel est régi par la licence CeCILL-B soumise au droit français et respectant les principes de diffusion des logiciels libres. Vous pouvez Loading Loading @@ -38,11 +40,13 @@ Copyright Université de Caen Normandie Esplanade de la paix CS 14032 14032 Caen CEDEX 5 Contributors : Jérôme Chauveau, Mickaël Desfrenes Contributors : Jérôme Chauveau, Mickaël Desfrenes, Marie Bisson, Anne Goloubkoff jerome.chauveau@unicaen.fr mickael.desfrenes@unicaen.fr marie.bisson@unicaen.fr anne.goloubkoff@unicaen.fr This software is governed by the CeCILL-B license under French law and abiding by the rules of distribution of free software. You can use, Loading
max.xq +6 −5 Original line number Diff line number Diff line Loading @@ -262,11 +262,12 @@ declare %output:encoding("UTF-8") %rest:path("/{$project}/doc/{$doc=.*}.html") function max:getFullDocument($project, $doc){ let $xmlDoc := (doc(max.config:getProjectDBPath($project) || "/" || $doc)/*)[1] let $docName:= $doc||".xml" let $xmlDoc := (doc(max.config:getProjectDBPath($project) || "/" || $docName)/*)[1] return max.html:render( $project, "doc/"||$doc, <div><div>{max:invokePluginXQueries($project, $doc, ())}</div><div id='text'>{max:transformEditionFragment($project, $xmlDoc, $doc)}</div></div>) $project, "doc/"||$docName, <div><div>{max:invokePluginXQueries($project, $docName, ())}</div><div id='text'>{max:transformEditionFragment($project, $xmlDoc, $docName)}</div></div>) }; Loading Loading @@ -348,7 +349,8 @@ declare %private function max:invokePluginXQueries($project, $routeDoc, $id){ (:%rest:path("/{$projectId}/test/fop"):) (:%rest:produces("application/pdf"):) (:function max:testFOP($projectId){:) (: let $pdf := max.util:xml2pdf(<TEI><div>TEST PDF !</div></TEI>, max.util:getProjectFoXsl($projectId)):) (: let $xml := (doc('fop/exemple.xml')/*)[1]:) (: let $pdf := max.util:xml2pdf($xml, max.util:getProjectFoXsl($projectId)):) (: return:) (: (<rest:response>:) (: <http:response status="200">:) Loading @@ -356,5 +358,4 @@ declare %private function max:invokePluginXQueries($project, $routeDoc, $id){ (: </http:response>:) (: </rest:response>,:) (: $pdf):) (:};:) No newline at end of file
rxq/cons.xqm +0 −7 Original line number Diff line number Diff line Loading @@ -7,10 +7,6 @@ declare variable $max.cons:EAD := "ead"; (: Base Dir:) declare variable $max.cons:BASE_DIR := "/"; (:declare variable $max.cons:PLUGINS_BASE_DIR := "plugins";:) (: route path name (in URLs):) (: declare variable $max.cons:ROUTE := "parcours"; :) (: TOC path name (in URLs):) declare variable $max.cons:TOC := "sommaire"; Loading Loading @@ -71,9 +67,6 @@ declare variable $max.cons:DB_PATH_CONTEXT_KEY := "dbPath"; declare variable $max.cons:ROUTE_ID_CONTEXT_KEY := "routeId"; (:Edition Route TOC function name:) (:declare variable $max.cons:EDITION_ROUTE_TOC_FUNC := "getRouteTOC";:) (:Edition's Footer path:) declare variable $max.cons:EDITION_FOOTER_PATH := "fragments/footer.frag.html"; Loading
rxq/ead/document_title.xq +2 −0 Original line number Diff line number Diff line (: For conditions of distribution and use, see the accompanying legal.txt file. :) xquery version "3.0"; declare variable $documentPath external; Loading
rxq/ead/document_toc.xq +2 −0 Original line number Diff line number Diff line (: For conditions of distribution and use, see the accompanying legal.txt file. :) import module namespace max.config = 'pddn/max/config' at '../config.xqm'; Loading