Ir al contenido principal.
Enlaces relacionados:  Press Room  Company  Clients  Contact us
Solsoft

Forum

search vs query why the difference and not how?


Author Message
Written on: 27. 03. 2003 [08:35]
awclarke@tstt.net.tt
Arva Clarke
Topic creator
registered since: 31.12.1969
Posts: 0
Hi Guys
I am a bit unclear of the difference in terms of usage between the two
functions
resource isis_search(string $term, resource $dbid)
resource isis_query(string $querystring, resource $dbid)
Also I am noticing a function for the first time array isis_terms(string
$term, resource $dbid). Why would I uses this?
I'ts probably because I am new to the world of Isis. Can anybody supply an
explanation of the circumstance under which the functions are used ?
I am interested in the "Why" and not so much the how as (of course any
examples would be appreciated!!)

Regards
Arva

------------------------------------------
Posted to Phorum via PhorumMail
Written on: 27. 03. 2003 [08:52]
paul@OpenIsis.org
Klaus Ripke
registered since: 31.12.1969
Posts: 0
Hi all

On Thursday 27 March 2003 14:35, Arva Clarke wrote:
> I am a bit unclear of the difference in terms of usage between the two
> functions
> resource isis_search(string $term, resource $dbid)
this one looks up the term AS IS in the index
it's a little bit faster, and term can contain any special chars like '*'

> resource isis_query(string $querystring, resource $dbid)
here the querystring is scanned for several terms and operators,
e.g. a query water * plants
will perform two searches on the terms water, plant, resp.
and combine the result sets by logical and.
The simplest case of only one term is equivalent to search.

> Also I am noticing a function for the first time array isis_terms(string
> $term, resource $dbid). Why would I uses this?
to display the dictionary.
terms("DEV$") will give all index entries starting with DEV.

regards

------------------------------------------
Posted to Phorum via PhorumMail
Written on: 01. 04. 2003 [10:35]
claudio.coppari@fastmedia.it
Claudio Coppari
registered since: 31.12.1969
Posts: 0
Braulio José Solano Rojas wrote:

Hi Braulio,
I think this is not the only situation where the bug will exploit.
If you try to find the word "ancona" in field 10 and sort the results by
MFN the web server crashes in one MFN after 2191, however I haven't
found any field that begins with space follewed by '^'.

Any idea?


> I am not going to fix it right now. I'll explain why.
>
> The bug is in the function isis_fetch_array. You will have a segmentation
> fault if you have something like this:
>
> MFN: x
> Field j': ^aOne^bTwo^cThree
> Field j'': ^aUno^bDos^cTres
> Field j''': ^aUn^bDeux^Trois
>
> where the field j'' does not begin with a '^', instead it begins with a ' '
> (blank space).
>
> Therefore the fast fix is to correct your fields and delete the white spaces
> at the beginning.
>
> If you don't have a blank space at the beginning of something like
> ^aUn^bDeux^Trois you will not have any trouble.



Claudio

------------------------------------------
Posted to Phorum via PhorumMail
Written on: 02. 04. 2003 [14:58]
braulio
Braulio Solano Rojas
registered since: 16.05.2008
Posts: 2
Hi!

Sorry I have been away these days.

OK Claudio! I am noticed and I will check this. Anyway I will try to fix
it at the same time I am producing a new version.

Bye!

Braulio

----- Original Message -----
From: "Claudio Coppari" <claudio.coppari@fastmedia.it>
To: <php@openisis.org>
Sent: Tuesday, April 01, 2003 9:35 AM
Subject: Re: Bug


> Braulio José Solano Rojas wrote:
>
> Hi Braulio,
> I think this is not the only situation where the bug will exploit.
> If you try to find the word "ancona" in field 10 and sort the results by
> MFN the web server crashes in one MFN after 2191, however I haven't
> found any field that begins with space follewed by '^'.
>
> Any idea?
>
>
> > I am not going to fix it right now. I'll explain why.
> >
> > The bug is in the function isis_fetch_array. You will have a
segmentation
> > fault if you have something like this:
> >
> > MFN: x
> > Field j': ^aOne^bTwo^cThree
> > Field j'': ^aUno^bDos^cTres
> > Field j''': ^aUn^bDeux^Trois
> >
> > where the field j'' does not begin with a '^', instead it begins with a
' '
> > (blank space).
> >
> > Therefore the fast fix is to correct your fields and delete the white
spaces
> > at the beginning.
> >
> > If you don't have a blank space at the beginning of something like
> > ^aUn^bDeux^Trois you will not have any trouble.
>
>
>
> Claudio
>

------------------------------------------
Posted to Phorum via PhorumMail
Written on: 02. 04. 2003 [15:36]
braulio
Braulio Solano Rojas
registered since: 16.05.2008
Posts: 2
Hello!

On Wednesday, March 26, 2003 6:37 PM, Fernando wrote:

> In fact, I think the "formatting language" is PHP itself; HTML or XML
would
> be the final output format. My point was: once I have all the record
fields
> in an array, which tool should I use to manipulate it and get the intended
> HTML output? The answer seems to be: use PHP, probably defining
appropriate
> functions to do some repetitive tasks.

Actually, PHP is a programming language. Using XSLT (XML) you can give a
format. That is why I called XML a "formatting language". Or just simply
using HTML you can format, for instance with the <font> tag. Another
example of "formatting languages" are LaTex or FOSI (an old SGML DTD). And
the final output would be a graphical representation. Well this could be a
very tricky discussion and there is not an actual defintion for "formatting
language", but I am trying to make a point here.

Of course you are right when you say that you have to manipulate the arrays
using PHP. And as said Klaus the wonder is that you can use JAVA, PHP or
Perl. That's what I call "language independence". Something I said in the
regional reunion of distributors of CDS/ISIS (latinamerica) was how
important it is to have the possibility to choose the most appropiate
language for your application. For instance, Arva Clarke said one of these
days that he is new to the world of ISIS. Well if he had to learn a complex
language like the one that uses old Isis scripts, maybe he would not be in
the world of ISIS. He had the possibility to CHOOSE a language. And PHP is
very easy to learn. Or maybe, he had not to choose a language but to choose
a technology, because he already choosed the language. See? That is why we
have to support this kind of projects. Very OPEN, isn't it?

> [500] => ^aTranslation of: Molecular cell biology.
> [504] => ^aIncludes bibliographies and index.
> [700] => Array
> (
> [0] => 0^aCytology.
> [1] => 0^aMolecular biology.
> [2] => 1 ^aLodish, Harvey F.
> [3] => 1 ^aBaltimore, David.
> [4] => 1 ^aDarnell, James E.^tBiolog¡a celular y molecular.
> )
>
> See? Field 650 became field 700. What's happening here? (BTW, the white
> spaces at the beginning of the field do not change anything; the same
result
> appears even without them.)

I will check this, thanks for noticing.

> Another question: how can I read correctly a db created in MS-DOS? Is it
> possible to apply a gizmo when reading the data? O should I convert the
> whole db before using it with this extension?

To transform old MS-DOS chars you could use the PHP functions htmlentities
or htmlspecialchars, but I checked through the code of PHP and saw that
there is not support for Cp850 or Cp437. I will try to make a patch for
this and send it to the PHP community. However I did not understood very
well the code, so this will take me sometime.

> And more questions to come soon... icon_smile.gif

Of course. Always welcome.

Saludos,

Braulio

------------------------------------------
Posted to Phorum via PhorumMail
Written on: 20. 04. 2003 [10:55]
awclarke@tstt.net.tt
Arva Clarke
Topic creator
registered since: 31.12.1969
Posts: 0
Hi Klaus
Thanks for the information.
Another question can you confirm that Birme is a commercial entity?
My Portuguese is not good and they have lots UNESCO logos up on the site.
This has given some of my Librarian friends the impression that this company
is sanctioned by
UNESCO
I really think that you should post this information about the licensing
terms of WWWIsis and JavaIsis
up some where on the openisis.org site.
It does not seem that this is a big issue for normal users and managers but
some of the Librarians keep raising the issue
Interestingly, I have yet to encounter any one in Trinidad with WWWISIS
doing anything useful!
I am thinking some of this has got to be FUD (maybe not deliberate)

Chris

----- Original Message -----
From: "Klaus Ripke" <krip@openisis.org>
To: <php@openisis.org>
Sent: Sunday, April 20, 2003 10:00 AM
Subject: Re: www/javaisis


Hi

as far as Java ISIS is concerned, that's easy:
It is a Java GUI based on wwwisis 3, so just does
a pretty different job than wwwisis or OpenIsis
(however, since recently we do have a GUI based on Tk).

With regard to wwwisis, there are versions 3,
which is free, and 5 (dubbed wxis), which costs
some bucks (see bireme.br).
About version 3 I once have been less diplomatic;
you'll find the note on bugtraq.
Version 5 is "free" (of costs) for "local use".
Many think this includes a PHP page talking to local wxis,
bireme hasn't clearly ruled out such "local use".
wxis is much more complex; it deploys a XML-style
scripting system called IsisScript. It's a matter of taste ...

Both versions are available compiled for a variety of *NIXes
from bireme's download page, even weird systems like HP-UX.
Sources aren't available for any version until now,
but recently bireme agreed to release sources "to UNESCO",
and UNESCO will then publish them somehow, sometime ...
Neither version has an API; access to core functions
is provided by a lib called ISIS-DLL.
There is a linux version called isilux available at bireme.
Since it's written in C++, you have to get a matching
(fairly old) libstdc++ (especially with the proper iostreams).

The good old "ISIS for Unix" is CDS/ISIS for Unix,
very similar in functionality to CDS/ISIS for DOS
(i.e. a terminal application).
It's a COFF binary and runs on linux with iBCS.


regards
Klaus

------------------------------------------
Posted to Phorum via PhorumMail
Written on: 21. 04. 2003 [06:27]
krip@openisis.org
Klaus Ripke
registered since: 31.12.1969
Posts: 0
Hi=0D
=0D
as far as Java ISIS is concerned, that's easy:=0D
It is a Java GUI based on wwwisis 3, so just does=0D
a pretty different job than wwwisis or OpenIsis=0D
(however, since recently we do have a GUI based on Tk).=0D
=0D
With regard to wwwisis, there are versions 3,=0D
which is free, and 5 (dubbed wxis), which costs=0D
some bucks (see bireme.br).=0D
About version 3 I once have been less diplomatic;=0D
you'll find the note on bugtraq.=0D
Version 5 is =22free=22 (of costs) for =22local use=22.=0D
Many think this includes a PHP page talking to local wxis,=0D
bireme hasn't clearly ruled out such =22local use=22.=0D
wxis is much more complex; it deploys a XML-style=0D
scripting system called IsisScript. It's a matter of taste ...=0D
=0D
Both versions are available compiled for a variety of *NIXes=0D
from bireme's download page, even weird systems like HP-UX.=0D
Sources aren't available for any version until now,=0D
but recently bireme agreed to release sources =22to UNESCO=22,=0D
and UNESCO will then publish them somehow, sometime ...=0D
Neither version has an API; access to core functions=0D
is provided by a lib called ISIS-DLL.=0D
There is a linux version called isilux available at bireme.=0D
Since it's written in C++, you have to get a matching=0D
(fairly old) libstdc++ (especially with the proper iostreams).=0D
=0D
The good old =22ISIS for Unix=22 is CDS/ISIS for Unix,=0D
very similar in functionality to CDS/ISIS for DOS=0D
(i.e. a terminal application).=0D
It's a COFF binary and runs on linux with iBCS.=0D
=0D
=0D
regards=0D
Klaus=0D

------------------------------------------
Posted to Phorum via PhorumMail
Written on: 24. 04. 2003 [10:56]
krip@openisis.org
Klaus Ripke
registered since: 31.12.1969
Posts: 0
Hello=0D
=0D
the question as to wether BIREME is a commercial=0D
entity is a little bit difficult.=0D
Basically, it is not, but a public org, a subsidiary of PAHO.=0D
They where founded by PAHO to care for all sorts of information=0D
processing PAHO needs, like running the software at nearly=0D
a thousand medical libraries and platforms like SCIELO.=0D
=0D
But then, they are asked to do some refinancing themselves=0D
by offering commercial services and requiring some fee=0D
for the software (which is for the most part to accomodate=0D
for the expenses for users wanting support).=0D
=0D
They are clearly sanctioned by UNESCO; they are cooperating=0D
closely, and they did not only www/wxisis, but also the=0D
WinISIS development as a contractor of UNESCO.=0D
=0D
Anyway, completely unlike us, everybody there is paid=0D
for what they are doing.=0D
There are some links to english versions on several=0D
bireme pages.=0D
=0D
=0D
There definitively is a lot of interesting work like Elysio's=0D
PHL done based on wwwisis or wxis, some of which was presented=0D
in la Havana (http://openisis.org/openisis/doc/XReunion).=0D
But, of course, we think that more work would have been=0D
developed more quickly on an open basis.=0D
=0D
With regard to the FUD strategy: yes, certainly,=0D
and since the guys at bireme are hard core professionals,=0D
I (and not only me) think it's deliberate. c.f.=0D
http://listserv.surfnet.nl/scripts/wa.exe?A2=ind0203&L=cds-isis&F=&S=&P=435=0D
=0D
=0D
HAND=0D
Klaus

------------------------------------------
Posted to Phorum via PhorumMail
Written on: 29. 04. 2003 [20:32]
fgomez@criba.edu.ar
=?Windows-1252?Q?Fernando_J._G=F3mez?
registered since: 31.12.1969
Posts: 0
Roger:

Just in case it may help you, this is the configuration on my PC, in which
these PHP things worked a few weeks ago:

- Win ME
- Apache 1.3.23
- PHP 4.3.1
- openisis.dll in C:\WINDOWS
- these lines somewhere in php.ini:
extension=php-4.3.1_isis.dll
[Isis]
isis.default_dir = /httpd/bases


As for the demo, I had to play with the code available at this URL:

http://galileo.or.cr/php_isis/

See also some of the previous messages on this list (BTW, are they available
somewhere for newcomers to the list?)

Good luck!

Fernando

======================================================Fernando J. Gómez

Biblioteca Dr. Antonio Monteiro
Instituto de Matemática de Bahía Blanca (CONICET/UNS)
Av. Alem 1253
8000 Bahía Blanca - Argentina
======================================================
------------------------------------------
Posted to Phorum via PhorumMail



User login

Enter your username and password here in order to log in on the website:
Login

Forgot your password?


Copyright © 2003-2009, Solsoft de Costa Rica S.A.
Declaración de privacidad