About Features Downloads Getting Started Documentation Events Support GitHub

Site Tools


indexing:gsdl

How to Index Greenstone Digital Library (GSDL) with VuFind

Set Up Greenstone

OAI must be enabled on the Greenstone repository first.

You can modify file of Greenstone to enable and configure OAI-PMH on file:

$GSDL_HOME/etc/oai.cfg 

You can check all the settings of GSDL repository through URL:

http://(IP or hostname)/greenstone/cgi-bin/oaiserver.cgi

e.g.

http://library.nams.org.np/nams/cgi-bin/oaiserver.cgi

(Note: for detailed information about OAI-PMH on GSDL, see this link)

Set Up VuFind

1. Modify $VUFIND_HOME/harvest/oai.ini as described below.

2. Create and modify $VUFIND_HOME/import/gsdl.properties if it does not already exist (you can download it here if you have a version of VuFind older than 1.4).

3. Create & modify $VUFIND_HOME/import/xsl/gsdl.xsl if it does not already exist (you can download it here if you have a version of VuFind older than 1.4).

4. cd $VUFIND_HOME/harvest

5. php harvest_oai.php

6. sh batch-import-xsl.sh ./Greenstone ../import/gsdl.properties

7. ../vufind.sh restart

oai.ini Settings

[Greenstone]
url = http://localhost/greenstone/cgi-bin/oaiserver.cgi
metadataPrefix = oai_dc
; oai:repID:col:oid //This is the identifier format used in GREENSTONE OAI-PMH
;i.e example oai:gsdl:demo:demo.1 will be replaced to demo-1 on url link of VuFind
idSearch[] = "/^oai:gsdl:demo:demo./"
idReplace[] = "demo-"
;also strip extra slashes
idSearch[] = "/\//"
idReplace[] = ""
injectId = "identifier"
dateGranularity = auto
indexing/gsdl.txt · Last modified: 2015/12/14 16:34 by demiankatz