Re: [greenstone-users] How to use /cgi-bin/library?e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-about-alice--00-0-21-00-0-0-11----0-0-&a=q and ifl argument in format DocumentText

From Michael Dewsnip
DateFri, 04 Aug 2006 09:29:47 +1200
Subject Re: [greenstone-users] How to use /cgi-bin/library?e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-about-alice--00-0-21-00-0-0-11----0-0-&a=q and ifl argument in format DocumentText
In-Reply-To (44D237E0-10007-inwind-it)
Hi Ruben,

> I would like to use /cgi-bin/library?e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-about-alice--00-0-21-00-0-0-11----0-0-&a=q in format DocumentText to link between
> metadata records.
>
> I have tried:
>
> {If}{[dc.DcRelation^a], <tr><td valign=top><b>_Rg_:</b></td>
> <td valign=top><a
> href=\"/cgi-bin/library?e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-about-alice--00-0-21-00-0-0-11----0-0-&a=q=[dc.ModsRecordInfoRecordIdentifi]\">[dc.DcRelation^a]</td></tr>}
>
>
> I have the following URL ([dc.ModsRecordInfoRecordIdentifi] value is
> 890):
>
>
> http://127.0.0.1/cgi-bin/library?e=d-000-00---0babel3--00-1-0--0prompt-10-DN--4--%2c%2c%2cISBN+2Zz-7526Zz-0024Zz-0----0-1l--1-it-50---20-preferences-890--00031-001-0-0utfZz-8-00&a=q=890
>
>
>
> But I have an error when clicking , error logs say:
>
> Warning: couldn't read build.cfg file for collection "babel3.tar.gz",
> gsdlhome="/home/gsdl/gsdl"
> Warning: couldn't read build.cfg file for collection "dbbkup",
> gsdlhome="/home/gsdl/gsdl"
> Error: the action "q=890" could not be found.
>
> 1) Can you please suggest what is the correct way to use /cgi-bin/library?e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-about-alice--00-0-21-00-0-0-11----0-0-&a=q ?
>
> (q=890 should be fine isn't it?)

You're close. The correct format for a query is "a=q&q=<query>", so you need

/cgi-bin/library?e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-about-alice--00-0-21-00-0-0-11----0-0-&a=q&q=[dc.ModsRecordInfoRecordIdentifi]

instead of

/cgi-bin/library?e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-about-alice--00-0-21-00-0-0-11----0-0-&a=q=[dc.ModsRecordInfoRecordIdentifi]

> 2) I would like to add ifl argument to go directly to the first record
> found , is this possible from format DocumentText?

The "&ifl=1" is an argument to the query action, so it can go into an
"/cgi-bin/library?e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-about-alice--00-0-21-00-0-0-11----0-0-&a=q" link.

> 3) I remember once I found a link in wiki that pointed to a nice
> comics collection (or similar) that uses a lot of internal searches to
> make relations between docs, unfortunately I do not find this link
> anymore....Can you help with that? (need to find some inspiration :-)

Was it this collection:
http://www.aladin.wrlc.org/gsdl/collect/treasure/treasure.shtml?

All the best,

Michael