Changes for page Publications
From version 1.2
edited by Andrea Omicini
on 14/12/2020 16:09
on 14/12/2020 16:09
Change comment:
There is no comment for this version
To version 3.1
edited by Andrea Omicini
on 14/12/2020 16:11
on 14/12/2020 16:11
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Syntax
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki 1.01 +XWiki 2.0 - Content
-
... ... @@ -1,31 +1,30 @@ 1 - 1 DPDF & SME Publications1 +{{velocity filter="none"}}{{html clean="false" wiki="true"}} 2 2 3 - 1.13 += DPDF & SME Publications = 4 4 5 +== DPDF == 5 5 6 6 ##tagged research on Publications space based on tag "DPDF" 7 -#set ($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='Publications.PublicationClass' and obj.name<>'Publications.PublicationClassTemplate'") 8 -#foreach ($item in $xwiki.searchDocuments($sql)) 9 -#set($pubDoc=$xwiki.getDocument($item)) 10 -#set($pubObj=$pubDoc.getObject("Publications.PublicationClass")) 11 -#set($pubTags=$pubDoc.getObject("XWiki.TagClass").tags) 12 -#if ($pubTags.contains("DPDF")) 13 - * [$pubDoc.display("title") > $item] #if ($context.getUser() != "XWiki.XWikiGuest") {pre}[{/pre}<a href="$xwiki.getURL("$item", "inline")">$msg.get("edit")</a>{pre}]{/pre} #end 14 - 8 +#set( $pubTag = "DPDF") 9 +#set ( $from = ", BaseObject as obj0, DBStringListProperty as prop0 join prop0.list item, BaseObject as obj1, StringProperty as prop1, LongProperty as prop2" ) 10 +#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" ) 11 +#set ( $sql = $from + " where " + $where ) 12 +#set($pubFound = $xwiki.searchDocuments($sql)) 13 +#foreach ($pub in $pubFound) 14 +* {{pubLinks}}$pub{{/pubLinks}} 15 15 #end 16 -#end 17 17 17 +== Situational Method Engineering == 18 18 19 -1.1 Situational Method Engineering 20 - 21 -##tagged research on Publications space based on tag "DPDF" 22 -#set ($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='Publications.PublicationClass' and obj.name<>'Publications.PublicationClassTemplate'") 23 -#foreach ($item in $xwiki.searchDocuments($sql)) 24 -#set($pubDoc=$xwiki.getDocument($item)) 25 -#set($pubObj=$pubDoc.getObject("Publications.PublicationClass")) 26 -#set($pubTags=$pubDoc.getObject("XWiki.TagClass").tags) 27 -#if ($pubTags.contains("SME")) 28 - * [$pubDoc.display("title") > $item] #if ($context.getUser() != "XWiki.XWikiGuest") {pre}[{/pre}<a href="$xwiki.getURL("$item", "inline")">$msg.get("edit")</a>{pre}]{/pre} #end 29 - 19 +##tagged research on Publications space based on tag "SME" 20 +#set( $pubTag = "SME") 21 +#set ( $from = ", BaseObject as obj0, DBStringListProperty as prop0 join prop0.list item, BaseObject as obj1, StringProperty as prop1, LongProperty as prop2" ) 22 +#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" ) 23 +#set ( $sql = $from + " where " + $where ) 24 +#set($pubFound = $xwiki.searchDocuments($sql)) 25 +#foreach ($pub in $pubFound) 26 +* {{pubLinks}}$pub{{/pubLinks}} 30 30 #end 31 -#end 28 + 29 +{{/html}} 30 +{{/velocity}}