Re: [greenstone-devel] multilingual search select form

From Michael Dewsnip
DateTue, 07 Jun 2005 11:45:33 +1200
Subject Re: [greenstone-devel] multilingual search select form
In-Reply-To (Pine-GSO-4-61-0506041642210-4995-diogenis-ceid-upatras-gr)
Hi,

Yes, you can override the _indexselection_ macro (for each language) for
your collection.

You should create a "macros" folder in your collection folder. Then,
copy the Greenstone macrosextra.dm file into this new folder, and add
something like:

package query

_indexselection_ {
<select name="h">
<option value="stx" selected>chapters
<option value="stt">section titles
<option value="dtx">entire documents
</select>
}

_indexselection_ [l=fr] {
<select name="h">
<option value="stx" selected>chapitres
<option value="stt">titres des sections
<option value="dtx">documents entiers
</select>
}

You will need to find out the internal index names for your indexes (eg.
"stx", "stt"). You can find these in the build.cfg file in the "index"
directory of your collection. Be careful to check these again if you
change/add new indexes.

This is assuming you're building an MG collection. If you're using MGPP
("advanced searching") the macros will be different -- the best way of
determining what to use is to view the page source of the search page of
your collection, and copying the relevant bits.

Hope this makes sense,

Michael

Papadimitropoulos Petros wrote:

>
> Hi all, i have created a collection with multilingual metadata (each
> metadata element inserted three times - one for each language). So, i
> changed the navigation bar in order to render the metadata buttons
> according to the current language. Now i am a bit confused in how to
> change the "Search for ..... that contain ..... of the words". I want
> only the specific metadata for each language to appear. Following the
> macros definitions I found the _indexselection_ and
> macros but is it possible to change/override them? Please, just give
> me the macro (if it exists) for this to be done! Thank you in advance.
> (I use gsdl 2.6)
>
> _______________________________________________
> greenstone-devel mailing list
> greenstone-devel@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel
>