[greenstone-users] Re: From Greenstone 2.84 to 2.85 (this message is the correct one)

From Greenstone Team
DateTue Aug 9 18:35:58 2011
Subject [greenstone-users] Re: From Greenstone 2.84 to 2.85 (this message is the correct one)
In-Reply-To (000901cc55b5$20ba65f0$622f31d0$-delvalle-uib-es)
Hi again Eduardo,

Dr Bainbridge said that no script to automate the process necessary, as
it can be done from the command line itself.
Try the following on a collection you just copied from GS2.84 into
GS2.85 (without rebuilding it). I have tried it here on both Linux and
Windows and it works for me, so it may work for you too.


ON LINUX (and probably Macs too):
1. Open an xterm and cd into your GS285 installation.
Type the following, without the > in front (which represents the prompt
of your terminal screen):

> cd GS2.85

2. Now, source your setup.bash to set your x-term's environment up for
Greenstone, so that you can use Greenstone's tools:

> source setup.bash


3. Next, copy out the following entire line (but without the > in
front), and paste it into the same x-term. Before hitting Enter to run
the command, make sure to replace all 4 occurrences of <colname> with
your collection's name:

> db2txt collect/<colname>/index/text/<colname>.gdb | sed
"s@srclink_file@srclinkFile@g" | cat | txt2db
collect/<colname>/index/text/<colname>.gdb


4. It is important now to *reload* the browser page displaying your
collection. In particular, reload the page displaying the PDF icons that
should be linking to their original PDF documents.

ON WINDOWS:
1. Open a DOS prompt and cd into your GS285 installation.
Type the following, without the > in front (which represents the prompt
of your terminal screen):

> cd GS2.85

2. Now, run setup.bat to set your DOS environment up for Greenstone, so
that you can use Greenstone's tools:

> setup.bat


3. Next, copy out the following entire line (but without the > in
front), and paste it into the same DOS prompt. Before hitting Enter to
run the command, make sure to replace all 4 occurrences of <colname>
with your collection's name:

> db2txt collect<colname>index ext<colname>.gdb | sed
"s@srclink_file@srclinkFile@g" | txt2db
collect<colname>index ext<colname>.gdb


4. It is important now to *reload* the browser page displaying your
collection. In particular, reload the page displaying the PDF icons that
should be linking to their original PDF documents.


If the above worked for you, you only need to repeat step 3 (and 4) for
every other 2.84 collection you want processed for 2.85.

Regards,
Anupama


Eduardo del Valle wrote:
> Dear Anupama
>
> Now I understand the problem.
>
> It would be very useful if there is some way 2.84 and older collections can
> be
> automatically converted to 2.85 without requiring a rebuild.
>
>
> Thank you very much
>