Skip to content
Snippets Groups Projects
Commit 576c4121 authored by llaffont's avatar llaffont
Browse files

CVS:

- les notices s'ouvrent dans une nouvelle page
- recherche classées par + consultées
parent fcfb1b82
Branches
Tags
No related merge requests found
......@@ -459,6 +459,7 @@ $(document).ready(function(){
$('#cvs_resultat').load(url);
return false;
});
$('a[href*=\"modules/cvs\"]').attr('target', '_blank');
});</script><div id='cvs_resultat'>";
$html .= $helper->listeCVSNotices($notices,$cvs->getTotalNotices(),$criteres_recherche->getPage(),$this->preferences);
......
......@@ -138,7 +138,14 @@ class Class_CVSLink extends Class_WebService_Abstract {
function getCvsSearchNotices($query,$page,$nb_par_page){
$notices=[];
$this->parser = $this->callCVS('search_document', ['q' => $query,'espace'=> '','classement' => 'pertinence', 'page' => $page, 'nombre_par_page' => $nb_par_page], $infos);
$this->parser = $this->callCVS('search_document',
['q' => $query,
'espace'=> '',
'classement' =>
'consultes',
'page' => $page,
'nombre_par_page' => $nb_par_page],
$infos);
if ($this->parser->isSuccess())
$notices=$this->parser->getNotices();
......
......@@ -76,7 +76,7 @@ class CVSLinkSearchTest extends CVSLinkTestCase {
</header><body>
<q><![CDATA[ecole]]></q>
<espace><![CDATA[]]></espace>
<classement><![CDATA[pertinence]]></classement>
<classement><![CDATA[consultes]]></classement>
<page><![CDATA[1]]></page>
<nombre_par_page><![CDATA[5]]></nombre_par_page>
</body></albums>
......
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