Auteur | Message |
---|---|
le: 10. 10. 2003 [15:34]
|
|
jmlongo@uncu.edu.ar
MartÃn Longo
Auteur du fil
Inscrit depuis: 31.12.1969
Interventions: 0
|
> Hi! > > Thank you very much for sharing your experience with the list. > > > One more thing.. I tried isis_fetch_flat_array() function... but got a > Fatal > > Error saying that it's not defined.... could it be? :-S > > You should reinstall the last version. Because the function > isis_fetch_flat_array is actually defined (and implemented ![]() > > If that does not work, please tell. Ok... I installed PHP-Openisis 1.0 (guess it's the latest version)... and the problem wirth isis_open() is fixed... I cand open any base I want, with or without $args... great! BUT... (there is always a but)... I still get the Fatal Error when I try to use isis_fetch_flat_array() function... saying it's not defined... I wondered inside the isis.c file and found this: /* {{{ isis_functions[] * * Every user visible function must have an entry in isis_functions[]. */ function_entry isis_functions[] = { ZEND_FE(isis_open, NULL) ZEND_FE(isis_close, NULL) ZEND_FE(isis_search, NULL) ZEND_FE(isis_query, NULL) ZEND_FE(isis_terms, NULL) ZEND_FE(isis_fetch_array, NULL) ZEND_FE(isis_num_rows, NULL) ZEND_FE(isis_data_seek, NULL) ZEND_FE(isis_free_result, NULL) {NULL, NULL, NULL} /* Must be the last line in isis_functions[] */ }; /* }}} */ ..as you can see... there's no ZEND_FE(isis_fetch_flat_array, NULL) entry... so maybe that's the problem... or maybe I'm wrong... Saludos! Juan MartÃn Longo Encargado de Informática SID - UNCuyo http://sid.uncu.edu.ar ------------------------------------------ Posted to Phorum via PhorumMail |
le: 13. 10. 2003 [11:50]
|
|
roger@infomed.sld.cu
Roger Peña Escob
Inscrit depuis: 31.12.1969
Interventions: 0
|
Mensaje citado por MartÃn Longo <jmlongo@uncu.edu.ar>: > > Hi! > > > > Thank you very much for sharing your experience with the list. > > > > > One more thing.. I tried isis_fetch_flat_array() function... but got a > > Fatal > > > Error saying that it's not defined.... could it be? :-S > > > > You should reinstall the last version. Because the function > > isis_fetch_flat_array is actually defined (and implemented ![]() > > > > If that does not work, please tell. >=20 > Ok... I installed PHP-Openisis 1.0 (guess it's the latest version)... and > the problem wirth isis_open() is fixed... I cand open any base I want, with > or without $args... great! >=20 > BUT... (there is always a but)... I still get the Fatal Error when I try to > use isis_fetch_flat_array() function... saying it's not defined... > I wondered inside the isis.c file and found this: >=20 > /* {{{ isis_functions[] > * > * Every user visible function must have an entry in isis_functions[]. > */ > function_entry isis_functions[] =3D { > ZEND_FE(isis_open, NULL) > ZEND_FE(isis_close, NULL) > ZEND_FE(isis_search, NULL) > ZEND_FE(isis_query, NULL) > ZEND_FE(isis_terms, NULL) > ZEND_FE(isis_fetch_array, NULL) > ZEND_FE(isis_num_rows, NULL) > ZEND_FE(isis_data_seek, NULL) > ZEND_FE(isis_free_result, NULL) > {NULL, NULL, NULL} /* Must be the last line in isis_functions[] */ > }; > /* }}} */ >=20 > ..as you can see... there's no ZEND_FE(isis_fetch_flat_array, NULL) > entry... so maybe that's the problem... or maybe I'm wrong... >=20 you still don't have an uptoday version, you should use a -pre version, 1.0.3-pre(2) if you have problem with the last-last version ![]() list cu roger ---------------------------------------------------------------------- Nodo central de la red Infomed (http://www.sld.cu) Usuario linux: 97152 (http://counter.li.org) Miembro del grupo de coordinacion de LinuxCuba (http://www.linux.cu) ---------------------------------------------------------------------- =20 ------------------------------------------------- Este mensaje fue enviado usando el servicio de correo en web de Infomed http://webmail.sld.cu ------------------------------------------ Posted to Phorum via PhorumMail |
le: 14. 10. 2003 [11:08]
|
|
braulio
Braulio Solano Rojas
Inscrit depuis: 16.05.2008
Interventions: 2
|
--Boundary_(ID_wYq1FSeM4iLtH6QO1pPReg) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 8BIT Hi! Attached is the script of Claudio Coppari. Hope this helps. Bye! ----- Original Message ----- From: "Claudio Coppari" <c.coppari@sintech.net> To: "Israel Jose Cefrin da Silva" <israel@FEE.TCHE.BR> Cc: <braulio@solsoft.co.cr> Sent: Tuesday, October 14, 2003 7:57 AM Subject: R: function codepage_convert As I told you before you could easily use the code of the function, however I think it was nothing special. This email has been cc: to Braulio so he has the authorization to share the code. Bye! > -----Messaggio originale----- > Da: Israel Jose Cefrin da Silva [mailto:israel@FEE.TCHE.BR] > Inviato: martedì 14 ottobre 2003 15.48 > A: Claudio Coppari > Oggetto: RES: function codepage_convert > > > Grazze for your feeding back mr. Coppari, > > One thing more, mr. Braulio told me that he still has your code > (codepage_convert). > So, do you mind if he shares the code ? Could you sent a mail > to him giving > the authorization ? > His mail is : braulio @ solsoft.co[dot]cr > > I am doing this because I don´t want "rober" your work(code) or use it > illegally, and I will use pieces of our code only under your > acceptance(and > giving the credits of course). > > thanks again > Israel > > --Boundary_(ID_wYq1FSeM4iLtH6QO1pPReg) Content-type: application/octet-stream; name=search.php Content-transfer-encoding: quoted-printable Content-disposition: attachment; filename=search.php <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Untitled</title> </head> <body> <?php define("DB_BIBLIOTECA", "c:\documents and settings\braulio\mis documentos\isisdb\storia\BIBM"); $titolo =3D "Biblioteca"; $sezione =3D 0; $num_per_pagina =3D 20; // CAMPI DB $campidb =3Darray("mfn" =3D> "Scheda", 10 =3D> "Titolo", 15 =3D> "Altri Autori", 20 =3D> "Edizione", 30 =3D> "Pubblicazioni", 40 =3D> "Descrizione", 50 =3D> "Note Titolo", 60 =3D> "Note Edizione", 70 =3D> "Note Pubblicazione", 80 =3D> "Note Collazione", 90 =3D> "Altre Note", 100 =3D> "Parola chiave", 120 =3D> "Sala", 130 =3D> "Inventario", 122 =3D> "Scaffale", 124 =3D> "Numero del libro o Collana", 126 =3D> "Area Serie", 128 =3D> "Prestito", 129 =3D> "Prezzo Copertina", 131 =3D> "Codice ISBN:", 133 =3D> "Codice lingua del libro:", 9800 =3D> "Collocazione", "rep" =3D> " " ); $codepage =3D array(chr(133), chr(141), chr(149), chr(151), chr(13 ![]() chr(130)); $codepage_r =3D array(chr(133) =3D> "=E0", chr(141) =3D> "=EC", chr(149) =3D> "=F2", chr(151) =3D> "=F9", chr(13 ![]() chr(130) =3D> "é"); function codepage_convert($string) { global $codepage, $codepage_r; $nst =3D ""; for ( $j =3D 0 ; $j < strlen($string) ; $j++ ) { if ( in_array(substr($string, $j, 1), $codepage) ) { $nst .=3D $codepage_r[substr($string, $j, 1)]; } else { $nst .=3D substr($string, $j, 1); } } return $nst; } function stampa_campo($key, $value) { global $campidb; if ( $key =3D=3D 40 OR $key =3D=3D 9800 ) $sep =3D " "; else $sep =3D "; "; if (is_array($value)) { echo $campidb[$key] . " " . htmlentities(codepage_convert(implode($value, $sep))); } else { echo $campidb[$key] . " " . htmlentities(codepage_convert($value)); } echo "<br>"; } ?> <form action=3D"search.php" method=3D"get"> <table border=3D"0" cellpadding=3D"0" cellspacing=3D"1" align=3D"center"> <tr> <td align=3D"right" class=3D"testo">Titolo</td> <td class=3D"testo"> </td> <td class=3D"testo"><input type=3D"Text" name=3D"titolo_s" maxlength=3D"50" style=3D"width: 150px;"></td> </tr> <tr> <td align=3D"right" class=3D"testo">Autore</td> <td class=3D"testo"> </td> <td class=3D"testo"><input type=3D"Text" name=3D"autore_s" maxlength=3D"50" style=3D"width: 150px;"></td> </tr> <tr> <td align=3D"right" class=3D"testo">Editore</td> <td class=3D"testo"> </td> <td class=3D"testo"><input type=3D"Text" name=3D"editore_s" maxlength=3D"50" style=3D"width: 150px;"></td> </tr> <tr> <td align=3D"right" class=3D"testo">Codice ISBN</td> <td class=3D"testo"> </td> <td class=3D"testo"><input type=3D"Text" name=3D"isbn_s" maxlength=3D"50" style=3D"width: 150px;"></td> </tr> <tr> <td align=3D"right" class=3D"testo">Chiave di ricerca</td> <td class=3D"testo"> </td> <td class=3D"testo"><input type=3D"Text" name=3D"chiave_s" maxlength=3D"50" style=3D"width: 150px;"></td> </tr> <tr> <td class=3D"testo" colspan=3D"3" align=3D"center"><input type=3D"Submit" value=3D"Cerca"></td> </tr> </table> </form> <?php // PARAMETRI PER LA RICERCA $args =3D "-level 0 -encoding Cp1252"; $dbid =3D isis_open(DB_BIBLIOTECA, $args); // FILTRA I CARATTERI SPECIALI DAI CAMPI $titolo_s =3D trim(eregi_replace("[^a-z0-9 ]", "", stripslashes($titolo_s))); $autore_s =3D trim(eregi_replace("[^a-z0-9 ]", "", stripslashes($autore_s))); $editore_s =3D trim(eregi_replace("[^a-z0-9 ]", "", stripslashes($editore_s))); $isbn_s =3D trim(eregi_replace("[^a-z0-9 ]", "", stripslashes($isbn_s))); $chiave_s =3D trim(eregi_replace("[^a-z0-9 ]", "", stripslashes($chiave_s))); // COSTRUISCI LA QUERY $search_ar =3D array(); if ( !empty($titolo_s) ) $search_ar[] =3D $titolo_s . "/(10)"; if ( !empty($autore_s) ) $search_ar[] =3D $autore_s . "/(10) + " . $autore_s . "/(15)"; if ( !empty($editore_s) ) $search_ar[] =3D $editore_s . "/(20)"; if ( !empty($isbn_s) ) $search_ar[] =3D $isbn_s . "$/(131)"; if ( !empty($chiave_s) ) $search_ar[] =3D $chiave_s . "/(100)"; $search =3D implode($search_ar, " * "); // ESEGUI LA QUERY $result =3D isis_query($search, $dbid); // CALCOLI PER LA PAGINAZIONE if ( $result ) $tot_libri =3D isis_num_rows($result); $pag =3D (int)$pag; $num_pagine =3D ceil($tot_libri / $num_per_pagina); if ( !is_numeric($pag) OR $pag > $num_pagine OR $pag <=3D 0 ) $pag =3D 1; $min =3D ( $pag - 1 ) * $num_per_pagina; $max =3D $pag * $num_per_pagina - 1; if ( $result ) isis_data_seek($result, $min); // STAMPA I RISULTATI if (!$result) { echo "Nessun risultato trovato."; } else { echo "Sono state trovate " . $tot_libri . " schede che soddisfano i criteri di ricerca." . "<br><br>"; echo '<table border=3D"0" cellpadding=3D"1" cellspacing=3D"3">'; $cont =3D 0; while ( $record =3D isis_fetch_array($result) AND $cont++ < $num_per_pagina ) { echo '<tr><td>'; // PER IL DEBUG CERCARE COME AUTORE "italo" if ( $record["mfn"] =3D=3D 100 ) { echo "<pre>"; print_r($record); echo "</pre>"; } // MFN if ( $record["mfn"] ) { echo str_pad($record["mfn"], 5, "0", STR_PAD_LEFT) . "<br>"; } // TITOLO if ( $record[10] ) { if ( is_int(key($record[10])) ) { // STAMPA I CAMPI IN CASO DI RECORD MULTIPLI foreach ($record[10] as $key =3D> $value ) { if ( $value["a"] ) { echo htmlentities(codepage_convert($value["a"])); } if ( $value["b"] ) { echo " : " . htmlentities(codepage_convert($value["b"])); } if ( $value["d"] ) { echo " =3D " . htmlentities(codepage_convert($value["d"])); } if ( $value["c"] AND $key =3D=3D 0 ) { echo " / " . htmlentities(codepage_convert($value["c"])); } if ( $value["c"] AND $key > 0 ) { echo " ; " . htmlentities(codepage_convert($value["c"])); } } } else { // STAMPA I CAMPI IN CASO DI RECORD UNICO if ( $record[10]["a"] ) { echo htmlentities(codepage_convert($record[10]["a"])); } if ( $record[10]["b"] ) { echo " : " . htmlentities(codepage_convert($record[10]["b"])); } if ( $record[10]["d"] ) { echo " =3D " . htmlentities(codepage_convert($record[10]["d"])); } if ( $record[10]["c"] ) { echo " / " . htmlentities(codepage_convert($record[10]["c"])); } } echo ". "; } // PUBBLICAZIONE if ( $record[30] ) { // echo "<pre>"; print_r($record[30]); echo "</pre>"; echo " - "; if ( is_int(key($record[30])) ) { // STAMPA I CAMPI IN CASO DI RECORD MULTIPLI foreach ($record[30] as $key =3D> $value ) { if ( $key > 0 ) echo " ; "; if ( $value["a"] ) { echo htmlentities(codepage_convert($value["a"])); } if ( $value["b"] ) { echo " : " . htmlentities(codepage_convert($value["b"])); } if ( $value["c"] ) { echo " [" . htmlentities(codepage_convert($value["c"])) . "] "; } if ( $value["d"] ) { echo ", " . htmlentities(codepage_convert($value["d"])); } } } else { // STAMPA I CAMPI IN CASO DI RECORD UNICO if ( $record[30]["a"] ) { echo htmlentities(codepage_convert($record[30]["a"])); } if ( $record[30]["b"] ) { echo " : " . htmlentities(codepage_convert($record[30]["b"])); } if ( $record[30]["c"] ) { echo " [" . htmlentities(codepage_convert($record[30]["c"])) . "] "; } if ( $record[30]["d"] ) { echo ", " . htmlentities(codepage_convert($record[30]["d"])); } } echo "."; } // COLLAZIONE if ( $record[40] ) { echo " - "; if ( $record[40]["a"] ) { echo htmlentities(codepage_convert($record[40]["a"])); } if ( $record[40]["b"] ) { echo " : ill., " . htmlentities(codepage_convert($record[40]["b"])); } if ( $record[40]["c"] ) { echo " : " . htmlentities(codepage_convert($record[40]["c"])); } if ( $record[40]["d"] ) { echo " ; " . htmlentities(codepage_convert($record[40]["d"])); } // echo "."; } // AREA SERIE if ( $record[126] ) { // echo "<pre>"; print_r($record[126]); echo "</pre>"; echo " . - "; if ( is_int(key($record[126])) ) { // STAMPA I CAMPI IN CASO DI RECORD MULTIPLI foreach ($record[126] as $key =3D> $value ) { if ( $key > 0 ) echo " ; "; if ( $value["a"] ) { echo "(" . htmlentities(codepage_convert($value["a"])) . ")"; } } } else { // STAMPA I CAMPI IN CASO DI RECORD UNICO if ( $record[126]["a"] ) { echo "(" . htmlentities(codepage_convert($record[126]["a"])) . ")"; } } } // NOTE PUBBLICAZIONE if ( $record[70] ) { // echo "<pre>"; print_r($record[70]); echo "</pre>"; echo "<br>\n. - "; if ( $record[70]["a"] ) { echo htmlentities(codepage_convert($record[70]["a"])); } if ( $record[70]["b"] ) { echo " : " . htmlentities(codepage_convert($record[70]["b"])); } if ( $record[70]["c"] ) { echo " [" . htmlentities(codepage_convert($record[70]["c"])) . "]"; } if ( $record[70]["d"] ) { echo ", " . htmlentities(codepage_convert($record[70]["d"])); } } // AUTORI VARI if ( $record[15] ) { if ( !$record[70] ) echo "<br>\n. - "; else echo ". "; if ( is_int(key($record[15])) ) { // STAMPA I CAMPI IN CASO DI RECORD MULTIPLI foreach ($record[15] as $key =3D> $value ) { if ( $key > 0 ) echo " ; "; if ( $value["a"] ) { echo htmlentities(codepage_convert($value["a"])); } if ( $value["b"] AND $key =3D=3D 0 ) { echo " [di] " . htmlentities(codepage_convert($value["b"])); } if ( $value["b"] AND $key > 0 ) { echo htmlentities(codepage_convert($value["b"])); } } } else { // STAMPA I CAMPI IN CASO DI RECORD UNICO if ( $record[15]["a"] ) { echo htmlentities(codepage_convert($record[15]["a"])); } if ( $record[15]["b"] ) { echo " [di] " . htmlentities(codepage_convert($record[15]["b"])); } } echo "."; } echo "<br>\n"; // PAROLE CHIAVE if ( $record[100] ) { $pchiave =3D str_replace("<", "", $record[100]); $pchiave =3D str_replace(">", "; ", $pchiave); $pchiave =3D substr($pchiave, 0, -2); echo $campidb[100] . " " . htmlentities(codepage_convert($pchiave)) . "<br>"; } // SALA if ( $record[120] ) { stampa_campo(120, $record[120]); } // SCAFFALE if ( $record[122] ) { stampa_campo(122, $record[122]); } // NUMERO LIBRO if ( $record[124] ) { stampa_campo(124, $record[124]); } // PRESTITO if ( $record[128] ) { stampa_campo(128, $record[128]); } // PREZZO COPERTINA if ( $record[129] ) { stampa_campo(129, $record[129]); } // INVENTARIO if ( $record[130] ) { stampa_campo(130, $record[130]); } // CODICE ISBN if ( $record[131] ) { stampa_campo(131, $record[131]); } // CODICE LINGUA if ( $record[133] ) { stampa_campo(133, $record[133]); } echo '</td></tr><tr><td><hr align=3D"left" size=3D"1" noshade color=3D"#889DB8"></td></tr>'; } echo '</table>'; // PAGINAZIONE $first_page =3D $pag - 8; $last_page =3D $pag + 8; if ( $first_page < 1 ) $first_page =3D 1; if ( $last_page > $num_pagine ) $last_page =3D $num_pagine; echo '<div align=3D"center" class=3D"bottom" id=3D"grande">'; if ( $first_page > 1 ) echo "<a href=3D\"search.php?titolo_s=3D" . urlencode($titolo_s) . "&autore_s=3D" . urlencode($autore_s) . "&editore_s=3D" . urlencode($editore_s) . "&isbn_s=3D" . urlencode($isbn_s) . "&chiave_s=3D" . urlencode($chiave_s) . "&pag=3D" . ($first_page - 1) . "\">< PREC</a> | "; for ( $j =3D $first_page ; $j <=3D $last_page ; $j++ ) { if ( $j !=3D $pag ) echo "<a href=3D\"search.php?titolo_s=3D" . urlencode($titolo_s) . "&autore_s=3D" . urlencode($autore_s) . "&editore_s=3D" . urlencode($editore_s) . "&isbn_s=3D" . urlencode($isbn_s) . "&chiave_s=3D" . urlencode($chiave_s) . "&pag=3D$j\">$j</a>"; else echo " <strong>$j</strong> "; if ( $j < $last_page ) echo " | "; } if ( $last_page < $num_pagine ) echo " | <a href=3D\"search.php?titolo_s=3D" . urlencode($titolo_s) . "&autore_s=3D" . urlencode($autore_s) . "&editore_s=3D" . urlencode($editore_s) . "&isbn_s=3D" . urlencode($isbn_s) . "&chiave_s=3D" . urlencode($chiave_s) . "&pag=3D" . ($last_page + 1) . "\">SUCC ></a>"; echo '</div>'; } ?> <br> <div align=3D"right"><a href=3D"index.php">Torna alla ricerca</a></div> </body> </html> --Boundary_(ID_wYq1FSeM4iLtH6QO1pPReg)-- ------------------------------------------ Posted to Phorum via PhorumMail |
le: 14. 10. 2003 [12:10]
|
|
jmlongo@uncu.edu.ar
MartÃn Longo
Auteur du fil
Inscrit depuis: 31.12.1969
Interventions: 0
|
> Sorry MartÃn, but PHP-OpenIsis 1.0 is not the latest version. Latest is > 1.0.3p2. Just download it at: > http://solsoft.co.cr/descargas.html > Can't download te unix extension from that url... gives me the 404 Error... :*( Martin ------------------------------------------ Posted to Phorum via PhorumMail |
le: 14. 10. 2003 [12:44]
|
|
braulio
Braulio Solano Rojas
Inscrit depuis: 16.05.2008
Interventions: 2
|
Hi! > > Sorry MartÃn, but PHP-OpenIsis 1.0 is not the latest version. Latest is > > 1.0.3p2. Just download it at: > > http://solsoft.co.cr/descargas.html > > > > Can't download te unix extension from that url... gives me the 404 Error... > :*( Sorry MartÃn, the site design is new. Still have some details to finish. Thank you very much for telling. Problem is fixed. You can now download the Unix version. Bye! B. ------------------------------------------ Posted to Phorum via PhorumMail |
le: 08. 12. 2003 [23:39]
|
|
braulio
Braulio Solano Rojas
Inscrit depuis: 16.05.2008
Interventions: 2
|
Hi! Congratulations. I've been neglecting to answer e-mails since I've been very busy. But this website I just have to say that it is a very good work. Only one comment, not a topic of this list, but anyway... Since I do websites, I believe your website is not very accesible, for instance the nice buttons you have lack of an alt attribute. Try a tool like http://www.cynthiasays.com/fulloptions.asp. Or read http://www.w3.org/TR/wcag10. I meet a blind person some days ago and I've been moved by his special condition. Also he explained me how dificult is for him to browse a lot of sites. Anyway I liked very much your work. I believe I will have some surprises for you on February. Best regards, Braulio P.S.: If you want to help me developing the extension, consider making a donation. Just click on the Paypal logo in http://www.bsolano.com. However I am not doing the extension for that. I've found that I feel good just doing it. And an e-mail like the one I am answering saying thank you is fine. Just, h$lp is always welcome. ----- Original Message ----- From: "Israel Cefrin" <israel@fee.tche.br> To: <php@openisis.org> Sent: Monday, December 08, 2003 6:04 AM Subject: Governament Library using PHP-Openisis Hello, I would like to introduce the new website of 'The Foundation of Economics and Statistics' (FEE) - www.fee.rs.gov.br. On this new version we developed a search engine with PHP-Openisis on CDS/ISIS dataBase of our library. Thank you for all your contribuitions and comments on the list. If you want direct access to the search engine use this address http://www.fee.rs.gov.br/sitefee/pt/content/biblioteca/pg_acervo.php Thanks. P.S.: Does somebody, on the south America and Brazil is already using PHP openisis on produtcion machines? If yes, could send the links to m? I wanna add on the links list. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-Israel Cefrin técnico webdesigner israel @ fee.tche[dot]br msn:isra_rs@hotmail.com icq:74378983 +55 51 32169008 - work +55 51 9181 9703 - cel =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ------------------------------------------ Posted to Phorum via PhorumMail |
Todos tenemos objetivos. El camino para llegar a nuestros objetivos es nuestra estrategia. La...