[greenstone-users] command script meaning

From Jim Hart
DateThu Jul 8 02:30:09 2010
Subject [greenstone-users] command script meaning
In-Reply-To (COL118-W407E05AA0C09CFC86BAB0C8FB00-phx-gbl)
On 7/4/10 9:09 AM, see choon wrote:
> Hi,
>
> I'm new to greenstone. I have a doubt on one line of command,hope
> someone here can help me solve it.
>
> {/gsdlmod?e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-help-niivsrb--00-0-1-00-0--4----0-0-11-10-0utfZz-8-00&a=status&p=frameset}
>
> May i know what this line means?
> /gsdlmod is for what?
Greenstone fills this in automatically with the path to the program that
services the Web.
> a is what?
> p is what?
>
a and p tell the program what to do. From the Greenstone developer
documentation
(http://www.greenstone.org/manuals/gsdl2/en/html/Chapter_configuring_your_greenstone_site.htm):


Page parameters and CGI arguments

Page parameters and CGI arguments may be defined from within the
/main.cfg/ configuration file. Recall from Figure 40
<http://www.greenstone.org/manuals/gsdl2/en/html/Chapter_the_greenstone_runtime_system.htm#Figure_using_the_cgiargsinfoclass_from_pageactioncpp>
that most CGI arguments are defined within the library C++ code itself.
However, it is occasionally useful to define new arguments or edit
existing ones at configuration time, thus avoiding the need to recompile
the library.

To do this you use the /cgiarg/ configuration option. /Cgiarg/ may take
up to six arguments; /shortname/, /longname/, /multiplechar/,
/argdefault/, /defaultstatus/ and /savedarginfo/. These arguments
correspond to the CGI argument options described in Section 3.8
<http://www.greenstone.org/manuals/gsdl2/en/html/Chapter_the_greenstone_runtime_system.htm#Section_receptionist>.
For example, in the default /main.cfg/ file the /cgiarg/ configuration
option is used to set the default values of the existing /a/ and /p/ CGI
arguments to /p/ and /home/ respectively.

Page parameters are special cases of CGI arguments which correspond to
parameters in Greenstone's macro files. For example, the /l/ CGI
argument directly corresponds to the /l=/ parameter in the macro files.
To define a CGI argument to also be a page parameter you use the
/pageparam/ configuration option.

The best way to learn about the various configuration options possible
in the /main-cfg/ configuration file is to experiment with the file
itself. Note that if you are using the Windows local library version of
Greenstone you must restart the server before any configuration files
changes take effect.

---------

Jim Hart
Bates College
Lewiston, Maine
US

> Next, when i tried to create a package which named collection in new
> .dm file, i use the same script as status.dm and i had change the word
> status to collection,but why i fail to built the collection?
> Is it we need to define the new package in somewhere?
>
> Appreciate for your help and i'm looking for the solution.
>
> Thanks,
> Regards
>
> ------------------------------------------------------------------------
> Hotmail: Powerful Free email with security by Microsoft. Get it now.
> <https://signup.live.com/signup.aspx?id=60969>
>
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://list.scms.waikato.ac.nz/mailman/private/greenstone-users/attachments/20100707/b516ae5f/attachment.html