Commit ee47ca38 authored by Jérôme Chauveau's avatar Jérôme Chauveau
Browse files

intégration des fonctionnalités EAD.

parent 51d8b063
Loading
Loading
Loading
Loading
+8 −1
Changes for max.xq: 8 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -137,7 +137,14 @@ function max:fragmentToHTMLPage($project, $routeDoc, $id){
            try {
                let $html := xslt:transform($xml, $xsltDoc, $xsltParams)

                return max.html:render($project, $routeDoc, <div>{max:invokePluginXQueries($project, $routeDoc, $id)}{$html}</div>, $id)
                return max.html:render(
                        $project, $routeDoc,
                        <div>
                            <div class="plugins-wrapper">
                                {max:invokePluginXQueries($project, $routeDoc, $id)}
                            </div>
                            {$html}
                        </div>, $id)
            }
            catch * {
                max:max-error("Erreur code " || $err:code, $err:description,$err:module, $err:line-number)
−10

File deleted.

+11
Changes for plugins-available/default/side_toc/side_toc.css: 11 added lines, 0 removed lines.
Original line number Diff line number Diff line

.side-toc{
  position: fixed;
  left: 0;
  right: 60vw;
  top: 5.1em;
  bottom: 3.2em;
  margin: 0;
  padding: 1em;
  overflow: auto;
}
 No newline at end of file
+20
Changes for plugins-available/default/side_toc/side_toc.js: 20 added lines, 0 removed lines.
Original line number Diff line number Diff line
function highlightTreeNode(id) {
    let selected_details = document.getElementById(id);
    if (selected_details) {
        selected_details.setAttribute("open", "open");
        selected_details.classList.add("selected_details");
        let current_element = selected_details;
        while (current_element.tagName.toUpperCase() !== "NAV") {
            let parent = current_element.parentElement;
            if (parent.tagName.toUpperCase() === "DETAILS") {
                parent.setAttribute("open", "open");
            }
            current_element = parent;
        }
        let scrollPoint = selected_details.previousSibling;
        if (scrollPoint == null) {
            scrollPoint = selected_details;
        }
        selected_details.scrollIntoView({block: "center"});
    }
}
 No newline at end of file
+14
Changes for plugins-available/default/side_toc/side_toc.xq: 14 added lines, 0 removed lines.
Original line number Diff line number Diff line
import module namespace max.toc = "pddn/max/toc" at '../../rxq/toc.xqm';

declare variable $baseURI external;
declare variable $dbPath external;
declare variable $project external;
declare variable $doc external;
declare variable $id external;

let $toc := max.toc:getDocumentTOC($project, $doc)
let $input := <input type="hidden" name="currentTocItem" value="{$project}/{$doc}/{$id}"></input>
return <div class='side-toc'>{$toc}{$input}</div>

(:<input type="hidden" name="currentEADItem" value="{$projectId}/{$docPath}/{$nodeId}"></input>:)
(:<div class='side-toc'>{max.toc:getDocumentTOC($project, $doc)}</div>:)
 No newline at end of file
Loading