ScriptAlias /greenstone/cgi-bin/ "[Greenstone Installation]/cgi-bin/"
AllowOverride None
Options ExecCGI +MultiViews FollowSymLinks
Order allow,deny
Allow from all
Alias /greenstone/ "[Greenstone Installation]"
AllowOverride All
Options Indexes FollowSymLinks
*Restart the web server to load the configuration.
*If the web server alias for the Greenstone installation is not "/greenstone", configure
[Greenstone Installation]/perllib/LWP.pm
[Greenstone Installation]/perllib/URI.pm
[Greenstone Installation]/perllib/Bundle
[Greenstone Installation]/perllib/File
[Greenstone Installation]/perllib/HTML
[Greenstone Installation]/perllib/HTTP
[Greenstone Installation]/perllib/LWP
[Greenstone Installation]/perllib/NET
[Greenstone Installation]/perllib/URI
[Greenstone Installation]/perllib/WWW
Please note that these files have to sit directly under the perllib directory.
* If you have perl 5.10 installed on the server. One of the Perl modules (XMLParser:Expat) in Greenstone will no longer function correctly and you will have to rename it so Greenstone can fall back to use the system version. Change
[link][icon][/link]
[highlight][link]{Or}{[classifyTitle],[Title]}[/link]
{If}{[numleafdocs],,{If}{[Title],Extracted Title: [Title]}}[highlight]
{If}{[Date], _textdate_[Date]}
{If}{[NumPages], _textnumpages_[NumPages]}
{If}{[Source], _textsource_[Source]}
**DocumentText**
[classifyTitle]
Greenstone Metadata
dls.Title: [dls.Title]
dls.Subject: [dls.Subject]
dc.Identifier: [dc.Identifier]
{If}{[oaiextracted.title],Koha Metadata, Koha Metadata (No
Koha Metadata Extracted)}
{If}{[oaiextracted.title], dc.Title: [oaiextracted.title]
}
{If}{[oaiextracted.type], dc.Type: [oaiextracted.type]
}
{If}{[oaiextracted.date], dc.Date: [oaiextracted.date]
}
{If}{[oaiextracted.koharecordlink], Koha
Record
}
Extracted Metadata
{If}{[Title], Title: [Title]
}
{If}{[Date], Publication Date: [Date]
}
{If}{[NumPages], No. of Pages: [NumPages]
}
{If}{[FileFormat], File Format: [FileFormat]
}
{If}{[ImageWidth], Image Width: [ImageWidth]
}
{If}{[ImageHeight], Image Height: [ImageHeight]
}
Source
{Or}{[screenicon],[Text]}
**DocumentImages**
true
**NOTE:** Koha OAI metadata is extracted and stored as "oaiextracted.metadata_name", these metadata can be used in the format statement as [oaiextracted.type]
=====Customization in Koha for linking back to Greenstone=====
* Log in to the Koha VM with the “koha” user.
* Edit ./kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl
* To add the Greenstone link after the Description, update the following:
**Koha code**
Description:
**Modified Koha code**
Description:
Greenstone Link:
" target="_blank">
here
**Note:**
***“c=kohaoai”** is the Greenstone collection shortname
***