Hi List,
There is a typo in my earlier email:
Format statement excerpt given in email:
[highlight]{If}{[numleafdocs],[dls.Title],{Or}{[dls.Title],Untitled}}[/highlight]
corrected:
[highlight]{If}{[numleafdocs],[Title],{Or}{[dls.Title],Untitled}}[/highlight]
format statement given in email:
<td valign=top>[link][icon][/link]</td><td
valign=top>[srclink][srcicon][/srclink]</td><td
valign=top>[highlight]{If}{[numleafdocs],[dls.Title],{Or}{[dls.Title],Untitled}}[/highlight]<i><small>{If}{[Date],<br>{If}{[NumPages],<br>_textnumpages_[NumPages]}{If}{[Source]</small></i></td>
corrected:
<td valign=top>[link][icon][/link]</td><td
valign=top>[srclink][srcicon][/srclink]</td><td
valign=top>[highlight]{If}{[numleafdocs],[Title],{Or}{[dls.Title],Untitled}}[/highlight]<i><small>{If}{[Date],<br>{If}{[NumPages],<br>_textnumpages_[NumPages]}{If}{[Source]</small></i></td>
Richard.
For
the titles classifier could you post the html surrounding the
letters on list or perhaps a screenshot to me off list?
As for the format statement:
You currently have:
<td valign=top>[link][icon][/link]</td><td
valign=top>[srclink][srcicon][/srclink]</td><td
valign=top>[highlight]{Or}{
[dls.Title],Untitled}[/highlight]<i><small>{If}{[Date],<br>{If}{[NumPages],<br>_textnumpages_[NumPages]}{If}{[Source]</small></i></td>
Lets simplify understanding this problem by removing the parts of the
format statement that don't need to won't change.
The following start and end segments of the format statement dont need
to change.
<td valign=top>[link][icon][/link]</td><td
valign=top>[srclink][srcicon][/srclink]</td><td
valign=top>
<i><small>{If}{[Date],<br>{If}{[NumPages],<br>_textnumpages_[NumPages]}{If}{[Source]</small></i></td>
That leaves us with:
[highlight]{Or}{[dls.Title],Untitled}[/highlight]
We want to display [title] metadata only when we are displaying a
bookshelf. Its possible to use the [numleafdocs] formatstring item to
test whether we are looking at a bookshelf or not. See
http://greenstone.sourceforge.net/wiki/index.php/How_to_format_the_output_of_your_collection
for more information about formatstring items.
We can use a formatstring if statement like
{If}{[numleafdocs],[dls.Title], ... } to display [dls.Title] metadata
if [numleafdocs] is set to a value. If [numleafdocs] is not set to a
value the if statement will display whats placed where the ... is. In
your case, you want [highlight]{Or}{[dls.Title],Untitled}[/highlight]
which gives:
[highlight]{If}{[numleafdocs],[dls.Title],{Or}{[dls.Title],Untitled}}[/highlight]
and a final format statement of
<td valign=top>[link][icon][/link]</td><td
valign=top>[srclink][srcicon][/srclink]</td><td
valign=top>[highlight]{If}{[numleafdocs],[dls.Title],{Or}{[dls.Title],Untitled}}[/highlight]<i><small>{If}{[Date],<br>{If}{[NumPages],<br>_textnumpages_[NumPages]}{If}{[Source]</small></i></td>
or something like it.
Richard.
Richard Asiimwe wrote:
Hi all,
I have a collection that's based on dls and dc metadata sets. The
titles classifier is built on the dls.AZlist metadata.
My problem is the A-Z letters are not active links so that i can browse
through the list by clicking on a particular letter to see documents
starting with that letter. How can i correct this?
Secondly, i have a subject classifier built on dls.subject &
keyword metadata. Here is it's format statement:
<format>
<td valign=top>[link][icon][/link]</td><td
valign=top>[srclink][srcicon][/srclink]</td><td
valign=top>[highlight]{Or}{[ dls.Title],Untitled}[/highlight]<i><small>{If}{[Date],<br>{If}{[NumPages],<br>_textnumpages_[NumPages]}{If}{[Source]</small></i></td>
</format>
With the above format statement, the Book shelves displayed when one
clicks on Subjects are 'Untitled', although the books within the book
shelves have the correct title.
If i change the dls.title (highlited in the above format statment) to [title],
then the titles of the book shelves show appropriately but the books
within the book shelves now have incorrect titles.
Where could the problem be??
Thanks
--
Richard Asiimwe.
Future Link Technologies
Mob: +256 78 2 486 198
+256 75 2 486 198
Office: +256 41 531 274
url:
http://www.fl-t.com
Life is not a rehearsal...
_______________________________________________
greenstone-users mailing list
greenstone-users@list.scms.waikato.ac.nz
https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
--
DL Consulting
Greenstone Digital Library and Digitisation Specialists
contact@dlconsulting.com
www.dlconsulting.com
_______________________________________________
greenstone-users mailing list
greenstone-users@list.scms.waikato.ac.nz
https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
--
DL Consulting
Greenstone Digital Library and Digitisation Specialists
contact@dlconsulting.com
www.dlconsulting.com
|