id; $record["title"] = $notice->tit1; if ($this->parameters['docwatch_datasource_notices_noticetpl_as_summary']) { if(!isset($tpl)){ $tpl = new notice_tpl_gen($this->parameters['docwatch_datasource_notices_noticetpl_as_summary']); } $record["summary"] = $tpl->build_notice($notice->id); } else { $record["summary"] = $notice->n_resume; } $record["content"] = $notice->n_contenu; $record["url"] = $pmb_opac_url."index.php?lvl=notice_display&id=".$notice->id; if (($notice->code || $notice->thumbnail_url) && ($opac_show_book_pics=='1' && ($opac_book_pics_url || $notice->thumbnail_url))) { $logo_url=getimage_url($notice->code, $notice->thumbnail_url); } $record["logo_url"] = $logo_url; $record["publication_date"] = $notice->date_parution; $record["descriptors"] = $notice->categories; if(count($record["descriptors"])) { foreach ($record["descriptors"] as $i=>$descriptor) { $record["descriptors"][$i]['id'] = $descriptor['categ_id']; } } $record["tags"] = ($notice->index_l ? explode($pmb_keyword_sep, $notice->index_l) : ""); $records[] = $record; } } return $records; } public function filter_datas($datas, $user=0){ return $this->filter_notices($datas, $user); } public function get_available_selectors(){ global $msg; return array( "docwatch_selector_notices_caddie" => $msg['dsi_docwatch_selector_notices_caddie'] ); } public function get_form_content(){ global $msg, $charset; if (!isset($this->parameters['docwatch_datasource_notices_noticetpl_as_summary'])) { $this->parameters['docwatch_datasource_notices_noticetpl_as_summary'] = 0; } $form = parent::get_form_content(); $form .= "
 
".notice_tpl_gen::gen_tpl_select("docwatch_datasource_notices_noticetpl_as_summary",$this->parameters['docwatch_datasource_notices_noticetpl_as_summary'], "", 0, 0, $msg['1003'])."
"; return $form; } public function set_from_form() { global $docwatch_datasource_notices_noticetpl_as_summary; $this->parameters['docwatch_datasource_notices_noticetpl_as_summary'] = $docwatch_datasource_notices_noticetpl_as_summary; parent::set_from_form(); } } // end of docwatch_datasource_notices