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

nettoyage breadcrumb.xqm

parent 8482e66d
Loading
Loading
Loading
Loading
−10
Changes for plugins/breadcrumb/breadcrumb.xqm: 0 added lines, 10 removed lines.
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@ module namespace max.plugin.breadcrumb = 'pddn/max/plugin/breadcrumb';

import module namespace max.config = 'pddn/max/config' at '../../rxq/config.xqm';
import module namespace max.util = 'pddn/max/util' at '../../rxq/util.xqm';
import module namespace max.cons = 'pddn/max/cons' at '../../rxq/cons.xqm';
import module namespace rest = "http://exquery.org/ns/restxq";

declare variable $max.plugin.breadcrumb:PLUGIN_ID := "breadcrumb";
@@ -64,12 +63,3 @@ function max.plugin.breadcrumb:buildDocBreadcrumb($project, $route){
declare %private function max.plugin.breadcrumb:getBreadcrumbTop($project){
  max.config:getPluginParameterValue($project, $max.plugin.breadcrumb:PLUGIN_ID, $max.plugin.breadcrumb:TOP_LABEL)
};


(:
Ugly fix.
max.config:getBaseURI() is bad when URL contains spaces (caused by rest:base-uri())
:)
(:declare%private function max.plugin.breadcrumb:getMaxBaseURI(){
  substring-before(max.config:getBaseURI(),"/editions") || "/editions"
};:)
 No newline at end of file