Re: [greenstone-users] Title display problem

From Michael Dewsnip
DateWed, 08 Jun 2005 10:50:22 +1200
Subject Re: [greenstone-users] Title display problem
In-Reply-To (42A5ED24-8030809-esrl-lib-md-us)
Hi June,

Sorry, I missed a crucial part of this: you actually need
"{Or}{[dc.Title],[Title]}". Constructs like this are used in the default
format statements (and eg. in the demo collection), to do what you're after.

Regards,

Michael

June Yang wrote:

> Hi Michael,
>
> I tried three options, and ran into various issues:
> If it's formated as [dc.Title], only the bookshelf icon shows(no
> subject display). Clicking on the icon, a list of files with page icon
> and title are properly displayed.
> If it's formated as [dc.Title, Title], only the bookshelf icon
> shows(no subject display). Click on the icon, a list of files with
> only page icon (no title) are displayed.
> If it's formated as [Title], the bookshelf icon and the subject shows
> fine. When clicking on the icon, a list of files with the filename not
> the title are displayed.
> Thanks,
>
> June
>
>
> Michael Dewsnip wrote:
>
>> Hi June,
>>
>>
>>
>>> When I was trying to display items based on Subjects, in GLI I add the
>>> format string <td>[link][icon][/link] </td>
>>> <td>[link][Title][/link]</td>
>>> to diplay (ex. CL2: AZCompactList-metadata dc.subject and keywords).
>>> What was happening was that the ex.Title (by default it's filename)
>>> was shown as title.
>>>
>>> The subject heading displayed fine, but if I clicked on the heading,
>>> all items listed below were shown with filename (not their titles I
>>> assigned to). Since ex.Title is generated automatically, I can't
>>> delete it. My question is: how can I format the [Title] that display
>>> dc.Title not ex.Title?
>>>
>>
>>
>> Instead of just having "[Title]" in your format statement, try using
>> "[dc.Title,Title]". This will display dc.Title if it exists, otherwise
>> Title (ex.Title).
>>
>> Regards,
>>
>> Michael
>>
>>
>>
>
>