Esempio n. 1
0
     $new_relacion = do_r($new_termino, $_POST[id_termino_eq], $_POST[tipo_equivalencia]);
     $tema = $_POST[id_termino_eq];
     $_GET[id_eq] = '';
 }
 switch ($_GET[taskrelations]) {
     case 'addTgetTerm':
         //agregar un término de WS
         $new_relacion = abm_target_tema("A", $_GET[tema], $_GET[tvocab_id], $_GET[tgetTerm_id]);
         break;
     case 'delTgetTerm':
         //eliminar un término de WS
         $del_relacion = abm_target_tema("B", $_GET[tema], $_GET[tvocab_id], $_GET[tgetTerm_id], $_GET[tterm_id]);
         break;
     case 'updTgetTerm':
         //actualiza término de WS
         $up_relacion = abm_target_tema("U", $_GET[tema], $_GET[tvocab_id], $_GET[tgetTerm_id], $_GET[tterm_id]);
         break;
     case 'addRT':
         $new_relacion = do_terminos_relacionados($_GET[rema_id], $_GET[tema], "2");
         $MSG_ERROR_RELACION = $new_relacion[msg_error];
         break;
     case 'addBT':
         $new_relacion = do_r($_GET[rema_id], $_GET[tema], "3");
         $tema = $_GET[rema_id];
         $_GET[sel_idsuptr] = '';
         $MSG_ERROR_RELACION = $new_relacion[msg_error];
         break;
     case 'addFreeUF':
         $new_relacion = do_r($_GET[rema_id], $_GET[tema], "4");
         $tema = $_GET[tema];
         $MSG_ERROR_RELACION = $new_relacion[msg_error];
function ADDreferencesSuggestedTerm($term_id, $tterm_id, $ARRAYtargetVocabulary, $options = array())
{
    if ($options["addNoteReference"] == 1) {
        abmNota('A', $term_id, "NB", $_SESSION["CFGIdioma"], $ARRAYtargetVocabulary["tvocab_title"] . '. URL:' . $ARRAYtargetVocabulary["tvocab_url"]);
    }
    if ($options["addLinkReference"] > 0) {
        abmURI('A', $term_id, array("uri_type_id" => $options["addLinkReference"], "uri" => "{$ARRAYtargetVocabulary['tvocab_url']}?tema={$tterm_id}"));
    }
    if ($options["addMappReference"] == 1) {
        abm_target_tema('A', $term_id, $ARRAYtargetVocabulary["tvocab_id"], $tterm_id);
    }
}