Exemple #1
0
 /** displays the doc as POSTed to Solr */
 public function getSolrXml($r)
 {
     $user = $r->getUser();
     if (!$user->can('read', $this->item)) {
         $r->renderError(401, 'user cannot read this item');
     }
     $solr = new Dase_Solr($this->db, $this->config);
     $r->renderResponse($solr->buildItemSolrDoc($this->item));
 }