Changes for page Publications
From version 2.1
edited by Andrea Omicini
on 11/12/2020 18:30
on 11/12/2020 18:30
Change comment:
Document converted from syntax xwiki/1.0 to syntax xwiki/2.0
To version 3.1
edited by Andrea Omicini
on 11/12/2020 18:31
on 11/12/2020 18:31
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,20 +1,16 @@ 1 -ms-bionet 2 - 3 -{{include document="Main.MacroSheet"/}}{{include document="Publications.MacroSheet"/}} 4 - 5 -= Papers about MS-BioNET = 6 - 1 +{{include document="Main.MacroSheet"/}}{{include document="Alchemist.MacroSheet"/}} 7 7 {{velocity filter="none"}} 8 8 {{html clean="false" wiki="true"}} 9 -#set ($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='Publications.PublicationClass' and obj.name<>'Publications.PublicationClassTemplate'") 10 -#foreach ($item in $xwiki.searchDocuments($sql)) 11 - #if ($xwiki.getDocument($item).display("keywords").contains("")) 12 - ##* [$xwiki.getDocument($item).display("title") > $item] #if ($context.getUser() != "XWiki.XWikiGuest") {pre}[{/pre}<a href="$xwiki.getURL("$item", "inline")">$msg.get("edit")</a>{pre}]{/pre} #end 13 - #pubATVinline($xwiki.getDocument($item).name) #if ($context.getUser() != "XWiki.XWikiGuest") {{{[}}}<a href="$xwiki.getURL("$item", "inline")">{{html clean="false"}}$msg.get("edit"){{/html}}</a>{{{]}}} 14 - #end 4 += Publications about MS-BioNET = 15 15 16 - #end 6 +##tagged research on Publications space based on tag "MS-BioNET" 7 +#set( $pubTag = "ms-bionet") 8 +#set ( $from = ", BaseObject as obj0, DBStringListProperty as prop0 join prop0.list item, BaseObject as obj1, StringProperty as prop1, LongProperty as prop2" ) 9 +#set ( $where = "obj0.className='XWiki.TagClass' and obj0.name=doc.fullName and obj0.id=prop0.id.id and prop0.id.name='tags' and lower(item)=lower('$pubTag') and obj1.name=doc.fullName and obj1.className='Publications.PublicationClass' and obj1.name<>'Publications.PublicationClassTemplate' and prop1.id.id=obj1.id and prop1.name='status' and prop1.value='Published' and prop2.id.id=obj1.id and prop2.name = 'year' order by prop2.value desc" ) 10 +#set ( $sql = $from + " where " + $where ) 11 +#set($pubFound = $xwiki.searchDocuments($sql)) 12 +#foreach ($pub in $pubFound) 13 +* {{pubLinks}}$pub{{/pubLinks}} 17 17 #end 18 - 19 19 {{/html}} 20 20 {{/velocity}}