Changes for page Publications
From version 13.2
edited by Andrea Omicini
on 08/08/2021 01:46
on 08/08/2021 01:46
Change comment:
There is no comment for this version
To version 16.2
edited by Andrea Omicini
on 08/08/2021 01:47
on 08/08/2021 01:47
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,7 +1,7 @@ 1 1 {{velocity}}## 2 2 ## generic query parameters 3 3 #set ( $from = ", BaseObject as obj0, DBStringListProperty as prop0 join prop0.list item, BaseObject as obj1, StringProperty as prop1, LongProperty as prop2" ) 4 -#set 4 +#set( $where1 = " 5 5 obj0.className = 'XWiki.TagClass' and 6 6 obj0.name = doc.fullName and 7 7 obj0.id = prop0.id.id and ... ... @@ -17,18 +17,16 @@ 17 17 prop2.name = 'year' 18 18 " ) 19 19 #set ( $where3 = "order by prop2.value asc" ) 20 -#set ( $tag = 'Arg2P' ] ) 21 -#### select tags 22 -== {{english}}{{arg2p/}} Publications{{/english}}{{italian}}Pubblicazioni {{arg2p/}}{{/italian}} == 20 +#set ( $tag = 'Arg2P' ) 23 23 #### set query parameters for specific sort/tag 24 - 25 - 26 - 22 +#set( $where2 = " and lower(item)=lower('$tag') " ) 23 +#set( $sql = $from + " where " + $where1 + $where2 + $where3 ) 24 +#set( $pubsFound = $xwiki.searchDocuments($sql) ) 27 27 #### list pubs for each sort/tag 28 - 29 - 30 - 31 - #end{{/velocity}}{{include reference='Arg2p.MacroSheet'/}}26 +#foreach ($pub in $pubsFound) 27 +* {{pubLinks}}$pub{{/pubLinks}} 28 +#end 29 +{{/velocity}}{{include reference='Arg2p.MacroSheet'/}} 32 32 33 33 34 34