function get_otherdata() { if ($this->parent) { $parentcoll = authorities_collection::get_authority('collection', $this->parent); $this->parent_libelle = $parentcoll->name; $this->parent_isbd = $parentcoll->isbd_entry; $this->publisher = $parentcoll->parent; $this->publisher_libelle = $parentcoll->publisher_libelle; $this->publisher_isbd = $parentcoll->publisher_isbd; } else { $this->parent_libelle = ""; $this->parent_isbd = ""; $this->publisher = ""; $this->publisher_libelle = ""; $this->publisher_isbd = ""; } $this->display = $this->parent_libelle . '. ' . $this->name . ' (' . $this->publisher_libelle . ')'; $this->isbd_entry = $this->issn ? $this->parent_libelle . '. ' . $this->name . ', ISSN ' . $this->issn : $this->parent_libelle . '. ' . $this->name; }
function get_otherdata() { $publisher = authorities_collection::get_authority('publisher', $this->parent); $this->publisher_isbd = $publisher->isbd_entry; $this->publisher_libelle = $publisher->name; $this->isbd_entry = $this->issn ? $this->name . ', ISSN ' . $this->issn : $this->name; $this->display = $this->name . ' (' . $this->publisher_libelle . ')'; }
private function init_authority_class() { if (!$this->authority_class) { $this->authority_class = authorities_collection::get_authority($this->get_type_autority(), $this->get_id()); } }
function get_isbd_simple() { global $msg; $isbd_simple = ""; if ($this->name) { $isbd_simple .= $this->name; } if ($this->oeuvre_type) { $isbd_simple .= " [" . $this->oeuvre_type_name . "]"; } $as = array_keys($this->responsabilites["responsabilites"], "0"); for ($i = 0; $i < count($as); $i++) { $indice = $as[$i]; $auteur_0 = $this->responsabilites["auteurs"][$indice]; $auteur = authorities_collection::get_authority('author', $auteur_0["id"]); $isbd_simple .= " / "; $isbd_simple .= $auteur->display; } if ($this->date) { $isbd_simple .= ", " . $this->date; } return $isbd_simple; }
/** * Retourne la sous-collection * @return subcollection */ public function get_subcollection() { if (!$this->subcollection && $this->notice->subcoll_id) { $this->subcollection = authorities_collection::get_authority('subcollection', $this->notice->subcoll_id); } return $this->subcollection; }
$num_auth_present = true; } $sorted_authors = $authors_searcher->get_sorted_result('default', $debut, $nb_per_page); $parity = 1; foreach ($sorted_authors as $authority_id) { // On va chercher les infos spécifique à l'autorité $authority = new authority($authority_id); $author_id = $authority->get_num_object(); $aut = $authority->get_object_instance(array('recursif' => 1)); $author_entry = $aut->isbd_entry; $link_auteur = "./autorites.php?categ=auteurs&sub=author_form&id=" . $author_id . "&user_input=" . rawurlencode(stripslashes($user_input)) . "&nbr_lignes=" . $nbr_lignes . "&page=" . $page; //$link_auteur = "./autorites.php?categ=see&sub=author&id=$author_id"; if ($aut->see) { // auteur avec renvoi // récupération des données de l'auteur cible $see = authorities_collection::get_authority(AUT_TABLE_AUTHORS, $aut->see, array('recursif' => 1)); $author_voir = $see->isbd_entry; //$author_voir = "<a href='./autorites.php?categ=auteurs&sub=author_form&id=$aut->see&user_input=".rawurlencode(stripslashes($user_input))."&nbr_lignes=$nbr_lignes&page=$page'>$author_voir</a>"; $author_voir = "<a href='./autorites.php?categ=see&sub=author&id={$aut->see}'>{$author_voir}</a>"; $author_entry .= ". - <u>{$msg['210']}</u> : " . $author_voir; } $notice_count_sql = "SELECT count(distinct responsability_notice) FROM responsability WHERE responsability_author = " . $author_id; $notice_count = pmb_mysql_result(pmb_mysql_query($notice_count_sql), 0, 0); if ($parity % 2) { $pair_impair = "even"; } else { $pair_impair = "odd"; } $parity += 1; $tr_javascript = " onmouseover=\"this.className='surbrillance'\" onmouseout=\"this.className='{$pair_impair}'\" "; $author_list .= "<tr class='{$pair_impair}' {$tr_javascript} style='cursor: pointer' > \n \t\t\t\t<td style='text-align:center; width:25px;'>\n\t \t\t\t\t<a title='" . $msg['authority_list_see_label'] . "' href='./autorites.php?categ=see&sub=author&id=" . $author_id . "'>\n\t \t\t\t\t\t<i class='fa fa-eye'></i>\n\t \t\t\t\t</a>\n \t\t\t\t</td>\n \t\t\t<td valign='top' onmousedown=\"document.location='{$link_auteur}';\" title='" . $aut->info_bulle . "'>\n\t\t\t\t\t\t{$author_entry}\n\t\t\t\t\t\t</td>";
$sorted_categ = $categ_searcher->get_sorted_result('default', $debut, $nb_per_page); foreach ($sorted_categ as $authority_id) { // On va chercher les infos spécifique à l'autorité $authority = new authority($authority_id); $categ_id = $authority->get_num_object(); $categ = $authority->get_object_instance(); if ($id_thes == -1) { $display = '[' . htmlentities($categ->thes->libelle_thesaurus, ENT_QUOTES, $charset) . ']'; } else { $display = ''; } if ($lg_search) { $display .= '[' . $lg[$categ->langue] . '] '; } if ($categ->voir_id) { $temp = authorities_collection::get_authority(AUT_TABLE_CATEG, $categ->voir_id); $display .= $categ->libelle . " -> <i>"; $display .= $temp->catalog_form; $display .= "@</i>"; } else { $display .= $categ->catalog_form; } $notice_count = $categ->notice_count(false); $categ_entry = $display; $categ_comment = $categ->commentaire; $link_categ = "./autorites.php?categ=categories&sub=categ_form&parent=0&id=" . $categ_id . "&id_thes=" . $categ->thes->id_thesaurus . "&user_input=" . rawurlencode(stripslashes($user_input)) . "&nbr_lignes=" . $nbr_lignes . "&page=" . $page . "&nb_per_page=" . $nb_per_page; // $link_categ = "./autorites.php?categ=see&sub=category&id=".$categ_id; if ($parity % 2) { $pair_impair = "even"; } else { $pair_impair = "odd";
public function get_object_instance($params = array()) { return authorities_collection::get_authority($this->type_object, $this->num_object, $params); }
function do_isbd() { global $msg; $this->tu_isbd = ""; if (!$this->id) { return; } $as = array_keys($this->responsabilites["responsabilites"], "0"); for ($i = 0; $i < count($as); $i++) { $indice = $as[$i]; $auteur_0 = $this->responsabilites["auteurs"][$indice]; $auteur = authorities_collection::get_authority('author', $auteur_0["id"]); if ($i > 0) { $this->tu_isbd .= " / "; } $this->tu_isbd .= $auteur->display . ". "; } if ($i) { $this->tu_isbd .= ". "; } /* if($this->num_author){ $tu_auteur = new auteur ($this->num_author); $this->tu_isbd. = $tu_auteur->display.". "; }*/ if ($this->name) { $this->tu_isbd .= $this->name; } return $this->tu_isbd; }