Changes for page Publications
From version 2.1
edited by Andrea Omicini
on 14/12/2020 16:09
on 14/12/2020 16:09
Change comment:
Document converted from syntax xwiki/1.0 to syntax xwiki/2.0
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 (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,32 +1,30 @@ 1 +{{velocity filter="none"}}{{html clean="false" wiki="true"}} 2 + 1 1 = DPDF & SME Publications = 2 2 3 3 == DPDF == 4 4 5 -{{html clean="false" wiki="true"}}{{velocity filter="none"}} 6 6 ##tagged research on Publications space based on tag "DPDF" 7 -#set $sql= ", BaseObjectasobj where obj.name=doc.fullNameand obj.className='Publications.PublicationClass' and obj.name<>'Publications.PublicationClassTemplate'")8 -#f oreach($itemin$xwiki.searchDocuments($sql))9 -#set($ pubDoc=$xwiki.getDocument($item))10 -#set($ pubObj=$pubDoc.getObject("Publications.PublicationClass"))11 -#set($pub Tags=$pubDoc.getObject("XWiki.TagClass").tags)12 -# if ($pubTags.contains("DPDF"))13 - [[$pubDoc.display("title")>>$item]] #if ($context.getUser() != "XWiki.XWikiGuest") {{{[}}}<a href="$xwiki.getURL("$item", "inline")">{{html clean="false"}}$msg.get("edit"){{/html}}</a>{{{]}}} #end8 +#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}} 14 14 #end 15 -#end 16 16 17 - 18 18 == Situational Method Engineering == 19 19 20 -##tagged research on Publications space based on tag "DPDF" 21 -#set ($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='Publications.PublicationClass' and obj.name<>'Publications.PublicationClassTemplate'") 22 -#foreach ($item in $xwiki.searchDocuments($sql)) 23 -#set($pubDoc=$xwiki.getDocument($item)) 24 -#set($pubObj=$pubDoc.getObject("Publications.PublicationClass")) 25 -#set($pubTags=$pubDoc.getObject("XWiki.TagClass").tags) 26 -#if ($pubTags.contains("SME")) 27 - * [[$pubDoc.display("title")>>$item]] #if ($context.getUser() != "XWiki.XWikiGuest") {{{[}}}<a href="$xwiki.getURL("$item", "inline")">{{html clean="false"}}$msg.get("edit"){{/html}}</a>{{{]}}} #end 28 - 29 -<p/> 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{{/html}} 32 -~{~{/velocity}} 28 + 29 +{{/html}} 30 +{{/velocity}}