You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Andreas Hartmann <an...@apache.org> on 2007/11/01 13:46:28 UTC
Re: svn commit: r590939 - in /lenya/trunk/src: java/org/apache/lenya/cms/metadata/dublincore/
modules-core/sitemanagement/java/src/org/apache/lenya/cms/site/usecases/
modules-core/workflow/java/src/org/apache/lenya/cms/workflow/usecases/
Jörn Nettingsmeier schrieb:
> andreas@apache.org wrote:
>> Author: andreas
>> Date: Thu Nov 1 02:05:09 2007
>> New Revision: 590939
>>
>> URL: http://svn.apache.org/viewvc?rev=590939&view=rev
>> Log:
>> Add DublinCore.getTitle() with fallback to UUID if the title is null,
>> avoids NPEs in usecase message generation
>
> does this mean we can get rid of the following action from
> pubs/default/sitemap.xmap:
>
> <map:act type="language-exists">
> <map:transform src="fallback://xslt/addXhtmlTitle.xsl">
> <map:parameter name="title" value="{dublincore:title}"/>
> </map:transform>
> </map:act>
>
> and directly access the input module?
No, the input module would fail if the document doesn't exist. The
method I added handles only the case where the title element value of an
(existing) document is not set.
-- Andreas
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org