function search($rec_history = false, $fichier_xml = "", $full_path = '') { global $launch_search; $this->parse_search_file($fichier_xml, $full_path); $this->strip_slashes(); foreach ($this->dynamicfields as $key => $value) { $this->pp[$key] = new parametres_perso($value["TYPE"]); } $authpersos = new authpersos(); $this->authpersos = $authpersos->get_data(); $this->rec_history = $rec_history; $this->full_path = $full_path; $this->fichier_xml = $fichier_xml; }
function get_human_query($n) { global $msg; global $opac_search_other_function, $opac_indexation_docnum_allfields; global $include_path; if ($opac_search_other_function) { require_once $include_path . "/" . $opac_search_other_function; } switch ($_SESSION["search_type" . $n]) { case "simple_search": if ($_SESSION["look_TITLE" . $n]) { $r1 .= $msg["titles"] . " "; } if ($_SESSION["look_AUTHOR" . $n]) { $r1 .= $msg["authors"] . " "; } if ($_SESSION["look_PUBLISHER" . $n]) { $r1 .= $msg["publishers"] . " "; } if ($_SESSION["look_TITRE_UNIFORME" . $n]) { $r1 .= $msg["titres_uniformes"] . " "; } if ($_SESSION["look_COLLECTION" . $n]) { $r1 .= $msg["collections"] . " "; } if ($_SESSION["look_SUBCOLLECTION" . $n]) { $r1 .= $msg["subcollections"] . " "; } if ($_SESSION["look_CATEGORY" . $n]) { $r1 .= $msg["categories"] . " "; } if ($_SESSION["look_INDEXINT" . $n]) { $r1 .= $msg["indexint"] . " "; } if ($_SESSION["look_KEYWORDS" . $n]) { $r1 .= $msg["keywords"] . " "; } if ($_SESSION["look_ABSTRACT" . $n]) { $r1 .= $msg["abstract"] . " "; } if ($_SESSION["look_ALL" . $n]) { $r1 .= $msg["tous"] . " " . ($opac_indexation_docnum_allfields ? "[" . $msg[docnum_search_with] . "] " : ''); } if ($_SESSION["look_DOCNUM" . $n]) { $r1 .= $msg["docnum"] . " "; } if ($_SESSION["look_CONTENT" . $n]) { $r1 .= " "; } if ($_SESSION["look_CONCEPT" . $n]) { $r1 .= $msg["skos_concept"] . " "; } $authpersos = new authpersos(); $r1 .= $authpersos->get_human_query($n); if ($_SESSION["typdoc" . $n]) { $doctype = new marc_list('doctype'); $r2 = sprintf($msg["simple_search_history_doc_type"], $doctype->table[$_SESSION["typdoc" . $n]]); } else { $r2 = $msg["simple_search_history_all_doc_types"]; } if ($opac_search_other_function) { $r3 = search_other_function_human_query($n); if ($r3) { $r2 .= ", " . $r3; } } $r = sprintf($msg["simple_search_history"], stripslashes($_SESSION["user_query" . $n]), $r1, $r2); if ($_SESSION["map_emprises_query" . $n]) { $r .= $msg["map_history_emprises"] . implode(" ", $_SESSION["map_emprises_query" . $n]); } break; case "extended_search": $r = sprintf($msg["extended_search_history"], stripslashes($_SESSION["human_query" . $n])); break; case "term_search": if ($_SESSION["search_term" . $n] == "") { $r1 = "(tous les termes)"; } else { $r1 = stripslashes($_SESSION["search_term" . $n]); } $r = sprintf($msg["term_search_history"], $r1, $_SESSION["page_search" . $n] + 1, $_SESSION["term_click" . $n]); break; case "module": $r = sprintf($msg["navigation_search_libelle"], stripslashes($_SESSION["human_query" . $n])); break; } return $r; }
function get_form($caller = "categ_form") { global $msg, $add_aut_link, $aut_link0, $aut_link1, $form_aut_link; global $thesaurus_concepts_active, $charset; $form = $add_aut_link; $js_aut_link_table_list = "\n\t\tvar aut_link_table_select=Array();\n\t\taut_link_table_select[" . AUT_TABLE_AUTHORS . "]='./select.php?what=auteur&caller={$caller}&dyn=2¶m1=';\t\t\n\t\taut_link_table_select[" . AUT_TABLE_CATEG . "]='./select.php?what=categorie&caller={$caller}&dyn=2&parent=1&p1=';\n\t\taut_link_table_select[" . AUT_TABLE_PUBLISHERS . "]='./select.php?what=editeur&caller={$caller}&dyn=2&p1=';\n\t\taut_link_table_select[" . AUT_TABLE_COLLECTIONS . "]='./select.php?what=collection&caller={$caller}&dyn=2&p1=';\n\t\taut_link_table_select[" . AUT_TABLE_SUB_COLLECTIONS . "]='./select.php?what=subcollection&caller={$caller}&dyn=2&p1=';\n\t\taut_link_table_select[" . AUT_TABLE_SERIES . "]='./select.php?what=serie&caller={$caller}&dyn=2¶m1=';\n\t\taut_link_table_select[" . AUT_TABLE_TITRES_UNIFORMES . "]='./select.php?what=titre_uniforme&caller={$caller}&dyn=2¶m1=';\n\t\taut_link_table_select[" . AUT_TABLE_INDEXINT . "]='./select.php?what=indexint&caller={$caller}&dyn=2¶m1=';\n\t\taut_link_table_select[" . AUT_TABLE_CONCEPT . "]='./select.php?what=ontology&caller={$caller}&objs={$objs}&element=concept&dyn=2¶m1=';\n\t\t"; if ($thesaurus_concepts_active) { $concept_sel = "<option value='" . AUT_TABLE_CONCEPT . "'>" . $msg["ontology_skos_menu"] . "</option>"; } $aut_table_list = "\n\t\t<select id='f_aut_link_table_list' name='f_aut_link_table_list'>\n\t\t\t<option value='" . AUT_TABLE_AUTHORS . "' selected='selected'>" . $msg[133] . "</option>\n\t\t\t<option value='" . AUT_TABLE_CATEG . "'>" . $msg[134] . "</option>\n\t\t\t<option value='" . AUT_TABLE_PUBLISHERS . "'>" . $msg[135] . "</option>\n\t\t\t<option value='" . AUT_TABLE_COLLECTIONS . "'>" . $msg[136] . "</option>\n\t\t\t<option value='" . AUT_TABLE_SUB_COLLECTIONS . "'>" . $msg[137] . "</option>\n\t\t\t<option value='" . AUT_TABLE_SERIES . "'>" . $msg[333] . "</option>\n\t\t\t<option value='" . AUT_TABLE_TITRES_UNIFORMES . "'>" . $msg["aut_menu_titre_uniforme"] . "</option>\n\t\t\t<option value='" . AUT_TABLE_INDEXINT . "'>" . $msg["indexint_menu"] . "</option>\n\t\t\t{$concept_sel}\n\t\t\t!!autpersos!!\n\t\t</select>"; $authpersos = new authpersos(); $info = $authpersos->get_data(); $tpl_list = ""; foreach ($info as $elt) { $tpl_elt = "<option value='!!id_authperso!!'>!!name!!</option>"; $tpl_elt = str_replace('!!name!!', $elt['name'], $tpl_elt); $tpl_elt = str_replace('!!id_authperso!!', $elt['id'] + 1000, $tpl_elt); $js_aut_link_table_list .= "aut_link_table_select[" . ($elt['id'] + 1000) . "]='./select.php?what=authperso&authperso_id=" . $elt['id'] . "&caller={$caller}&dyn=2¶m1=';"; $tpl_list .= $tpl_elt; } $aut_table_list = str_replace('!!autpersos!!', $tpl_list, $aut_table_list); $i = 0; if (!count($this->aut_list)) { // pas d'enregistrement $form .= $aut_link0; $liste_type_relation = new marc_select("relationtype_aut", "f_aut_link_type{$i}", $aut["type"], "", "", "", array(array('name' => 'data-form-name', 'value' => 'f_aut_link_type'))); $form = str_replace("!!aut_link_type!!", $liste_type_relation->display, $form); $form = str_replace("!!aut_link_reciproc!!", "unchecked='unchecked'", $form); $form = str_replace("!!aut_link!!", $i, $form); $form = str_replace("!!aut_link_libelle!!", "", $form); $form = str_replace("!!aut_link_table!!", "", $form); $form = str_replace("!!aut_link_id!!", "", $form); $form = str_replace("!!aut_link_comment!!", "", $form); $i++; } else { foreach ($this->aut_list as $aut) { // Construction de chaque ligne du formulaire if ($i) { $form_suivant = $aut_link1; } else { $form_suivant = $aut_link0; } if ($aut["flag_reciproc"]) { $liste_type_relation = new marc_select("relationtype_autup", "f_aut_link_type{$i}", $aut["type"], "", "", "", array(array('name' => 'data-form-name', 'value' => 'f_aut_link_type'))); } else { $liste_type_relation = new marc_select("relationtype_aut", "f_aut_link_type{$i}", $aut["type"], "", "", "", array(array('name' => 'data-form-name', 'value' => 'f_aut_link_type'))); } $form_suivant = str_replace("!!aut_link_type!!", $liste_type_relation->display, $form_suivant); if ($aut["reciproc"]) { $check = "checked='checked'"; } else { $check = ""; } $form_suivant = str_replace("!!aut_link_reciproc!!", $check, $form_suivant); $form_suivant = str_replace("!!aut_link!!", $i, $form_suivant); $form_suivant = str_replace("!!aut_link_libelle!!", htmlentities($aut["libelle"], ENT_QUOTES, $charset, false), $form_suivant); $form_suivant = str_replace("!!aut_link_table!!", $aut["to"], $form_suivant); $form_suivant = str_replace("!!aut_link_id!!", $aut["to_num"], $form_suivant); $form_suivant = str_replace("!!aut_link_comment!!", $aut["comment"], $form_suivant); $form .= $form_suivant; $i++; } } $form = str_replace("!!max_aut_link!!", $i, $form); $form = str_replace("!!js_aut_link_table_list!!", $js_aut_link_table_list, $form); $form = str_replace("!!aut_table_list!!", $aut_table_list, $form); $form = str_replace("!!aut_link_contens!!", $form, $form_aut_link); return $form; }
function make_search() { global $opac_modules_search_title, $opac_modules_search_author, $opac_modules_search_publisher; global $opac_modules_search_titre_uniforme, $opac_modules_search_collection, $opac_modules_search_subcollection; global $opac_modules_search_category, $opac_modules_search_indexint, $opac_modules_search_keywords; global $opac_modules_search_abstract, $opac_modules_search_docnum, $opac_modules_search_all, $opac_modules_search_concept; global $look_TITLE, $look_AUTHOR, $look_PUBLISHER, $look_TITRE_UNIFORME, $look_COLLECTION, $look_SUBCOLLECTION; global $look_CATEGORY, $look_INDEXINT, $look_KEYWORDS, $look_ABSTRACT, $look_DOCNUM, $look_ALL, $look_CONCEPT; global $user_query; $this->user_query = $user_query; if ($opac_modules_search_title && $look_TITLE) { $total_results += $this->search_title(); } if ($opac_modules_search_author && $look_AUTHOR) { $total_results += $this->search_authors(); } if ($opac_modules_search_publisher && $look_PUBLISHER) { $total_results += $this->search_publishers(); } if ($opac_modules_search_titre_uniforme && $look_TITRE_UNIFORME) { $total_results += $this->search_titres_uniformes(); } if ($opac_modules_search_collection && $look_COLLECTION) { $total_results += $this->search_collections(); } if ($opac_modules_search_subcollection && $look_SUBCOLLECTION) { $total_results += $this->search_subcollections(); } if ($opac_modules_search_category && $look_CATEGORY) { $total_results += $this->search_categories(); } if ($opac_modules_search_indexint && $look_INDEXINT) { $total_results += $this->search_indexints(); } if ($opac_modules_search_keywords && $look_KEYWORDS) { $total_results += $this->search_keywords(); } if ($opac_modules_search_abstract && $look_ABSTRACT) { $total_results += $this->search_abstracts(); } if ($opac_modules_search_docnum && $look_DOCNUM) { $total_results += $this->search_docnums(); } if ($opac_modules_search_concept && $look_CONCEPT) { $total_results += $this->search_concepts(); } $authpersos = new authpersos(); $total_results += $authpersos->search_authperso($this->user_query); /*if ($opac_modules_search_all && $look_ALL) { require_once($base_path.'/search/level1/tous.inc.php'); $total_results += $nb_result; $nb_all_results=$nb_result; }*/ return $total_results; }
<?php // +-------------------------------------------------+ // © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net) // +-------------------------------------------------+ // $Id: oeuvre_event.inc.php,v 1.1 2015-10-16 13:19:23 ngantier Exp $ if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) { die("no access"); } require_once "{$class_path}/authperso.class.php"; require_once './selectors/templates/sel_authperso.tpl.php'; include "{$base_path}/selectors/templates/sel_oeuvre_event.tpl.php"; // la variable $caller, passée par l'URL, contient le nom du form appelant $base_url = "./select.php?what=oeuvre_event&authperso_id={$authperso_id}&caller={$caller}&p1={$p1}&p2={$p2}&p3={$p3}&p4={$p4}&p5={$p5}&p6={$p6}&no_display={$no_display}&bt_ajouter={$bt_ajouter}&dyn={$dyn}&callback={$callback}&infield={$infield}" . "&max_field=" . $max_field . "&field_id=" . $field_id . "&field_name_id=" . $field_name_id . "&add_field=" . $add_field; $authpersos = authpersos::get_oeuvre_event_authpersos(); if (!count($authpersos)) { print $msg['oeuvre_event_sel_no']; exit; } if (!$authperso_id) { $authperso_id = $authpersos[0]['id']; } if ($deb_rech) { $f_user_input = $deb_rech; } if ($f_user_input == "" && $user_input == "") { $user_input = ''; } else { // traitement de la saisie utilisateur if ($user_input) { $f_user_input = $user_input;
// +-------------------------------------------------+ // © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net) // +-------------------------------------------------+ // $Id: autorites.php,v 1.14 2015-04-03 11:16:23 jpermanne Exp $ // définition du minimum nécéssaire $base_path = "."; $base_auth = "AUTORITES_AUTH"; $base_title = "\$msg[132]"; $base_use_dojo = 1; require_once "{$base_path}/includes/init.inc.php"; require_once $class_path . "/authperso.class.php"; // modules propres à autorites.php ou à ses sous-modules require "{$include_path}/templates/autorites.tpl.php"; print "<div id='att' style='z-Index:1000'></div>"; print $menu_bar; print $extra; print $extra2; print $extra_info; if ($use_shortcuts) { include "{$include_path}/shortcuts/circ.sht"; } $authpersos = new authpersos(); $autorites_layout = str_replace('!!authpersos!!', $authpersos->get_menu(), $autorites_layout); print $autorites_layout; include "./autorites/autorites.inc.php"; print $autorites_layout_end; // pied de page print $footer; // deconnection MYSql pmb_mysql_close($dbh);
function save_form() { global $dbh; $authpersos = new authpersos(); $infos = $authpersos->get_data(); if (!count($infos)) { return; } $this->delete(); foreach ($infos as $authperso) { $authperso_id = $authperso['id']; $max_authperso = "max_authperso_" . $authperso_id; global ${$max_authperso}; $max_authperso = ${$max_authperso}; $order = 0; $tab_authperso_order = "tab_authperso_order_" . $authperso_id; global ${$tab_authperso_order}; $tab_authperso_order = ${$tab_authperso_order}; // value="authperso_1_2,authperso_1_0,authperso_1_1" .... $tab_order = explode(',', $tab_authperso_order); foreach ($tab_order as $string_order) { $tab_string_order = explode("_", $string_order); $final_ordre[] = $tab_string_order[2]; } if ($final_ordre) { $order = 0; foreach ($final_ordre as $old_order) { $auth_id = "f_authperso_id_" . $authperso_id . "_" . $old_order; global ${$auth_id}; $auth_id = ${$auth_id}; if ($auth_id) { $req = "insert into notices_authperso set notice_authperso_notice_num=" . $this->id . ", notice_authperso_authority_num= {$auth_id}, notice_authperso_order=" . $order; $result = pmb_mysql_query($req, $dbh); $order++; } } } else { $order = 0; for ($i = 0; $i < $max_authperso; $i++) { $auth_id = "f_authperso_id_" . $authperso_id . "_" . $i; global ${$auth_id}; $auth_id = ${$auth_id}; if ($auth_id) { $req = "insert into notices_authperso set notice_authperso_notice_num=" . $this->id . ", notice_authperso_authority_num= {$auth_id}, notice_authperso_order=" . $order; $result = pmb_mysql_query($req, $dbh); $order++; } } } } }
<?php // +-------------------------------------------------+ // © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net) // +-------------------------------------------------+ // $Id: main.inc.php,v 1.13 2014-10-30 16:14:59 dgoron Exp $ if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) { die("no access"); } // page de switch recherche notice // inclusions principales require_once "{$include_path}/templates/notice_search.tpl.php"; require_once "{$class_path}/authperso.class.php"; $authpersos = new authpersos(); $info_authpersos = $authpersos->get_data(); foreach ($info_authpersos as $authperso) { if ($authperso['gestion_search'] != 2) { continue; } // pas de boutton $tpl_elt = $menu_search_tpl; $tpl_elt = str_replace("!!label!!", htmlentities(stripslashes($authperso['name']), ENT_QUOTES, $charset), $tpl_elt); $tpl_elt = str_replace("!!mode!!", $authperso['id'] + 1000, $tpl_elt); $selected = ""; if ($mode == $authperso['id'] + 1000) { $selected = "class=\"selected\""; } $tpl_elt = str_replace("!!selected!!", $selected, $tpl_elt); $tpl_authperso .= $tpl_elt; $authperso_list_name[$authperso['id'] + 1000] = $authperso['name']; }
function search($fichier_xml = "") { global $launch_search; $this->parse_search_file($fichier_xml); $this->strip_slashes(); foreach ($this->dynamicfields as $key => $value) { $this->pp[$key] = new parametres_perso($value["TYPE"]); } $authpersos = new authpersos(); $this->authpersos = $authpersos->get_data(); }
} if ($typdoc || $add_notice) { $clause = ', notices, notices_authperso ' . $clause; } if ($typdoc) { $clause .= " and notice_authperso_notice_num=notice_id and typdoc='" . $typdoc . "' "; } if ($add_notice) { $clause .= ' and notice_id in (' . $add_notice . ')'; } $tri = 'order by pert desc, authperso_index_infos_global'; $pert = $members["select"] . " as pert"; $auth_res = pmb_mysql_query("SELECT COUNT(distinct id_authperso_authority) FROM authperso_authorities {$clause}", $dbh); $nb_result = pmb_mysql_result($auth_res, 0, 0); if ($nb_result) { $authority_name = authpersos::get_name($id_authperso); //définition du formulaire $form = "<div style=search_result><form name=\"search_authperso_" . $id_authperso . "\" action=\"./index.php?lvl=more_results\" method=\"post\">"; $form .= "<input type=\"hidden\" name=\"user_query\" value=\"" . htmlentities(stripslashes($user_query), ENT_QUOTES, $charset) . "\">\n"; if (function_exists("search_other_function_post_values")) { $form .= search_other_function_post_values(); } $form .= "<input type=\"hidden\" name=\"mode\" value=\"authperso_" . $id_authperso . "\">\n"; $form .= "<input type=\"hidden\" name=\"search_type_asked\" value=\"simple_search\">\n"; $form .= "<input type=\"hidden\" name=\"count\" value=\"" . $nb_result . "\">\n"; $form .= "<input type=\"hidden\" name=\"name\" value=\"" . htmlentities($authority_name, ENT_QUOTES, $charset) . "\">\n"; $form .= "<input type=\"hidden\" name=\"clause\" value=\"" . htmlentities($clause, ENT_QUOTES, $charset) . "\">"; $form .= "<input type=\"hidden\" name=\"pert\" value=\"" . htmlentities($pert, ENT_QUOTES, $charset) . "\">\n"; $form .= "<input type=\"hidden\" name=\"tri\" value=\"" . htmlentities($tri, ENT_QUOTES, $charset) . "\"></form>\n"; $form .= "</div>"; $_SESSION["level1"]["authperso_" . $id_authperso]["form"] = $form;
private static function get_authorities_list() { global $msg, $thesaurus_concepts_active, $pmb_use_uniform_title; $authorities = array(AUT_TABLE_AUTHORS => $msg['133'], AUT_TABLE_CATEG => $msg['134'], AUT_TABLE_PUBLISHERS => $msg['135'], AUT_TABLE_COLLECTIONS => $msg['136'], AUT_TABLE_SUB_COLLECTIONS => $msg['137'], AUT_TABLE_SERIES => $msg['333'], AUT_TABLE_INDEXINT => $msg['indexint_menu']); if ($pmb_use_uniform_title) { $authorities[AUT_TABLE_TITRES_UNIFORMES] = $msg['aut_menu_titre_uniforme']; } if ($thesaurus_concepts_active) { $authorities[AUT_TABLE_CONCEPT] = $msg['ontology_skos_menu']; } $authpersos = new authpersos(); $info_authpersos = $authpersos->get_data(); foreach ($info_authpersos as $authperso) { $authorities[$authperso['id'] + 1000] = $authperso['name']; } return $authorities; }
function get_field_text($n) { $typ_search = $_SESSION["notice_view" . $n]["search_mod"]; switch ($_SESSION["notice_view" . $n]["search_mod"]) { case 'title': $valeur_champ = $_SESSION["user_query" . $n]; $typ_search = "look_TITLE"; break; case 'all': $valeur_champ = $_SESSION["user_query" . $n]; $typ_search = "look_ALL"; break; case 'abstract': $valeur_champ = $_SESSION["user_query" . $n]; $typ_search = "look_ABSTRACT"; break; case 'keyword': $valeur_champ = $_SESSION["user_query" . $n]; $typ_search = "look_KEYWORDS"; break; case 'author_see': //Recherche de l'auteur $author_id = $_SESSION["notice_view" . $n]["search_id"]; $requete = "select concat(author_name,', ',author_rejete) from authors where author_id='" . addslashes($author_id) . "'"; $r_author = pmb_mysql_query($requete); if (@pmb_mysql_num_rows($r_author)) { $valeur_champ = pmb_mysql_result($r_author, 0, 0); } $typ_search = "look_AUTHOR"; break; case 'categ_see': //Recherche de la categorie $categ_id = $_SESSION["notice_view" . $n]["search_id"]; $requete = "select libelle_categorie from categories where num_noeud='" . addslashes($categ_id) . "'"; $r_cat = pmb_mysql_query($requete); if (@pmb_mysql_num_rows($r_cat)) { $valeur_champ = pmb_mysql_result($r_cat, 0, 0); } $typ_search = "look_CATEGORY"; break; case 'indexint_see': //Recherche de l'indexation $indexint_id = $_SESSION["notice_view" . $n]["search_id"]; $requete = "select indexint_name from indexint where indexint_id='" . addslashes($indexint_id) . "'"; $r_indexint = pmb_mysql_query($requete); if (@pmb_mysql_num_rows($r_indexint)) { $valeur_champ = pmb_mysql_result($r_indexint, 0, 0); } $typ_search = "look_INDEXINT"; break; case 'coll_see': //Recherche de l'indexation $coll_id = $_SESSION["notice_view" . $n]["search_id"]; $requete = "select collection_name from collections where collection_id='" . addslashes($coll_id) . "'"; $r_coll = pmb_mysql_query($requete); if (@pmb_mysql_num_rows($r_coll)) { $valeur_champ = pmb_mysql_result($r_coll, 0, 0); } $typ_search = "look_COLLECTION"; break; case 'publisher_see': //Recherche de l'editeur $publisher_id = $_SESSION["notice_view" . $n]["search_id"]; $requete = "select ed_name from publishers where ed_id='" . addslashes($publisher_id) . "'"; $r_pub = pmb_mysql_query($requete); if (@pmb_mysql_num_rows($r_pub)) { $valeur_champ = pmb_mysql_result($r_pub, 0, 0); } $typ_search = "look_PUBLISHER"; break; case 'titre_uniforme_see': //Recherche de titre uniforme $tu_id = $_SESSION["notice_view" . $n]["search_id"]; $requete = "select tu_name from titres_uniformes where ed_id='" . addslashes($tu_id) . "'"; $r_tu = pmb_mysql_query($requete); if (@pmb_mysql_num_rows($r_tu)) { $valeur_champ = pmb_mysql_result($r_tu, 0, 0); } $typ_search = "look_TITRE_UNIFORME"; break; case 'subcoll_see': //Recherche de l'editeur $subcoll_id = $_SESSION["notice_view" . $n]["search_id"]; $requete = "select sub_coll_name from sub_collections where sub_coll_id='" . addslashes($subcoll_id) . "'"; $r_subcoll = pmb_mysql_query($requete); if (@pmb_mysql_num_rows($r_subcoll)) { $valeur_champ = pmb_mysql_result($r_subcoll, 0, 0); } $typ_search = "look_SUBCOLLECTION"; break; case 'authperso_see': $authpersos = new authpersos(); $info = $authpersos->get_field_text($_SESSION["notice_view" . $n]["search_id"]); $valeur_champ = $info['valeur_champ']; $typ_search = $info['typ_search']; break; case 'concept_see': $concept = new skos_concept($_SESSION["notice_view" . $n]["search_id"]); $valeur_champ = $concept->get_display_label(); $typ_search = "look_CONCEPT"; break; } return array($valeur_champ, $typ_search); }