You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by jw...@apache.org on 2005/05/10 14:41:32 UTC

svn commit: r169460 - in /lenya/trunk/src/webapp/lenya/usecases: edit/insertAsset.jx tab/assets.jx

Author: jwkaltz
Date: Tue May 10 05:41:30 2005
New Revision: 169460

URL: http://svn.apache.org/viewcvs?rev=169460&view=rev
Log:
[minor change] call new api to retrieve metadata value

Modified:
    lenya/trunk/src/webapp/lenya/usecases/edit/insertAsset.jx   (contents, props changed)
    lenya/trunk/src/webapp/lenya/usecases/tab/assets.jx

Modified: lenya/trunk/src/webapp/lenya/usecases/edit/insertAsset.jx
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/edit/insertAsset.jx?rev=169460&r1=169459&r2=169460&view=diff
==============================================================================
--- lenya/trunk/src/webapp/lenya/usecases/edit/insertAsset.jx (original)
+++ lenya/trunk/src/webapp/lenya/usecases/edit/insertAsset.jx Tue May 10 05:41:30 2005
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <!--
-  Copyright 1999-2004 The Apache Software Foundation
+  Copyright 1999-2005 The Apache Software Foundation
 
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
@@ -15,7 +15,7 @@
   limitations under the License.
 -->
 
-<!-- $Id: assets.jx 161744 2005-04-18 08:54:26Z andreas $ -->
+<!-- $Id$ -->
 
 <page:page xmlns:jx="http://apache.org/cocoon/templates/jx/1.0" 
            xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0" 
@@ -42,7 +42,7 @@
         <jx:forEach var="asset" items="${usecase.getParameter('assets')}">
           <tr>
             <td><input type="radio" name="asset" value="${asset.getName()}"
-                       onClick="javascript:insertCaption('${asset.getName()}', '${asset.getMetaData().getFirstValue('title')}', '${asset.getMimeType()}')"/></td>
+                       onClick="javascript:insertCaption('${asset.getName()}', '${asset.getMetaDataManager().getDublinCoreMetaData().getFirstValue('title')}', '${asset.getMimeType()}')"/></td>
             <td><jx:out value="${asset.getName()}"/></td>
             <td>        
               <jx:set var="mimeType" value="${asset.getMimeType()}"/>
@@ -52,7 +52,7 @@
                      style="height: 32px; vertical-align: middle;"/>&#160;
               </jx:if>
             </td>
-            <td><jx:out value="${asset.getMetaData().getFirstValue('title')}"/></td>
+            <td><jx:out value="${asset.getMetaDataManager().getDublinCoreMetaData().getFirstValue('title')}"/></td>
             <td align="right"><jx:out value="${asset.getContentLength() / 1000}"/> kB</td>
             <td align="right"><jx:out value="${java.text.DateFormat.getDateInstance().format(asset.getLastModified())}"/></td>
           </tr>

Propchange: lenya/trunk/src/webapp/lenya/usecases/edit/insertAsset.jx
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: lenya/trunk/src/webapp/lenya/usecases/tab/assets.jx
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/tab/assets.jx?rev=169460&r1=169459&r2=169460&view=diff
==============================================================================
--- lenya/trunk/src/webapp/lenya/usecases/tab/assets.jx (original)
+++ lenya/trunk/src/webapp/lenya/usecases/tab/assets.jx Tue May 10 05:41:30 2005
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <!--
-  Copyright 1999-2004 The Apache Software Foundation
+  Copyright 1999-2005 The Apache Software Foundation
 
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
@@ -47,7 +47,7 @@
                      style="height: 32px; vertical-align: middle;"/>&#160;
               </jx:if>
             </td>
-            <td><jx:out value="${asset.getMetaData().getFirstValue('title')}"/></td>
+            <td><jx:out value="${asset.getMetaDataManager().getDublinCoreMetaData().getFirstValue('title')}"/></td>
             <td align="right"><jx:out value="${asset.getContentLength() / 1000}"/> kB</td>
             <td align="right"><jx:out value="${java.text.DateFormat.getDateInstance().format(asset.getLastModified())}"/></td>
             <td>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org