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

Revert "Liens réseaux sociaux contiennent le permalien avec clef alpha"

This reverts commit 177b248c.
parent b2ee4f55
No related merge requests found
......@@ -147,7 +147,7 @@ class ZendAfi_View_Helper_ListeNotices extends ZendAfi_View_Helper_BaseHelper {
return $this->view->url(array('controller' => 'recherche',
'action' => 'viewnotice',
'clef' => $notice['clef_alpha'],
'type_doc' => $notice['type_doc']));
'type_doc' => $notice[$type_doc]));
}
......@@ -290,7 +290,7 @@ class ZendAfi_View_Helper_ListeNotices extends ZendAfi_View_Helper_BaseHelper {
$notice["titre_principal"]=$notice["T"];
$notice["auteur_principal"]=$notice["A"];
$img=Class_WebService_Vignette::getUrl($notice["id_notice"],true);
$url = $this->urlNotice($notice);
$url = $this->urlNotice($notice["id_notice"], $notice["type_doc"]);
//$url='javascript:document.getElementById(\'Nnotice\').style.display=\'block\';getNoticeAjax(\'N'.$notice["id_notice"].'\',\'Nnotice\')';
if($images) $images.=",";
$images.='"'.$img["vignette"].'","'.$url.'"';
......
......@@ -31,11 +31,10 @@ class ZendAfi_View_Helper_ReseauxSociaux extends ZendAfi_View_Helper_BaseHelper
function reseauxSociaux($type,$id_notice,$type_doc=0)
{
// Url en fonction du type
$notice = Class_Notice::find($id_notice);
$id_profil = Class_Profil::getCurrentProfil()->getId();
switch($type) {
case "notice" : $url_portail="/recherche/viewnotice/clef/".$notice->getClefAlpha()."?id_profil=".$id_profil."&type_doc=".$notice->getTypeDoc(); break;
case "article" : $url_portail="/cms/articleview/id/".$notice->getId()."?id_profil=".$id_profil; break;
switch($type)
{
case "notice" : $url_portail="/recherche/viewnotice/id/".$id_notice."?id_profil=".$_SESSION["id_profil"]."?type_doc=".$type_doc; break;
case "article" : $url_portail="/cms/articleview/id/".$id_notice."?id_profil=".$_SESSION["id_profil"]; break;
}
......
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