Changeset 1634


Ignore:
Timestamp:
Oct 4, 2010, 3:01:35 AM (10 years ago)
Author:
teymour
Message:

Des RSS pour les objects + description

Location:
cpc/trunk/project/apps/frontend
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/config/routing.yml

    r1582 r1634  
    446446parlementaire_amendements_rss:
    447447  url: /:slug/amendements/rss
    448   param: {module: parlementaire, action: rss, object_type: Amendement, title: "Tous les amendements signés par %"}
     448  param: {module: parlementaire, action: rss, object_name: Amendement, title: "Tous les amendements signés par %"}
    449449parlementaire_presences_type:
    450450  url: /:slug/presences/:type
     
    470470parlementaire_questions_rss:
    471471  url: /:slug/questions/rss
    472   param: {module: parlementaire, action: rss, object_type: QuestionEcrite, title: "Toutes les questions écrites de %"}
     472  param: {module: parlementaire, action: rss, object_name: QuestionEcrite, title: "Toutes les questions écrites de %"}
    473473parlementaire_documents:
    474474  url: /:slug/documents/:type
     
    476476parlementaire_documents_rss:
    477477  url: /:slug/documents/:type/rss
    478   param: {module: parlementaire, action: rss, object_type: Document, title: "Tous les documents parlementaires de %"}
    479 
     478  param: {module: parlementaire, action: rss, object_name: Document, title: "Tous les documents parlementaires de %"}
     479
  • cpc/trunk/project/apps/frontend/modules/solr/actions/actions.class.php

    r1626 r1634  
    7070    }
    7171    //Récupère les résultats auprès de SolR
    72     $params = array('hl'=>'true', 'fl' => 'id,object_id,object_name,date', 'hl.fragsize'=>500, "facet"=>"true", "facet.field"=>array("object_name","tag"), "facet.date" => "date", "facet.date.start"=>"2007-05-01T00:00:00Z", "facet.date.end"=>"NOW", "facet.date.gap"=>"+1MONTH", 'fq' => $fq, "facet.date.include" => "edge");
     72    $params = array('hl'=>'true', 'fl' => 'id,object_id,object_name,date,description', 'hl.fragsize'=>500, "facet"=>"true", "facet.field"=>array("object_name","tag"), "facet.date" => "date", "facet.date.start"=>"2007-05-01T00:00:00Z", "facet.date.end"=>"NOW", "facet.date.gap"=>"+1MONTH", 'fq' => $fq, "facet.date.include" => "edge");
    7373    $this->sort_type = 'pertinence';
    7474
     
    212212        $this->results['docs'][$i]['highlighting'] = preg_replace('/^'."$this->results['docs'][$i]['personne']".'/', '', implode('...', $high_res));
    213213      }
    214       else $this->results['docs'][$i]['highlighting'] = '';
     214      else $this->results['docs'][$i]['highlighting'] = $this->results['docs'][$i]['description'];
    215215    }
    216216   
Note: See TracChangeset for help on using the changeset viewer.