diff flys-artifacts/doc/conf/meta-data-user.xml @ 1030:c586b6220f35

Datacage: Added a development mode for recommendations flys-artifacts/trunk@2490 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 11 Aug 2011 15:08:24 +0000
parents 5cb84ceee2a0
children 9c0f981cd22d
line wrap: on
line diff
--- a/flys-artifacts/doc/conf/meta-data-user.xml	Thu Aug 11 13:03:41 2011 +0000
+++ b/flys-artifacts/doc/conf/meta-data-user.xml	Thu Aug 11 15:08:24 2011 +0000
@@ -14,10 +14,11 @@
             <dc:statement>SELECT id AS collection_id FROM collections WHERE user_id = ${user_id}</dc:statement>
             <dc:elements>
               <dc:context>
-                <dc:statement>SELECT a.id AS a_id, a.state AS a_state, a.gid as a_gid FROM 
+                <dc:statement>SELECT a.id AS a_id, a.state AS a_state, a.gid AS a_gid, a.creation AS a_creation FROM 
                               collection_items ci JOIN artifacts a ON ci.artifact_id = a.id
                               WHERE collection_id = ${collection_id} AND a.state = ${current-state-id} AND a.gid &lt;&gt; CAST(${artifact-id} AS uuid)
                               AND EXISTS (SELECT id FROM artifact_data WHERE artifact_id = a.id AND k = 'river' AND v = ${river})
+                              ORDER BY a.creation DESC
                 </dc:statement>
                 <dc:comment> --- TODO: We only need the 'master' artifacts! --- </dc:comment>
                 <dc:elements>
@@ -31,7 +32,7 @@
                                           FROM facets WHERE out_id = ${out_id} ORDER BY num ASC, name DESC
                             </dc:statement>
                             <longitudinal_section_columns>
-                                <dc:attribute name="description" value="${river} TODO: More infos about parameters!"/>
+                                <dc:attribute name="description" value="${river} ${a_creation}"/>
                                 <dc:elements>
                                   <dc:element name="${facet_name}">
                                     <dc:attribute name="description" value="${facet_description}"/>

http://dive4elements.wald.intevation.org