Changes for page Summer Fellowships 2026

Last modified by Ricardo Julio Rodríguez Fernández on 2026/11/01 17:32

From version 57.1
edited by Ricardo Julio Rodríguez Fernández
on 2026/11/01 17:01
Change comment: There is no comment for this version
To version 65.1
edited by Ricardo Julio Rodríguez Fernández
on 2026/11/01 17:10
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,20 +1,35 @@
1 1  {{velocity}}
2 2  DONE
3 3  
4 -#foreach($p in $services.query.hql(
4 +#set($pages = $services.query.hql(
5 5   "select doc.fullName
6 6   from XWikiDocument doc
7 7   where doc.fullName like 'SummerFellowships2026.%'
8 - and doc.fullName <> 'SummerFellowships2026.Done'
9 - and lower(doc.content) like '%summer fellow%'"
8 + and doc.fullName <> 'SummerFellowships2026.Done'"
10 10  ).execute())##
11 11  
11 +#foreach($p in $pages)##
12 12  #set($pageDoc = $xwiki.getDocument($p))##
13 -#set($parts = $pageDoc.content.split("==="))##
13 +#if($pageDoc.content.toLowerCase().contains('summer fellow'))##
14 +#set($parts = $pageDoc.content.split('==='))##
15 +#if($parts.size() >= 3)##
16 +#set($title = $parts.get(1).trim())##
17 +[[$title>>$p]]
18 +#end##
19 +#end##
20 +#end##
14 14  
22 +OFFERED
23 +
24 +#foreach($p in $pages)##
25 +#set($pageDoc = $xwiki.getDocument($p))##
26 +#if(!$pageDoc.content.toLowerCase().contains('summer fellow'))##
27 +#set($parts = $pageDoc.content.split('==='))##
15 15  #if($parts.size() >= 3)##
16 -<a href="$xwiki.getURL($p,'view')">$parts.get(1).trim()</a><br/>
29 +#set($title = $parts.get(1).trim())##
30 +[[$title>>$p]]
17 17  #end##
32 +#end##
33 +#end##
18 18  
19 -#end
20 20  {{/velocity}}