User Tools

Site Tools


en:user:gs2_to_gs3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:user:gs2_to_gs3 [2026/04/27 23:57] – [Part 1: apache rewrite] kjdonen:user:gs2_to_gs3 [2026/04/30 02:33] (current) – [Extract ids and add as metadata] kjdon
Line 211: Line 211:
  
 **Scenario:** you have an existing Greenstone 2 collection, with a lot of external sites pointing to documents in it. Eg external databases link to your Greenstone documents. **Scenario:** you have an existing Greenstone 2 collection, with a lot of external sites pointing to documents in it. Eg external databases link to your Greenstone documents.
-The links might look like this: [[http://myserver.com/gsdl/cgi-bin/library.cgi?e=d-01000-00---off-0400years--00-1----0-10-0---0---0direct-10---4-------0-1l--10-hy-50---20-about---00-3-1-00-0--4--0--0-0-11-10-0utfZz-8-00&a=d&c=400years&cl=CL1&d=HASH890dfd99a182f878a55a60]]+The links might look like this: [[http://myserver.com/greenstone/cgi-bin/library.cgi?e=d-01000-00---off-0400years--00-1----0-10-0---0---0direct-10---4-------0-1l--10-hy-50---20-about---00-3-1-00-0--4--0--0-0-11-10-0utfZz-8-00&a=d&c=400years&cl=CL1&d=HASH890dfd99a182f878a55a60]]
  
 You want to upgrade your library to Greenstone 3. Now, links to the documents look like this: You want to upgrade your library to Greenstone 3. Now, links to the documents look like this:
Line 271: Line 271:
 If you no longer have the archives folder in the Greenstone 2 collection, then your task is a bit more complicated.  If you no longer have the archives folder in the Greenstone 2 collection, then your task is a bit more complicated. 
 What might work is: What might work is:
 +
 1. run db2txt.pl over the gdbm metadata database in the greenstone 2 collection and save to a file, eg: db2txt collect/demo/index/text/demo.gdb > db.out (If the Db is .jdb use jdb2txt.pl instead) 1. run db2txt.pl over the gdbm metadata database in the greenstone 2 collection and save to a file, eg: db2txt collect/demo/index/text/demo.gdb > db.out (If the Db is .jdb use jdb2txt.pl instead)
 +
 2. Write a script to extract filenames and identifiers from the output. Probably into a CSV file would be easiest: 2. Write a script to extract filenames and identifiers from the output. Probably into a CSV file would be easiest:
 <code> <code>
en/user/gs2_to_gs3.1777334226.txt.gz · Last modified: 2026/04/27 23:57 by kjdon