コード例 #1
0
 function do_isbd()
 {
     global $msg;
     $isbd_simple = $this->get_isbd_simple();
     $isbd_oeuvre_expressions = "";
     if (count($this->oeuvre_expressions)) {
         $isbd_oeuvre_expressions .= " .- " . $msg["aut_oeuvre_form_oeuvre_expression"];
         foreach ($this->oeuvre_expressions as $expression) {
             $oeuvre_to = new titre_uniforme($expression['to_id']);
             $isbd_oeuvre_expressions .= " " . $oeuvre_to->get_isbd_simple();
         }
     }
     $isbd_other_links = "";
     if (count($this->other_links)) {
         for ($i = 0; $i < count($this->other_links); $i++) {
             $memo_links[$this->other_links[$i]['type']][] = $i;
         }
         foreach ($memo_links as $link => $index_list) {
             $isbd_other_links .= " - " . $this->other_links[$index_list[0]]['type_name'];
             foreach ($index_list as $index) {
                 $oeuvre_link = new titre_uniforme($this->other_links[$index]['to_id']);
                 $isbd_other_links .= " " . $oeuvre_link->get_isbd_simple();
             }
         }
     }
     $this->tu_isbd = $isbd_simple . $isbd_oeuvre_expressions . $isbd_other_links;
     return $isbd_simple;
 }