[greenstone-users] Display issues - _document:tocopen_

From Oran Fry
DateWed Jan 9 10:36:06 2008
Subject [greenstone-users] Display issues - _document:tocopen_
In-Reply-To (4773B070-1020605-cox-net)
(forgot to CC my reply to the mailing list, here it is...)

Hi Russell,

The text _document:tocopen_ and _document:tocclose_ appear only in the
actual c code of greenstone. Perhaps the macros _tocopen_ and _tocclose_
have been deleted from macros/document.dm. Putting the defaults back in
should fix the problem:

_tocopen_ {<div class="top" _tocopenextra_>}
_tocclose_ {</div>}


Kind Regards,
Oran Fry.
russell franks wrote:
> Hello everyone,
>
> Firstly, I love Greenstone and hopefully, if given the opportunity,
> plan on implementing it this year where I work.
>
> However, I have two problems. I have built two test collections, one
> is jpeg images and the other is pdf's. I am unable to get the A-Z list
> at the top of the page to appear in the jpeg collection which has 35
> titles. The pdf collection only has 5 titles so I know it won't show
> there as my understanding is that you need at least 30 titles in a
> collection for the A-Z list to work.
> I would like the A-Z list to show as I have quite a few images to add
> to the collection.
>
> Second, in both collections, when clicking on the nav bar - Title,
> Subject, Dates, etc - the list appears, but at the top of the list
> before the first entry, the words _document:tocopen_ and at the bottom
> of the list the words _document:tocclose_ are showing up.
>
> This happens in both collections. I have searched every marco and cfg
> fileI can think of (base, main, collect, english, style, home, etc)
> and can not find an entry for _document:tocopen_ or
> document:tocclose_. What is going on here and how can I get rid of
> these terms showing up?
>
> Any help would be greatly appreciated. The collect.cfg file for the
> jpeg collection follows. Thanks - Russell Franks
>
>> creator rfranks24@cox.net
>> maintainer rfranks24@cox.net
>> maintainer
>> public true
>>
>> buildtype mgpp
>>
>> #indexes document:text document:Title document:Source
>> indexes dc.Title dc.Subject dc.Personal dc.Date
>> defaultindex
>>
>> levels document
>>
>> indexoptions accentfold casefold stem
>>
>> defaultlevel document
>>
>> plugin ImagePlug -thumbnailsize 125 -associate_ext pdf
>> plugin MetadataXMLPlug -associate_ext jpg
>> plugin GAPlug
>> plugin ArcPlug
>> plugin RecPlug
>>
>> classify AZList -metadata dc.Title
>> classify AZCompactList -metadata dc.Subject -sort Encoding
>> -mingroup 1 -allvalues -buttonname Subjects
>>
>> classify AZCompactList -metadata "dc.Personal Name" -mingroup 1
>> -buttonname Names
>> classify AZCompactList -metadata dc.Date
>>
>> format VList "<td
>> valign=\\"top\\">[link]{Or}{[ex.thumbicon],[icon],Untitled}[/link]</td>
>> <td valign=\\"top\\"></td>
>> <td valign=\\"center\\">[highlight]
>> {Or}{[dc.Title],[dc.Subject],[dc.Personal
>> Name],[dc.Date][ex.Title],Untitled}
>> [/highlight]{If}{[ex.Source],<br><i>([ex.Source])</i>}</td>"
>>
>> format HList "[link][highlight][Title][/highlight][/link]"
>>
>> format DocumentHeading "<br/>
>> {If}{[dc.Title],
>>
>> <tr><center><td align=right valign=top width=120><b> Title:</b></td>
>> <td align=left valign=bottom>[dc.Title]</td></center></tr>}"
>>
>> format DocumentText "<center><table width=595>
>> <br></br>
>> {If}{[dc.Description],
>>
>> <tr><td align=right valign=top width=120><b>Caption:</b></td><td
>> align=left valign=bottom width=325>[dc.Description]</td>,
>> <td align=right valign=top width=120></td><td align=left
>> valign=bottom></td>}
>>
>> <td valign=top width=150 rowspan=16 align=center><font face=Arial,
>> Helvetica, sans-serif size=1>Click photo to see larger
>> image</font><br>[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td></tr>
>>
>>
>>
>> <tr><td align=right valign=top><b>Subject(s):</b></td>
>> <td align=left
>> valign=bottom>[sibling(All:\'<br></br>\'):dc.Subject]</td></tr>
>>
>> {If}{[dc.Personal Name],
>> <tr><td align=right valign=top><b>Person(s):</b></td>
>> <td align=left valign=bottom>[sibling(All:\'<br></br>\'):dc.Personal
>> Name]</td></tr>}
>>
>>
>> <tr><td align=right valign=top><b>Date:</b></td><td align=left
>> valign=bottom>[dc.Date]</td></tr>
>>
>> <tr><td align=right valign=top><b>Place name:</b></td><td align=left
>> valign=bottom>[dc.Coverage]</a></td></tr>
>>
>> <tr><td align=right valign=top><b>Creator:</b></td><td align=left
>> valign=bottom>[dc.Creator]</td></tr>
>>
>> <tr><td align=right valign=top><b>Contributor:</b></td> <td
>> align=left valign=bottom>[dc.Contributor]</td> </tr>
>>
>> <tr><td align=right valign=top><b>Digital format:</b></td><td
>> align=left valign=bottom>[dc.Format]</td></tr>
>>
>> <tr><td align=right valign=top><b>Original:</b></td><td align=left
>> valign=bottom>[dc.Format^original]</td></tr>
>>
>> <tr><td align=right valign=top><b>Collection:</b></td><td align=left
>> valign=bottom>[dc.Relation]</td></tr>
>>
>> <tr><td align=right valign=top><b>Rights:</b></td><td align=left
>> valign=bottom>[dc.Rights]</td></tr>
>>
>> <tr><td align=right valign=top><b>Source:</b></td><td align=left
>> valign=bottom>[ex.Source]</td></tr>
>>
>> <tr><td align=right valign=top>
>> {If}{[pdf.assoclink],[pdf.assoclink]:</tg><td align=left
>> valign=bottom>PDF metadata record for this image}</td></tr>
>>
>> </table>"
>>
>> format DocumentButtons "Detach|Highlight"
>>
>> format SearchTypes "plain,form"
>>
>> format DateList "<td>[link][icon][/link]</td>
>> <td>[highlight]{Or}{[dls.Title],[dc.Title],[ex.Title],Untitled}[/highlight]</td>
>>
>> <td>[ex.Date]</td></font>"
>>
>> format AllowExtendedOptions true
>>
>> format SearchVList "<td valign=top align=center
>> width=150>[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]
>>
>> <td width=10> </td>
>> <td align=left valign=top> <table border=0 width=435 cellpadding=2
>> cellspacing=0>
>> <tr> <td width=55 align=left valign=top><b>Title:</b></td>
>>
>> <td width=380 align=left valign=top>[link][dc.Title][/link]</td> </tr>
>>
>> <tr> <td width=55 align=left valign=top><b>Date:</b></td>
>>
>> <td width=380 align=left valign=top>[dc.Date]</td> </tr> <tr> <td
>> width=55 align=left valign=top><b>Place:</b></font></td><td width=380
>> align=left valign=top>[dc.Coverage]<br></td> </tr> </table></td>
>> </tr> <tr><td colspan=3> <hr align=center size=1 noshade> </td></tr>"
>>
>> format CL2VList "<td width=10> </td>
>> <table border=0 width=435 cellpadding=2 cellspacing=0>
>> <td valign=\\"top\\">[highlight]<td align=left
>> valign=top>[link]<b>{Or}{[dc.Title],[dc.Subject],[dc.Date],[ex.Title],Untitled}</b>[/link]</td>[/highlight]{If}{[numleafdocs],<td><i>([numleafdocs]</i></td><td>
>> images)</td>}
>>
>> [ex.srclink][ex.srcicon][ex./srclink]
>>
>> <td valign=top align=center>
>> <table border=0 width=435 cellpadding=2 cellspacing=0>
>>
>> </table>
>> </td></tr>"
>>
>> format DocumentImages true
>>
>> format CL1VList "<td valign=top align=center
>> width=150>[ex.srclink]{Or}{[ex.thumbicon],[ex.srcicon]}[ex./srclink]</td>
>>
>> <td width=10> </td>
>> <td align=left valign=top>
>> <table border=0 width=435 cellpadding=2 cellspacing=0>
>> <tr><td width=100 align=left valign=top><b>Title:</b></td>
>> <td width=335 align=left
>> valign=top>[link]<b>[dc.Title]</b>[/link]</td></tr>
>> <tr><td width=100 align=left valign=top><b>Date:</b></td>
>> {If}{[dc.Date], <td width=335 align=left
>> valign=top>[dc.Date]</td>,<td valign=top>[dc.Date]</td>}</tr>
>> </table>
>> </td></tr>
>> <tr><td colspan=3><hr align=center size=1 noshade></td></tr>"
>>
>> format DocumentSearchResultLinks true
>>
>> collectionmeta collectionname [l=en] "Digital Images"
>> collectionmeta collectionextra [l=en] "<p>The collection is
>> compised of a set of images dating to 1899. The blah blah blah...</p>
>> collectionmeta .document:text [l=en] "text"
>> collectionmeta .document:Title [l=en] "titles"
>> collectionmeta .document:Source [l=en] "filenames"
>> collectionmeta .dc.Title [l=en] "titles"
>> collectionmeta .dc.Date [l=en] "dates"
>> collectionmeta .dc.Subject [l=en] "subjects"
>> collectionmeta .dc.Personal [l=en] "names"
>
> Thank you for your help _ Russrll Franks
>
>
>
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>