function aff_suite()
 {
     global $msg;
     global $charset;
     // afin d'eviter de recalculer un truc deja calcule..
     if ($this->affichage_suite) {
         return $this->affichage_suite;
     }
     // serials : si article
     $ret .= $this->genere_in_perio();
     // resume	if($this->notice->n_resume)
     if ($this->notice->n_resume) {
         $ret .= "<tr><td align='right' class='bg-grey'><b>" . $msg['n_resume_start'] . "</b></td><td>" . nl2br(htmlentities($this->notice->n_resume, ENT_QUOTES, $charset)) . "</td></tr>";
     }
     // note de contenu
     if ($this->notice->n_contenu) {
         $ret .= "<tr><td align='right' class='bg-grey'><b>" . $msg['n_contenu_start'] . "</b></td><td>" . nl2br(htmlentities($this->notice->n_contenu, ENT_QUOTES, $charset)) . "</td></tr>";
     }
     // Categories
     if ($this->categories_toutes) {
         $ret .= "<tr><td align='right' class='bg-grey'><b>" . $msg['categories_start'] . "</b></td><td>" . $this->categories_toutes . "</td></tr>";
     }
     // Concepts
     $concepts_list = new skos_concepts_list();
     if ($concepts_list->set_concepts_from_object(TYPE_NOTICE, $this->notice_id)) {
         $ret .= "<tr><td align='right' class='bg-grey'><b>" . $msg['concepts_start'] . "</b></td><td>" . skos_view_concepts::get_list_in_notice($concepts_list) . "</td></tr>";
     }
     // indexation libre
     $mots_cles = $this->do_mots_cle();
     if ($mots_cles) {
         $ret .= "<tr><td align='right' class='bg-grey'><b>" . $msg['motscle_start'] . "</b></td><td>" . $mots_cles . "</td></tr>";
     }
     // indexation interne
     if ($this->notice->indexint) {
         $indexint = new indexint($this->notice->indexint);
         $ret .= "<tr><td align='right' class='bg-grey'><b>" . $msg['indexint_start'] . "</b></td><td>" . inslink($indexint->name, str_replace("!!id!!", $this->notice->indexint, $this->lien_rech_indexint)) . " " . nl2br(htmlentities($indexint->comment, ENT_QUOTES, $charset)) . "</td></tr>";
     }
     //Champs personnalises
     $perso_aff = "";
     if (!$this->p_perso->no_special_fields) {
         $perso_ = $this->p_perso->show_fields($this->notice_id);
         for ($i = 0; $i < count($perso_["FIELDS"]); $i++) {
             $p = $perso_["FIELDS"][$i];
             if ($p['OPAC_SHOW'] && $p["AFF"]) {
                 $perso_aff .= "<tr><td align='right' class='bg-grey'>" . $p["TITRE"] . "</td><td>" . $p["AFF"] . "</td></tr>";
             }
         }
     }
     if ($perso_aff) {
         //Espace
         //$ret.="<tr class='tr_spacer'><td colspan='2' class='td_spacer'>&nbsp;</td></tr>";
         $ret .= $perso_aff;
     }
     if ($this->notice->lien) {
         //$ret.="<tr class='tr_spacer'><td colspan='2' class='td_spacer'>&nbsp;</td></tr>";
         $ret .= "<tr><td align='right' class='bg-grey'><b>" . $msg["lien_start"] . "</b></td><td>";
         if (substr($this->notice->eformat, 0, 3) == 'RSS') {
             $ret .= affiche_rss($this->notice->notice_id);
         } else {
             $ret .= "<a href=\"" . $this->notice->lien . "\" target=\"top\" type=\"external_url_notice\">" . htmlentities($this->notice->lien, ENT_QUOTES, $charset) . "</a></td></tr>";
         }
         $ret .= "</td></tr>";
         if ($this->notice->eformat && substr($this->notice->eformat, 0, 3) != 'RSS') {
             $ret .= "<tr><td align='right' class='bg-grey'><b>" . $msg["eformat_start"] . "</b></td><td>" . htmlentities($this->notice->eformat, ENT_QUOTES, $charset) . "</td></tr>";
         }
     }
     $this->affichage_suite = $ret;
     return $ret;
 }
Esempio n. 2
0
 public function get_concepts_composed()
 {
     $this->load_class("/skos/skos_concepts_list");
     $this->load_class("/skos/skos_view_concepts");
     $composed_concepts = new skos_concepts_list();
     switch ($this->get_type_autority()) {
         case "author":
         case "publisher":
         case "collection":
         case "subcollection":
         case "serie":
         case "indexint":
         case "titre_uniforme":
         case "category":
         case "concept":
         case "authperso":
             if ($composed_concepts->set_composed_concepts_built_with_element($this->get_id(), $this->get_type_autority())) {
                 print skos_view_concepts::get_composed_concepts_list($composed_concepts);
             }
             break;
     }
     return null;
 }
 /**
  * Retourne les concepts composés qui utilisent le concept
  * @return skos_concepts_list Liste des concepts composés qui utilisent le concept
  */
 public function get_composed_concepts()
 {
     if (!$this->composed_concepts) {
         $this->composed_concepts = new skos_concepts_list();
         $this->composed_concepts->set_composed_concepts_built_with_element($this->id, "concept");
     }
     return $this->composed_concepts;
 }
 function aff_suite()
 {
     global $msg;
     global $charset;
     global $opac_allow_tags_search, $opac_permalink, $opac_url_base;
     // afin d'éviter de recalculer un truc déjà calculé...
     if ($this->affichage_suite_flag) {
         return $this->affichage_suite;
     }
     // toutes indexations
     $ret_index = "";
     // Catégories
     if ($this->categories_toutes) {
         $ret_index .= "<tr><td align='right' class='bg-grey'><span class='etiq_champ'>" . $msg['categories_start'] . "</span></td><td>" . $this->categories_toutes . "</td></tr>";
     }
     // Concepts
     $concepts_list = new skos_concepts_list();
     if ($concepts_list->set_concepts_from_object(TYPE_NOTICE, $this->notice_id)) {
         $ret_index .= "<tr><td align='right' class='bg-grey'><span class='etiq_champ'>" . $msg['concepts_start'] . "</span></td><td>" . skos_view_concepts::get_list_in_notice($concepts_list) . "</td></tr>";
     }
     // Affectation du libellé mots clés ou tags en fonction de la recherche précédente
     if ($opac_allow_tags_search == 1) {
         $libelle_key = $msg['tags'];
     } else {
         $libelle_key = $msg['motscle_start'];
     }
     // indexation libre
     $mots_cles = $this->do_mots_cle();
     if ($mots_cles) {
         $ret_index .= "<tr><td align='right' class='bg-grey'><span class='etiq_champ'>" . $libelle_key . "</span></td><td>" . nl2br($mots_cles) . "</td></tr>";
     }
     //calculs champs persos et affichage keywords
     $perso_aff = "";
     $libKeywords = "";
     $valKeywords = "";
     if (!$this->p_perso->no_special_fields) {
         // $this->memo_perso_ permet au affichages personalisés dans notice_affichage_ex de gagner du temps
         if (!$this->memo_perso_) {
             $this->memo_perso_ = $this->p_perso->show_fields($this->notice_id);
         }
         for ($i = 0; $i < count($this->memo_perso_["FIELDS"]); $i++) {
             $p = $this->memo_perso_["FIELDS"][$i];
             if ($p['OPAC_SHOW'] && $p["AFF"]) {
                 if ($p["NAME"] != "cp_mc_eng" && $p["NAME"] != "cp_vol_per" && $p["NAME"] != "ESCR") {
                     $perso_aff .= "<tr><td align='right' class='bg-grey'><span class='etiq_champ'>" . strip_tags($p["TITRE"]) . "</span></td><td>" . $p["AFF"] . "</td></tr>";
                 } elseif ($p["NAME"] == "cp_mc_eng") {
                     $libKeywords = strip_tags($p["TITRE"]);
                     $valKeywords = $p["AFF"];
                 }
             }
         }
     }
     if (trim($libKeywords)) {
         $ret_index .= "<tr><td align='right' class='bg-grey'><span class='etiq_champ'>" . $libKeywords . "</span></td><td>" . $valKeywords . "</td></tr>";
     }
     // indexation interne
     if ($this->notice->indexint) {
         $indexint = new indexint($this->notice->indexint);
         $ret_index .= "<tr><td align='right' class='bg-grey'><span class='etiq_champ'>" . $msg['indexint_start'] . "</span></td><td>" . inslink($indexint->name, str_replace("!!id!!", $this->notice->indexint, $this->lien_rech_indexint)) . " " . nl2br(htmlentities($indexint->comment, ENT_QUOTES, $charset)) . "</td></tr>";
     }
     if ($ret_index) {
         $ret .= $ret_index;
     }
     // résumé
     if ($this->notice->n_resume) {
         $ret .= "<tr><td align='right' class='bg-grey'><span class='etiq_champ'>" . $msg['n_resume_start'] . "</span></td><td class='td_resume'>" . nl2br($this->notice->n_resume) . "</td></tr>";
     }
     // note de contenu
     if ($this->notice->n_contenu) {
         $ret .= "<tr><td align='right' class='bg-grey'><span class='etiq_champ'>" . $msg['n_contenu_start'] . "</span></td><td>" . nl2br(htmlentities($this->notice->n_contenu, ENT_QUOTES, $charset)) . "</td></tr>";
     }
     //Champs personalisés (calculés précédemment)
     $ret .= $perso_aff;
     if ($this->notice->lien) {
         $ret .= "<tr><td align='right' class='bg-grey'><span class='etiq_champ'>" . $msg["lien_start"] . "</span></td><td>";
         if (substr($this->notice->eformat, 0, 3) == 'RSS') {
             $ret .= affiche_rss($this->notice->notice_id);
         } else {
             if (strlen($this->notice->lien) > 80) {
                 $ret .= "<a href=\"" . $this->notice->lien . "\" target=\"top\" class='lien856'>" . htmlentities(substr($this->notice->lien, 0, 80), ENT_QUOTES, $charset) . "</a>&nbsp;[...]";
             } else {
                 $ret .= "<a href=\"" . $this->notice->lien . "\" target=\"top\" class='lien856'>" . htmlentities($this->notice->lien, ENT_QUOTES, $charset) . "</a>";
             }
         }
         $ret .= "</td></tr>";
         if ($this->notice->eformat && substr($this->notice->eformat, 0, 3) != 'RSS') {
             $ret .= "<tr><td align='right' class='bg-grey'><span class='etiq_champ'>" . $msg["eformat_start"] . "</span></td><td>" . htmlentities($this->notice->eformat, ENT_QUOTES, $charset) . "</td></tr>";
         }
     }
     // Permalink avec Id
     if ($opac_permalink) {
         if ($this->notice->niveau_biblio != "b") {
             $ret .= "<tr><td align='right' class='bg-grey'><span class='etiq_champ'>" . $msg["notice_permalink"] . "</span></td><td><a href='" . $opac_url_base . "index.php?lvl=notice_display&id=" . $this->notice_id . "'>" . substr($opac_url_base . "index.php?lvl=notice_display&id=" . $this->notice_id, 0, 80) . "</a></td></tr>";
         } else {
             $ret .= "<tr><td align='right' class='bg-grey'><span class='etiq_champ'>" . $msg["notice_permalink"] . "</span></td><td><a href='" . $opac_url_base . "index.php?lvl=bulletin_display&id=" . $this->bulletin_id . "'>" . substr($opac_url_base . "index.php?lvl=bulletin_display&id=" . $this->bulletin_id, 0, 80) . "</a></td></tr>";
         }
     }
     $this->affichage_suite = $ret;
     $this->affichage_suite_flag = 1;
     return $ret;
 }
Esempio n. 5
0
 public function get_indexing_concepts()
 {
     $concepts_list = new skos_concepts_list();
     switch ($this->type_object) {
         case AUT_TABLE_AUTHORS:
             if ($concepts_list->set_concepts_from_object(TYPE_AUTHOR, $this->num_object)) {
                 return $concepts_list->get_concepts();
             }
             break;
         case AUT_TABLE_PUBLISHERS:
             if ($concepts_list->set_concepts_from_object(TYPE_PUBLISHER, $this->num_object)) {
                 return $concepts_list->get_concepts();
             }
             break;
         case AUT_TABLE_COLLECTIONS:
             if ($concepts_list->set_concepts_from_object(TYPE_COLLECTION, $this->num_object)) {
                 return $concepts_list->get_concepts();
             }
             break;
         case AUT_TABLE_SUB_COLLECTIONS:
             if ($concepts_list->set_concepts_from_object(TYPE_SUBCOLLECTION, $this->num_object)) {
                 return $concepts_list->get_concepts();
             }
             break;
         case AUT_TABLE_SERIES:
             if ($concepts_list->set_concepts_from_object(TYPE_SERIE, $this->num_object)) {
                 return $concepts_list->get_concepts();
             }
             break;
         case AUT_TABLE_INDEXINT:
             if ($concepts_list->set_concepts_from_object(TYPE_INDEXINT, $this->num_object)) {
                 return $concepts_list->get_concepts();
             }
             break;
         case AUT_TABLE_TITRES_UNIFORMES:
             if ($concepts_list->set_concepts_from_object(TYPE_TITRE_UNIFORME, $this->num_object)) {
                 return $concepts_list->get_concepts();
             }
             break;
         case AUT_TABLE_CATEG:
             if ($concepts_list->set_concepts_from_object(TYPE_CATEGORY, $this->num_object)) {
                 return $concepts_list->get_concepts();
             }
             break;
         case AUT_TABLE_AUTHPERSO:
             if ($concepts_list->set_concepts_from_object(TYPE_AUTHPERSO, $this->num_object)) {
                 return $concepts_list->get_concepts();
             }
             break;
     }
     return null;
 }
 /**
  * Retourne l'affichage des concepts composés qui utilisent un concept
  * @param skos_concepts_list $concepts_list Liste des concepts composés
  * @return string
  */
 public static function get_composed_concepts_list($concepts_list)
 {
     global $thesaurus_concepts_affichage_ordre, $thesaurus_concepts_concept_in_line;
     global $msg;
     $concepts = $concepts_list->get_concepts();
     $datas = array('title' => $msg['skos_view_concepts_composed_concepts'], 'elements' => self::get_sorted_concepts($concepts, false));
     return self::render($datas, "skos_view_concepts_composed_concepts_list", array('concepts_in_line' => $thesaurus_concepts_concept_in_line * 1));
 }
 function aff_suite()
 {
     global $msg;
     global $charset;
     global $mode;
     global $opac_allow_tags_search;
     // afin d'eviter de recalculer un truc deja calcule...
     if ($this->affichage_suite) {
         return $this->affichage_suite;
     }
     // serials : si article
     $ret .= $this->genere_in_perio();
     //Espace
     $ret .= "<tr class='tr_spacer'><td colspan='2' class='td_spacer'>&nbsp;</td></tr>";
     // resume
     if ($this->notice->n_resume) {
         $ret .= "<tr><td align='right' class='bg-grey'><span class='etiq_champ'>" . $msg['n_resume_start'] . "</span></td><td>" . nl2br(htmlentities(strip_tags(implode("\n", $this->notice->n_resume)), ENT_QUOTES, $charset)) . "</td></tr>";
     }
     // note de contenu
     if ($this->notice->n_contenu) {
         $ret .= "<tr><td align='right' class='bg-grey'><span class='etiq_champ'>" . $msg['n_contenu_start'] . "</span></td><td>" . nl2br(htmlentities(strip_tags(implode("\n", $this->notice->n_contenu)), ENT_QUOTES, $charset)) . "</td></tr>";
     }
     // Categories
     if ($this->categories_toutes) {
         $ret .= "<tr><td align='right' class='bg-grey'><span class='etiq_champ'>" . $msg['categories_start'] . "</span></td><td>" . $this->categories_toutes . "</td></tr>";
     }
     // Concepts
     $concepts_list = new skos_concepts_list();
     if ($concepts_list->set_concepts_from_object(TYPE_NOTICE, $this->notice_id)) {
         $ret .= "<tr><td align='right' class='bg-grey'><span class='etiq_champ'>" . $msg['concepts_start'] . "</span></td><td>" . skos_view_concepts::get_list_in_notice($concepts_list) . "</td></tr>";
     }
     // Affectation du libelle mots cles ou tags en fonction de la recherche precedente
     if ($opac_allow_tags_search == 1) {
         $libelle_key = $msg['tags'];
     } else {
         $libelle_key = $msg['motscle_start'];
     }
     // indexation libre
     $mots_cles = $this->do_mots_cle();
     if ($mots_cles) {
         $ret .= "<tr><td align='right' class='bg-grey'><span class='etiq_champ'>" . $libelle_key . "</span></td><td>" . $mots_cles . "</td></tr>";
     }
     if (is_array($this->notice->indexint) && count($this->notice->indexint)) {
         $indexint = implode("<br>", $this->notice->indexint);
         $ret .= "<tr><td align='right' class='bg-grey'><span class='etiq_champ'>" . $msg['indexint_start'] . "</span></td><td>{$indexint}</td></tr>";
     }
     if ($this->notice->lien) {
         $ret .= "<tr class='tr_spacer'><td colspan='2' class='td_spacer'>&nbsp;</td></tr>";
         $ret .= "<tr><td align='right' class='bg-grey'><span class='etiq_champ'>" . $msg["lien_start"] . "</span></td><td>";
         if (substr($this->notice->eformat, 0, 3) == 'RSS') {
             $ret .= affiche_rss($this->notice->notice_id);
         } else {
             $ret .= "<a href=\"" . $this->notice->lien . "\" target=\"top\">" . htmlentities($this->notice->lien_texte ? $this->notice->lien_texte : $this->notice->lien, ENT_QUOTES, $charset) . "</a></td></tr>";
         }
         $ret .= "</td></tr>";
         if ($this->notice->eformat && substr($this->notice->eformat, 0, 3) != 'RSS') {
             $ret .= "<tr><td align='right' class='bg-grey'><b>" . $msg["eformat_start"] . "</b></td><td>" . htmlentities($this->notice->eformat, ENT_QUOTES, $charset) . "</td></tr>";
         }
     }
     $this->affichage_suite = $ret;
     return $ret;
 }