amalgame/commit
move multifile decl for ag:menu_item/2 to the right module
author | Jacco van Ossenbruggen |
---|---|
Fri Aug 8 12:13:11 2014 +0200 | |
committer | Jacco van Ossenbruggen |
Fri Aug 8 12:13:11 2014 +0200 | |
commit | 72f9755cb1e8297d0fb855bf5adb88f3527da69c |
tree | 619e4f767666a5cc629d67fec5ba2dcab14c9055 |
parent | df29ee37f7045442ecfe0cbf5afb805f0b7d1c15 |
Diff style: patch stat
diff --git a/applications/analyser.pl b/applications/analyser.pl index 0beee1f..c81f81e 100644 --- a/applications/analyser.pl +++ b/applications/analyser.pl @@ -12,8 +12,6 @@ :- use_module(library(amalgame/irr)). :- use_module(library(amalgame/util)). :- use_module(components(amalgame/util)). -:- multifile - ag:menu_item/2. % temp commented out % ag:menu_item(240=http_ag_analyse, 'analyse'). diff --git a/applications/builder.pl b/applications/builder.pl index 72b1929..3e3f3aa 100644 --- a/applications/builder.pl +++ b/applications/builder.pl @@ -27,9 +27,6 @@ :- use_module(api(ag_process)). -:- multifile - ag:menu_item/2. - % http handlers for this applications :- http_handler(amalgame(app/build), http_ag_build, []). diff --git a/applications/evaluater.pl b/applications/evaluater.pl index 80dd3db..69f86f3 100644 --- a/applications/evaluater.pl +++ b/applications/evaluater.pl @@ -36,9 +36,6 @@ amalgame_module(amalgame:'EvaluationProcess'). -:- multifile - ag:menu_item/2. - ag:menu_item(210=http_ag_evaluate, 'evaluate'). % http handlers for this applications diff --git a/applications/publisher.pl b/applications/publisher.pl index 9a1f6e3..006fa92 100644 --- a/applications/publisher.pl +++ b/applications/publisher.pl @@ -12,9 +12,6 @@ :- use_module(library(amalgame/util)). :- use_module(components(amalgame/util)). -:- multifile - ag:menu_item/2. - :- setting(amalgame:default_publish_namespace, atom, 'http://localhost/ns/', 'Default namespace to use on alignment results. Can be changed later.'). diff --git a/components/amalgame/util.pl b/components/amalgame/util.pl index 7d0b493..e69c18a 100644 --- a/components/amalgame/util.pl +++ b/components/amalgame/util.pl @@ -12,6 +12,9 @@ :- use_module(library(semweb/rdf_db)). :- use_module(library(semweb/rdf_label)). +:- multifile + ag:menu_item/2. + html_ag_header(Options) --> { findall(Rank-(Path-Label), ag:menu_item(Rank=Path, Label), Items0),