Commit 286045da authored by Vincent Calame's avatar Vincent Calame

Possibilité de passer des paramètres baselist, corpuslist, etc. passés ensuite dans la recherche

parent 4a59af26
......@@ -23,6 +23,7 @@ switch($GLOBALS['scrutari']['page']) {
initFramework();
initHide();
initQuery();
initFilters();
initDev();
include('pages/engine.php');
break;
......@@ -192,6 +193,19 @@ function initQuery() {
$GLOBALS['scrutari']['qid'] = $qid;
}
function initFilters() {
initFilter('baselist');
initFilter('corpuslist');
initFilter('categorylist');
initFilter('langlist');
}
function initFilter($name) {
if(isset($_REQUEST[$name])) {
$GLOBALS['scrutari'][$name] = trim($_REQUEST[$name]);
}
}
function initDev() {
$dev = false;
if(isset($_REQUEST['dev'])) {
......
......@@ -266,6 +266,13 @@ for($i = 0; $i < $count; $i++) {
?>
permalinkPattern: "<?php echo addslashes(getPermalinkPattern());?>",
initialFilters: {
<?php addOption('baselist', 'baselist');
addOption('corpuslist', 'corpuslist');
addOption('categorylist', 'categorylist');
addOption('langlist', 'langlist'); ?>
end: true
},
templateFactory: scrutari_templateFactory
}, scrutari_callback);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment