id; $record["title"] = $notice->tit1; $record["summary"] = $notice->n_resume; $record["content"] = $notice->n_resume; $record["url"] = $pmb_opac_url."index.php?lvl=notice_display&id=".$notice->id; if ($notice->code || $notice->thumbnail_url) { if ($opac_show_book_pics=='1' && ($opac_book_pics_url || $notice->thumbnail_url)) { $code_chiffre = pmb_preg_replace('/-|\.| /', '', $notice->code); $url_image = $opac_book_pics_url ; $url_image = $pmb_opac_url."getimage.php?url_image=".urlencode($url_image)."&noticecode=!!noticecode!!&vigurl=".urlencode($notice->thumbnail_url) ; if ($notice->thumbnail_url) { $logo_url=$notice->thumbnail_url; } else { $logo_url = str_replace("!!noticecode!!", $code_chiffre, $url_image) ; } } else{ $logo_url = ""; } } $record["logo_url"] = $logo_url; $record["publication_date"] = $notice->date_parution; $record["descriptors"] = $notice->categories; $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'] ); } } // end of docwatch_datasource_notices