Commit fb022a38 authored by Patrick Barroca's avatar Patrick Barroca 😁
Browse files

hotline #67869 : see all issues limited to same doc type

parent ad440aba
- ticket #67869 : Recherche : le lien "Voir tour les ..." présent dans les notices de périodiques ou les séries filtre désormais au type de document de la notice
\ No newline at end of file
...@@ -108,7 +108,10 @@ class Class_MoteurRecherche { ...@@ -108,7 +108,10 @@ class Class_MoteurRecherche {
public function visitSerie($serie, $tri) { public function visitSerie($serie, $tri) {
$this->setCondition('clef_chapeau="' . $serie . '" '); list($clef, $type) = explode('-', $serie);
$this->setCondition('clef_chapeau="' . $clef . '" ');
if ($type)
$this->setCondition('type_doc="' . $type . '"');
if ($tri == 'date_creation desc') if ($tri == 'date_creation desc')
$this->order_by = 'order by cast(tome_alpha as SIGNED INTEGER) desc'; $this->order_by = 'order by cast(tome_alpha as SIGNED INTEGER) desc';
......
...@@ -35,9 +35,14 @@ class NoticeLoader extends Storm_Model_Loader { ...@@ -35,9 +35,14 @@ class NoticeLoader extends Storm_Model_Loader {
return $notices; return $notices;
} }
public function findFirstNoticeForClefChapeau($clef) { public function findFirstNoticeForClefChapeau($clef) {
return $this->findFirstBy(['clef_chapeau' => $clef]); list($clef, $type) = explode('-', $clef);
$params = ['clef_chapeau' => $clef];
if ($type)
$params['type_doc'] = $type;
return $this->findFirstBy($params);
} }
......
...@@ -332,7 +332,7 @@ class Class_WebService_SIGB_Opsys_Service extends Class_WebService_SIGB_Abstract ...@@ -332,7 +332,7 @@ class Class_WebService_SIGB_Opsys_Service extends Class_WebService_SIGB_Abstract
new RecupererNotice($this->guid, $id)); new RecupererNotice($this->guid, $id));
return $notice_result->createNotice(); return $notice_result->createNotice();
} catch (Exception $e) { } catch (Exception $e) {
$this->_dumpSoapTrace(); //$this->_dumpSoapTrace();
} }
} }
......
...@@ -40,7 +40,7 @@ class ZendAfi_View_Helper_Notice_Entete extends ZendAfi_View_Helper_BaseHelper { ...@@ -40,7 +40,7 @@ class ZendAfi_View_Helper_Notice_Entete extends ZendAfi_View_Helper_BaseHelper {
return ''; return '';
$criteres = new Class_CriteresRecherche(); $criteres = new Class_CriteresRecherche();
$serie = $notice->getClefChapeau(); $serie = $notice->getClefChapeau() . '-' . $notice->getTypeDoc();
$label = Class_Codification::getLibelleForSerie($notice); $label = Class_Codification::getLibelleForSerie($notice);
......
...@@ -64,7 +64,8 @@ class ZendAfi_View_Helper_TagCVSCriteresRecherche extends Zend_View_Helper_HtmlE ...@@ -64,7 +64,8 @@ class ZendAfi_View_Helper_TagCVSCriteresRecherche extends Zend_View_Helper_HtmlE
public function visitSerie($serie) { public function visitSerie($serie) {
$this->criteres[] = $serie; list($clef, $type) = explode('-', $serie);
$this->criteres[] = $clef;
} }
......
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