Re: [greenstone-users] How can I diplay only the original icons II

From Katherine Don
DateMon, 23 Feb 2004 08:54:32 +1300
Subject Re: [greenstone-users] How can I diplay only the original icons II
In-Reply-To (000001c3f7ad$f159c160$1603a8c0-Professor)
Hi Martin

You just need to modify your format statements.
srclink and srcicon are only valid for documents such as pdf, ps and word
where the original text is changed into html/txt by the plugin. So html
documents don't have these fields. html docs need to use link and icon - these
link to the Greenstone stored text, not the actual original file, but it should
look the same as the original. If you want to link to the original file for
html files, you need to modify the HTMLPlug to store the original and set the
appropriate metadata (srclink and srcicon). And you need to make sure it only
does this for original html files, not the converted ones from pdf etc.

If you decide to use the greenstone stored text, you can test on srclink to see
whether to use srclink or link . eg

{If}{[srclink],[srclink][srcicon][/srclink],[link][icon][/link]} - this will
use the src links for those docs that have one, and greenstone hash links for
those that dont.

classifier nodes don't have srclink, they only have basic links. The above
should work for them too.
If you want to have a different display for the nodes (bookshelves) then you
can test on [numleafdocs] - this is only defined for bookshelf nodes.

Hoe this helps.
Katherine Don

Martin Mau wrote:

> Hello Michael and Joel,
>
> thanks for your help. Yes it works with: format VList
> "<td>[srclink][srcicon][/srclink]</td> <td>[link][Title][/link]</td>"
>
> BUT
> 1.)unfortunately the bookshelf Icons are not displayed. I have been added
> "[link][Title][/link]" and now I can navigate by this way through the
> collection.
> Is it possible that the bookshelf-icons are diplayed too?
>
> 2.)I have some documents in html-format. After format the VList they won't
> be displayd!
> Is it possible that the icons for html-document are diplayed too? Or must I
> convert the html to pdf (I didn't hope so!)?
>
> regards
> Martin
>
> Hi Martin,
>
> I think your problem is that you've got CL3HList, but you actually want to
> format the VList part of the classifier. Change the format statement to
> CL3VList and I think you'll have more success.
>
> If you want to format the search results and all classifiers the same, you
> can
> just do
>
> format VList "..."
>
> to affect all vertical lists.
>
> Hope this helps,
>
> Michael
>
> Martin Mau wrote:
>
> > hello list,
> >
> > I work with greenstone V 2.39 on a WindowsXP system. My Collection consist
> > mostly of *.htm, *.doc and *.pdf documents. Now I want to display only the
> > original icon (or in other words: I want to disable/ make invisible the
> > greenstone hash icon!)
> >
> > Therfore I have thomething useful read in a archiv thread, but it doesn't
> > work for all classifyer:
> >
> > the searchList works without problems and the "A-Z List" too.
> > But I don't know the solution for the Subject- and Organisation LISTs.
> >
> > Can someone give me the answere: How must I format the both Lists!?!?
> > (format CL3HList "<td>[srclink][srcicon][/srclink]</td>
> > <td>[Title]</td>" doesn't work!)
> >
> > It's an extract of my collect.cfg:
> >
> ****************************************************************************
> > ****************************
> > classify Hierarchy -hfile sub.txt -metadata Subject -sort Title
> > classify Hierarchy -hfile AZList.txt -metadata AZList -sort
> > Title -buttonname Title -hlist_at_top
> > classify Hierarchy -hfile org.txt -metadata Organization -sort Title
> >
> > format CL3HList "<td>[srclink][srcicon][/srclink]</td>
> > <td>[Title]</td>" #its not running!
> >
> > format CL2VList "<td>[srclink][srcicon][/srclink]</td>
> > <td>[Title]</td>"
> >
> > format SearchVList "<td>[srclink][srcicon][/srclink]</td>
> > <td>[Title]</td>"
> >
> ****************************************************************************
> > *****************************
> >
> > thanks and best regards
> >
> > Martin Mau
> >
> > _______________________________________________
> > greenstone-users mailing list
> > greenstone-users@list.scms.waikato.ac.nz
> > https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users