[Isis-users] json 2 isis

Nicolas Rucks nrucks at yahoo.com
Fri Mar 17 22:35:00 CET 2017


https://github.com/bireme/isis2json
It's Python. Never tried it.

Saludos,
Nicolas Rucks
Buenos Aires
Argentina


--------------------------------------------
En date de : Ven 17.3.17, Guilda Ascencio <guildaa at gmail.com> a écrit :

 Objet: Re: [Isis-users] json 2 isis
 À: "Juan Urzúa González" <juan.urzua at pucv.cl>
 Cc: "Lista Isis" <isis-users at iccisis.org>
 Date: Vendredi 17 mars 2017, 16h25
 
 I do not know if anyone have one. I have
 not
 
 On Fri, Mar 17, 2017
 at 1:58 PM, Juan Urzúa González <juan.urzua at pucv.cl>
 wrote:
 Guilda:
 
 Is there
 any script
 from "Isis to Json"
 ???
 
 regards,
 
 
 2017-03-17 13:20
 GMT-04:00 Guilda Ascencio <guildaa at gmail.com>:
 Dear gus.
 
  In PHP a have a script in which:
 
 1. Read the json array
 2. Code the equivalence between arrays elements and 
 the isis database tags
 3. Process each record of the json array and builds a
 string with the isis tags in the form of: 
 
 <tag1 0>CONTENT OF THE ELEMENT 1 OF THE JSON
 ARRAY EQUIVALENT TO TAG1</tag1><tag2
 0>.............
 
 4. The string built with each record ($ValorCapturado)
 and the name of the database to be updated ($base)  are
 passed to the function GrabarRegistro. In the function,
 $db_path is the path to the folder where is the database to
 be updated. 
 
 You can create a folder (json2isis) and place
 inside the executable wxis.exe and the IsisScript
 actualizar.xis attached to this mail.
 
 
 function
 GrabarRegistro($ValorCapturado ,$base){
 global $db_path;
     $ValorCapturado=urlencode($Val orCapturado);
     $query="&base=$base&cipar=$db_
 path"."par/$base".".par&login=
 ABCD&path_db=$db_path";
     $query.="&ValorCapturado=".$Va
 lorCapturado."&Opcion=crear";
     putenv('REQUEST_METHOD=GET');
     putenv('QUERY_STRING='."?xx=".
 $query);
     $Wxis="wxis.exe" ;
     IF (stripos(PHP_OS,"win")===false )
         $Wxis="./".$Wxis;
     $IsisScript="actualizar.xis";
    
 exec("\"./".$Wxis."\"
 IsisScript=$IsisScript",$conte nido);
     $contenido=implode("\n",$conte nido);
     return $contenido;
 }
 
 
 Hope it helps
 
 Regards, 
 
 
 
 On Fri, Mar 10, 2017
 at 10:25 AM, gus <ggus at riseup.net>
 wrote:
 Hi,
 does anybody already tried to import from json to isis?
 
 Any tips?
 
 
 
 I'm using isis2json.py to export to mongodb, but I also
 want to do the
 
 reverse path.
 
 
 
 thanks!,
 
 gus
 
 ______________________________ _________________
 
 isis-users mailing list
 
 isis-users at iccisis.org
 
 To manage your own subscription options go to: http://lists.iccisis.org/listi
 nfo/isis-users
 
 Or contact Henk Rutten: hlrutten at xs4all.nl
 
 
 
 
 ______________________________ _________________
 
 isis-users mailing list
 
 isis-users at iccisis.org
 
 To manage your own subscription options go to: http://lists.iccisis.org/listi
 nfo/isis-users
 
 Or contact Henk Rutten: hlrutten at xs4all.nl
 
 
 
 
 
 
 -----La pièce jointe associée suit-----
 
 _______________________________________________
 isis-users mailing list
 isis-users at iccisis.org
 To manage your own subscription options go to: http://lists.iccisis.org/listinfo/isis-users
 Or contact Henk Rutten: hlrutten at xs4all.nl
 


More information about the isis-users mailing list