Re: [greenstone-users] Re: something not quite right

From Rich Robinson
DateMon, 3 Jan 2005 11:19:24 -0800
Subject Re: [greenstone-users] Re: something not quite right
In-Reply-To (20041231070306-GE11678-puriri-cs-waikato-ac-nz)
I am actually getting the "Search for _idx" on the Windows machine
too, not sure why. Configuration file is below:

searchtypeform plain

#indexesdocument:text document:dc.Creator document:dc.Title
document:dc.Missionary document:dc.Organization document:dc.Subject

indexestext dc.Creator dc.Title dc.Missionary
dc.Organization dc.Subject dc.Language dc.Format

pluginImagePlug -thumbnailsize 100 -process_exp
(?i)(\.jpe?g|\.gif|\.png|\.bmp|\.xbm|\.tif?f)$ -cover_image
-thumbnailtype gif
pluginWordPlug -convert_to html
pluginRecPlug -use_metadata_files

classifyAZList -metadata dc.Title -buttonname Title

classifyAZCompactList -metadata dc.Creator -sort dc.Title
-mingroup 1 -allvalues -buttonname Creator

classifyAZCompactList -metadata dc.Missionary -sort dc.Title
-mingroup 1 -allvalues -buttonname Missionary

classifyAZCompactList -metadata dc.Organization -sort
dc.Title -mingroup 1 -allvalues -buttonname Organization

classifyDateList -metadata dc.Date -sort dc.Title

classifyHierarchy -metadata dc.Subject -sort "Metadata
element specified with -metadata." -buttonname Subject -hfile

classifyAZCompactList -metadata dc.Language -sort dc.Title
-mingroup 1 -allvalues -buttonname Language

classifyAZCompactList -metadata dc.Format -sort dc.Title
-mingroup 1 -allvalues -buttonname Format

format DateList "<td>[link][icon][/link]</td>

format VList "<td valign=top>[link][icon][/link]</td>
<td valign=top>[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td>
<td valign=top>[highlight]

format HList

format CL3VList "<td valign=top>[link][icon][/link]</td>
<td valign=top>[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td>
<td valign=top>[highlight]

format DocumentImages false

format CL1VList "<td valign=top>[link][icon][/link]</td>
<td valign=top>[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td>
<td valign=top><i>
{Or}{[dls.Title],[dc.Title],[ex.Title],Untitled}</i> / [dc.Creator].
[dc.Place], [dc.Publisher], [dc.Date].</td>"

format DocumentButtons ""

format DocumentHeading ""

format CL2VList "<td valign=top>[link][icon][/link]</td>
<td valign=top>[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td>
<td valign=top>[highlight]
[/highlight]{If}{[dc.Creator], / [dc.Creator].} {If}{[dc.Place],
[dc.Place]} {If}{[dc.Publisher],, [dc.Publisher]}

collectionmetacollectionname [l=en] "Digital Jewish Missions History Project"

collectionmetacollectionextra [l=en] "This collection consists of
(mostly) primary source documents from the history of missions to the
Jewish people.

All material here, to the best of our knowledge, is in the public
domain. Exceptions are for copyrighted materials for which permission
has been given to post here (and notice of such permission will be
posted in such cases). "

collectionmeta.document:text [l=en] "text"
collectionmeta.document:dc.Creator [l=en] "Author"
collectionmeta.document:dc.Title [l=en] "Title"
collectionmeta.document:dc.Missionary [l=en] "People"
collectionmeta.document:dc.Organization [l=en] "Organization"
collectionmeta.document:dc.Subject [l=en] "Subject"
collectionmeta.document:dc.Language [l=en] "Language"
collectionmeta.text [l=en] "Full text"
collectionmeta.dc.Creator [l=en] "Author"
collectionmeta.dc.Title [l=en] "Title"
collectionmeta.dc.Missionary [l=en] "Missionary"
collectionmeta.dc.Organization [l=en] "Organization"
collectionmeta.dc.Subject [l=en] "Subject"
collectionmeta.dc.Language [l=en] "Language"
collectionmeta.dc.Resource [l=en] "Type"
collectionmeta.dc.Format [l=en] "Format"

>On Tue, Dec 28, 2004 at 01:16:18PM -0800, Rich Robinson wrote:
>> Hi,
>> I'm building my collection on a Windows machine, then copy the
>> collect directory over to a UNIX box where it's served. On the About
>> page for this collection, on my UNIX box I see this near a search
>> form near the top:
>> Search for _idx_ that contain some/all of the words
>> whereas that search form is missing on the same About page on the
>> Windows machine.
>> I've also ported over some of the macros and the config file, but not
>> sure why the search form is appearing after copying the collection to
>> the UNIX box ?
>This strongly suggests that the collection metadata file (stored in
>GNU DB format) is not readable by the gdbm libraries on the 2nd machine.
>In other words, the two computers use incompatible gdbm file formats.
>The more common reason for this is if the machines are of different
>"endians" - for example windows on intel vs osx on powerpc. I've also
>seen it with different operating systems on the same architecture - eg
>windows on intel and freebsd on intel.
>You can either copy the archives/ directory of the collection over and
>re-build on the unix machine, or use the "db2txt" program that comes with
>greenstone to export the collection metadata into a text file, copy that
>over, and use "txt2db" on the unix machine to manually re-create the
>gdbm file.
>I think these is discussed in the online greenstone FAQ. If not, they'll
>need to be updated in the new year :)
>Attachment converted: Macintosh HD:Untitled 2 ( / ) (00151234)