[greenstone-users] link is missing after transferring collection from Windows PC to Linux server

From Greenstone Team
DateFri Jun 17 19:39:17 2011
Subject [greenstone-users] link is missing after transferring collection from Windows PC to Linux server
In-Reply-To (6F8C0499CDDFE04485C8AD3E353DCE460C6E77C549-GCC-EXCH07VM1-galwaycoco-ie)
Hi John,

I use Greenstone 2.84 to create an image collection called "imgs" on my
Windows machine with some 3 images. The links to original documents
would therefore be links to the images. I built the collection and
viewed it with the local library server running: this server is only
available on Windows and the links it generates are of the form
"http://localhost/gsdl?..."

Then I copied this collection (the folder "imgs") to the collect folder
of my Greenstone 2.84 on my Linux machine. I started up the server and
viewed the pages. Here my URLs are of the form generated for the apache
web server included with both Linux and Windows:
"http://<host>:<port>/greenstone/cgi-bin/library.cgi?..."

When I visited my browsing classifier page here using the URL I used on
windows (but replacing the ".../gsdl?" prefix with the
".../library.cgi?" one) it complained about the URL not specifying the
collection.
So I appended "&c=imgs" to my url and that worked. Then I could also
click on the image document and see the photo.


The image URL between the two machines was the same except for the usual
prefix differences.

If you want to have more consistent URLs, you could set your Windows
Greenstone to use the included Apache web server instead, that way
things would be more similar to your Linux setup. To do so:

1. On your Windows machine, go to the top-level folder of your
Greenstone 2.84 installation and rename the "server.exe" file to server.not.

2. Now when you launch the server application on Windows, it should run
the Apache web server included with Greenstone. Try visiting your
collection's pages again. The URLs may be more similar this time.

For instance, I did the same just now: I quit my GS server on the
Windows, renamed server.exe and ran the Greenstone server again. It
launched the Apache web server. I visited my collection's home page and
then the Titles browser. I saved that URL. Then I clicked on a thumbnail
of one of the images in my "imgs" collection. I saved that URL as well.

Back on my Linux machine, I visited both those URLs, making sure to
change the host and port values to what was necessary on Linux. Both the
Titles browsing classifier page and the image page worked.


Here's the same examples with the URLs I used:

URLs when using the apache web server included with Greenstone on Windows:
a)
http://localhost:8283/greenstone/cgi-bin/library.cgi?e=p-01000-00---off-0imgs--00-1----0-10-0---0---0direct-10---4-------0-1l--11-en-50---20-about---00-3-1-00-0--4--0--0-0-11-10-0utfZz-8-00&a=d&cl=CL1

b)
http://localhost:8283/greenstone/collect/imgs/index/assoc/HASH96b7.dir/Bear.jpg

Both (a) and (b) worked for me upon copying my collection onto a GS 2.84
server on Linux, after changing the host and port values in the URLs.

The older URLs -- from when I ran the local library server on Windows:
a)
http://localhost/gsdl?e=p-010-00-off-imgs--00-1----0--0direct-10---4-------0-1l--11-en-50---20-about---00-3-1-00-0--4--0--0-0-11-10-0utfZz-8-00&a=d&cl=CL1

b) http://localhost/collect/imgs/index/assoc/HASH96b7.dir/Bear.jpg

Both (a) and (b) required me to change the URL prefix from ".../gsdl?"
to what the Greenstone Apache Server on Linux was using
(".../library.cgi?"). After that:
(b) then worked.
(a) further required me to suffix "&c=imgs" to the URL before it would work.


I am not sure if this answered your question, but do try using the
Apache web server on your Windows machine in order to get URLs that are
more similar between your two different Greenstone installations.

Regards,
Anupama

John Fitzgibbon wrote:
>
> Hi,
>
>
>
> I am moving a collection called test3 from my local PC to a Linux
> server. I copied the folder 'test3' from my PC to the collect folder
> of the Linux server. It appears to work on the Linux server except I
> have a link to the original document which is not working on the Linux
> server. Also, the urls have a different form.
>
>
>
> On the local PC the url is
>
>
>
> http://localhost/gsdl?e=d-010-00-off-test3--00-1----0--0direct-10---4-------0-1l--11-en-50---20-about---00-3-1-00-0-0-11-1-0utfZz-8-00&a=d&c=test3&cl=CL3.1.1
>
>
>
> and the link to the original document is
>
>
>
> http://localhost/collect/test3/index/assoc/HASH010f.dir/Shipping%20cattle%20on%20Inismeain.jpg
>
>
>
> This is created using ex.srclink. It links to the original photograph.
>
>
>
> On the Linux server, when I use
>
>
>
> http://91.216.241.216/greenstone/cgi-bin/library.cgi?e=d-01000-00---off-0test3--00-1----0-10-0---0---0direct-10---4-------0-1--11-en-50---20-about---00-3-1-00-0--4--0--0-0-11-10-0utfZz-8-00&a=d&c=test3&cl=CL3.1.1
>
>
>
> I get the equivalent of the first url. The link to the original
> document is not generated. It is absent from this page.
>
>
>
> When I use the following, on the Linux server, I get the equivalent of
> the second url or link to the original document.
>
>
>
> http://91.216.241.216/greenstone/collect/test3/index/assoc/HASH010f.dir/Shipping%20cattle%20on%20Inismeain.jpg
>
>
>
> On the Linux box I have to use greenstone rather than gsdl in my web
> addresses to get a page.
>
>
>
> Also, on the Linux box, if I replace 'http://localhost/gsdl' in the
> first url with 'http://91.216.241.216/greenstone' it displays the
> contents of the directory.
>
>
>
> Linux is not the issue. When I copy the collection from one Windows PC
> to another Windows PC I get the same result.
>
>
>
> I would appreciate any help.
>
>
>
> Regards
>
> John
>
>
>
> John Fitzgibbon
>
>
>
> w: www.galwaylibrary.ie
>
> e: info@galwaylibrary.ie
>
> p: 00 353 91 562471
>
> f: 00 353 91 565039
>
>
>
> ------------------------------------------------------------------------
>
> This e-mail message has been scanned for content and cleared by
> MailMarshal Hosted at Galway County Council
>
> T□ an teachtaireacht r□omhphoist seo scan□ilte d'□bhar agus glanta ag
> MailMarshal at□ □st□lta i gComhairle Chontae na Gaillimhe.
>
> Correspondance is welcome in Irish or in English.
>
> T□ m□le f□ilte roimh chomhfhreagras i nGaeilge n□ i mB□arla.
>
> T□ eolas at□ pr□obh□ideach agus r□nda sa r□omhphost seo agus aon iat□n
> a ghabhann leis agus is leis an duine/na daoine sin amh□in a bhfuil
> siad seolta chucu a bhaineann siad. Mura seola□ th□, n□l t□ □daraithe
> an r□omhphost n□ aon iat□n a ghabhann leis a l□amh, a ch□ip□il n□ a
> □s□id. M□ t□ an r□omhphost seo faighte agat tr□ dhearmad, cuir an
> seolt□ir ar an eolas thr□ aischur r□omhphoist agus scrios ansin □ le
> do thoil.
>
> This e-mail and any attachment contains information which is private
> and confidential and is intended for the addressee only. If you are
> not an addressee, you are not authorised to read, copy or use the
> e-mail or any attachment. If you have received this e-mail in error,
> please notify the sender by return e-mail and then destroy it.
>
> If you need this email in an alternative format please contact the sender
>
> M□ t□ an r□omhphost seo ag teast□il uait i bhform□id eile d□an
> teagmh□il leis an duine a sheol chugat □
>
>
>
> ------------------------------------------------------------------------
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20110617/3a63afd7/attachment-0001.html