[greenstone-users] Re: Revert home link to separate page

From Richard Managh
DateFri Aug 8 09:48:19 2008
Subject [greenstone-users] Re: Revert home link to separate page
In-Reply-To (caa538920808070214x22a489a5ubaf2f4c9e3dc0f68-mail-gmail-com)
Hi Pons,


2008/8/7 Ponerulappan <sppons@gmail.com>

> Hi Richard
>
> it works fine, Is there any way to add more links in the collection page
> like HOME, PREFERENCES
>
> Thanks for your help,
>
>

(assuming greenstone 2.8)

Yes it is possible. You need to *override* the macro _globallinks which is
in <gsdl>/macros/nav_css.dm

So to do this you would add something like the following under "package
Global" (without the quotes) in your extra.dm previously described.

HOME HELP PREFERENCES {<a href="http://www.google.com">My Link</a> HOME HELP PREFERENCES}

Note:
The original globallinks macro in nav_css looks like the following:

HOME HELP PREFERENCES {" ne "1",HOME) HELP PREFERENCES}


For more information about macros please see the following pages in the
greenstone wiki:
http://wiki.greenstone.org/wiki/index.php/Customizing_your_Greenstone_library
http://wiki.greenstone.org/wiki/index.php/All_about_macros
http://wiki.greenstone.org/wiki/index.php/A_basic_introduction_to_using_CSS_in_Greenstone


Regards,

Richard.
--
DL Consulting Ltd
Greenstone Digital Library, Web Development, Hosting and Digitization
Specialists
www.dlconsulting.com


>
>
>
> On 8/5/08, Richard Managh <richard@dlconsulting.com> wrote:
>
>> Hi Pons,
>>
>> 2008/7/31 Ponerulappan <sppons@gmail.com>
>>
>>>
>>>> Hi
>>>>
>>>> We have created a separate library home page using asp. we would like
>>>> to re-direct greenstone home page to library homepage while clicking
>>>> home link from greenstone collection . we have used some script to do the
>>>> same before, but I would like to know how it can be done using greenstone
>>>> format features or any other way.
>>>>
>>>>
>>>
>> You could try adding the following to:
>>
>> <gsdl install dir>/collect/<your collection dir>/macros/extra.dm
>>
>> Create the file if it doesnt exist.
>>
>> Add the following two lines to the extra.dm
>>
>> package Global
>>
>> HOME {http://www.google.com
>> " title="Home page">HOME}
>>
>>
>> -This would work if you wanted to link to google.com. Insert your desired
>> URL instead of www.google.com
>>
>>
>> Hope this helps,
>>
>>>
>> Richard
>> --
>> DL Consulting Ltd
>> Greenstone Digital Library, Web Development, Hosting and Digitization
>> Specialists
>> www.dlconsulting.com
>>
>>
>> _______________________________________________
>> greenstone-users mailing list
>> greenstone-users@list.scms.waikato.ac.nz
>> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>>
>>
>
>
> --
> Thanks & Best Regards
> Pons (Ponerulappan)
> Library & Information Services, Cognizant Academy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://list.scms.waikato.ac.nz/mailman/private/greenstone-users/attachments/20080808/b75e91be/attachment-0001.html