RE: [greenstone-users] several libraries-same installation

From Toro, Gloria I
DateFri, 22 Jun 2007 16:37:41 -0500
Subject RE: [greenstone-users] several libraries-same installation
In-Reply-To (467B03ED-90009-dlconsulting-co-nz)
Dear Richard,
Thanks for your advise. Actually, I have already thought on the first method with static external html front pages. The second one is more integrated to Greenstone environment. I'll try.
Thanks, Gloria

________________________________

From: greenstone-users-bounces@list.scms.waikato.ac.nz on behalf of Richard Managh
Sent: Thu 6/21/2007 6:04 PM
To: greenstone user list
Subject: Re: [greenstone-users] several libraries-same installation


Hi Gloria,

Here are two possible ways to achieve what you want:

Method one:
Probably one of the easiest ways to achieve what you want would be to create two static web pages to use as front pages for each set of collections. You may already know this, but just in case: a static page is generally a page served (by your web server) directly from an html file, whereas a dynamic page, is a page served from some kind of server side script, such as PHP, or ASP, or from some kind of server side software, such as Greenstone.

You could:

1. Add the two collections to your greenstone installation just as you added the last ones.

2. Create two static html (I mean 2 html files served from your web server, rather than dynamic html generated by the greenstone software) pages, by simply saving your current front page as an html file from your browser twice, as separate files. These html pages would look like your current front page, but you could edit the html and remove some of the links from each one, so that one file would include just the links to your first set of collections, and the other file would include links to the other set of collections. In addition, you could further edit each page, so that they each have a different look and feel, specific to your different set of collections.

3. You would need to make these static html files available on your web server somewhere. You could in addition set up different domains(something like www.yoursite.org <http://www.yoursite.org/> ) to point to your static html pages on your web server, although this last sentence is optional.

Method two:
Another way to achieve what you want would be to create as you suggest, additional "home" packages. In your existing home.dm, you could create something like:

package home2

GSDL Error

{ your header html and macros}

oops

The requested page could not be found. Please use your browsers 'back' button or the above home button to return to the Greenstone Digital Library. { your content html and macros}

{ your footer html and macros}


To get to this page you would create a link that would appear something like

http://url-to-your-greenstone-cgi/cgi-bin/library?a=p&p=home2

which is in the macro language something like::

/gsdlmod?a=p&p=home2


You could put your desired html and macros in the afore mentioned macro package to make up your new front page. In fact you might need to create two new macro packages, something like home1 and home2 for each of your new front pages, because the default page would contain all of your collections, and not each subset of the collections, which is what you want I think.

Good luck,

Richard.

--
DL Consulting
Greenstone Digital Library and Digitisation Specialists
contact@dlconsulting.com
www.dlconsulting.com <http://www.dlconsulting.com/>


Toro, Gloria I wrote:


Dear all

I created a library with 6 collections. Its is working ok. Now I want to create another different library with 2 collections and a different front page. So the questions is: Is it possible under the same installation of Greenstone to have more than one library, each one with its own front page and set of collections? Can I have more than one "home.dm"?
Thanks for your assistance, Gloria Toro


________________________________


_______________________________________________
greenstone-users mailing list
greenstone-users@list.scms.waikato.ac.nz
https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users


<<attachment>>
Type: application/ms-tnef
Filename: winmail.dat

download